1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for libnbcompat noversion. 4# 5# Report bugs to <lib-bug-people@NetBSD.org>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 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 more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42# The user is always right. 43if test "${PATH_SEPARATOR+set}" != set; then 44 echo "#! /bin/sh" >conf$$.sh 45 echo "exit 0" >>conf$$.sh 46 chmod +x conf$$.sh 47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 48 PATH_SEPARATOR=';' 49 else 50 PATH_SEPARATOR=: 51 fi 52 rm -f conf$$.sh 53fi 54 55# Support unset when possible. 56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 57 as_unset=unset 58else 59 as_unset=false 60fi 61 62 63# IFS 64# We need space, tab and new line, in precisely that order. Quoting is 65# there to prevent editors from complaining about space-tab. 66# (If _AS_PATH_WALK were called with IFS unset, it would disable word 67# splitting by setting IFS to empty value.) 68as_nl=' 69' 70IFS=" "" $as_nl" 71 72# Find who we are. Look in the path if we contain no directory separator. 73case $0 in 74 *[\\/]* ) as_myself=$0 ;; 75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 76for as_dir in $PATH 77do 78 IFS=$as_save_IFS 79 test -z "$as_dir" && as_dir=. 80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 81done 82IFS=$as_save_IFS 83 84 ;; 85esac 86# We did not find ourselves, most probably we were run as `sh COMMAND' 87# in which case we are not to be found in the path. 88if test "x$as_myself" = x; then 89 as_myself=$0 90fi 91if test ! -f "$as_myself"; then 92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 93 { (exit 1); exit 1; } 94fi 95 96# Work around bugs in pre-3.0 UWIN ksh. 97for as_var in ENV MAIL MAILPATH 98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 99done 100PS1='$ ' 101PS2='> ' 102PS4='+ ' 103 104# NLS nuisances. 105for as_var in \ 106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 108 LC_TELEPHONE LC_TIME 109do 110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 111 eval $as_var=C; export $as_var 112 else 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 114 fi 115done 116 117# Required to use basename. 118if expr a : '\(a\)' >/dev/null 2>&1 && 119 test "X`expr 00001 : '.*\(...\)'`" = X001; then 120 as_expr=expr 121else 122 as_expr=false 123fi 124 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 126 as_basename=basename 127else 128 as_basename=false 129fi 130 131 132# Name of the executable. 133as_me=`$as_basename -- "$0" || 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 135 X"$0" : 'X\(//\)$' \| \ 136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 137echo X/"$0" | 138 sed '/^.*\/\([^/][^/]*\)\/*$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\/\)$/{ 143 s//\1/ 144 q 145 } 146 /^X\/\(\/\).*/{ 147 s//\1/ 148 q 149 } 150 s/.*/./; q'` 151 152# CDPATH. 153$as_unset CDPATH 154 155 156if test "x$CONFIG_SHELL" = x; then 157 if (eval ":") 2>/dev/null; then 158 as_have_required=yes 159else 160 as_have_required=no 161fi 162 163 if test $as_have_required = yes && (eval ": 164(as_func_return () { 165 (exit \$1) 166} 167as_func_success () { 168 as_func_return 0 169} 170as_func_failure () { 171 as_func_return 1 172} 173as_func_ret_success () { 174 return 0 175} 176as_func_ret_failure () { 177 return 1 178} 179 180exitcode=0 181if as_func_success; then 182 : 183else 184 exitcode=1 185 echo as_func_success failed. 186fi 187 188if as_func_failure; then 189 exitcode=1 190 echo as_func_failure succeeded. 191fi 192 193if as_func_ret_success; then 194 : 195else 196 exitcode=1 197 echo as_func_ret_success failed. 198fi 199 200if as_func_ret_failure; then 201 exitcode=1 202 echo as_func_ret_failure succeeded. 203fi 204 205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 206 : 207else 208 exitcode=1 209 echo positional parameters were not saved. 210fi 211 212test \$exitcode = 0) || { (exit 1); exit 1; } 213 214( 215 as_lineno_1=\$LINENO 216 as_lineno_2=\$LINENO 217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 219") 2> /dev/null; then 220 : 221else 222 as_candidate_shells= 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 225do 226 IFS=$as_save_IFS 227 test -z "$as_dir" && as_dir=. 228 case $as_dir in 229 /*) 230 for as_base in sh bash ksh sh5; do 231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 232 done;; 233 esac 234done 235IFS=$as_save_IFS 236 237 238 for as_shell in $as_candidate_shells $SHELL; do 239 # Try only shells that exist, to save several forks. 240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 241 { ("$as_shell") 2> /dev/null <<\_ASEOF 242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 243 emulate sh 244 NULLCMD=: 245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 246 # is contrary to our usage. Disable this feature. 247 alias -g '${1+"$@"}'='"$@"' 248 setopt NO_GLOB_SUBST 249else 250 case `(set -o) 2>/dev/null` in 251 *posix*) set -o posix ;; 252esac 253 254fi 255 256 257: 258_ASEOF 259}; then 260 CONFIG_SHELL=$as_shell 261 as_have_required=yes 262 if { "$as_shell" 2> /dev/null <<\_ASEOF 263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 264 emulate sh 265 NULLCMD=: 266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 267 # is contrary to our usage. Disable this feature. 268 alias -g '${1+"$@"}'='"$@"' 269 setopt NO_GLOB_SUBST 270else 271 case `(set -o) 2>/dev/null` in 272 *posix*) set -o posix ;; 273esac 274 275fi 276 277 278: 279(as_func_return () { 280 (exit $1) 281} 282as_func_success () { 283 as_func_return 0 284} 285as_func_failure () { 286 as_func_return 1 287} 288as_func_ret_success () { 289 return 0 290} 291as_func_ret_failure () { 292 return 1 293} 294 295exitcode=0 296if as_func_success; then 297 : 298else 299 exitcode=1 300 echo as_func_success failed. 301fi 302 303if as_func_failure; then 304 exitcode=1 305 echo as_func_failure succeeded. 306fi 307 308if as_func_ret_success; then 309 : 310else 311 exitcode=1 312 echo as_func_ret_success failed. 313fi 314 315if as_func_ret_failure; then 316 exitcode=1 317 echo as_func_ret_failure succeeded. 318fi 319 320if ( set x; as_func_ret_success y && test x = "$1" ); then 321 : 322else 323 exitcode=1 324 echo positional parameters were not saved. 325fi 326 327test $exitcode = 0) || { (exit 1); exit 1; } 328 329( 330 as_lineno_1=$LINENO 331 as_lineno_2=$LINENO 332 test "x$as_lineno_1" != "x$as_lineno_2" && 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 334 335_ASEOF 336}; then 337 break 338fi 339 340fi 341 342 done 343 344 if test "x$CONFIG_SHELL" != x; then 345 for as_var in BASH_ENV ENV 346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 347 done 348 export CONFIG_SHELL 349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 350fi 351 352 353 if test $as_have_required = no; then 354 echo This script requires a shell more modern than all the 355 echo shells that I found on your system. Please install a 356 echo modern shell, or manually run the script under such a 357 echo shell if you do have one. 358 { (exit 1); exit 1; } 359fi 360 361 362fi 363 364fi 365 366 367 368(eval "as_func_return () { 369 (exit \$1) 370} 371as_func_success () { 372 as_func_return 0 373} 374as_func_failure () { 375 as_func_return 1 376} 377as_func_ret_success () { 378 return 0 379} 380as_func_ret_failure () { 381 return 1 382} 383 384exitcode=0 385if as_func_success; then 386 : 387else 388 exitcode=1 389 echo as_func_success failed. 390fi 391 392if as_func_failure; then 393 exitcode=1 394 echo as_func_failure succeeded. 395fi 396 397if as_func_ret_success; then 398 : 399else 400 exitcode=1 401 echo as_func_ret_success failed. 402fi 403 404if as_func_ret_failure; then 405 exitcode=1 406 echo as_func_ret_failure succeeded. 407fi 408 409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 410 : 411else 412 exitcode=1 413 echo positional parameters were not saved. 414fi 415 416test \$exitcode = 0") || { 417 echo No shell found that supports shell functions. 418 echo Please tell autoconf@gnu.org about your system, 419 echo including any error possibly output before this 420 echo message 421} 422 423 424 425 as_lineno_1=$LINENO 426 as_lineno_2=$LINENO 427 test "x$as_lineno_1" != "x$as_lineno_2" && 428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 429 430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 431 # uniformly replaced by the line number. The first 'sed' inserts a 432 # line-number line after each line using $LINENO; the second 'sed' 433 # does the real work. The second script uses 'N' to pair each 434 # line-number line with the line containing $LINENO, and appends 435 # trailing '-' during substitution so that $LINENO is not a special 436 # case at line end. 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 438 # scripts with optimization help from Paolo Bonzini. Blame Lee 439 # E. McMahon (1931-1989) for sed's syntax. :-) 440 sed -n ' 441 p 442 /[$]LINENO/= 443 ' <$as_myself | 444 sed ' 445 s/[$]LINENO.*/&-/ 446 t lineno 447 b 448 :lineno 449 N 450 :loop 451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 452 t loop 453 s/-\n.*// 454 ' >$as_me.lineno && 455 chmod +x "$as_me.lineno" || 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 457 { (exit 1); exit 1; }; } 458 459 # Don't try to exec as it changes $[0], causing all sort of problems 460 # (the dirname of $[0] is not the place where we might find the 461 # original and so on. Autoconf is especially sensitive to this). 462 . "./$as_me.lineno" 463 # Exit status is that of the last command. 464 exit 465} 466 467 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 469 as_dirname=dirname 470else 471 as_dirname=false 472fi 473 474ECHO_C= ECHO_N= ECHO_T= 475case `echo -n x` in 476-n*) 477 case `echo 'x\c'` in 478 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 479 *) ECHO_C='\c';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485if expr a : '\(a\)' >/dev/null 2>&1 && 486 test "X`expr 00001 : '.*\(...\)'`" = X001; then 487 as_expr=expr 488else 489 as_expr=false 490fi 491 492rm -f conf$$ conf$$.exe conf$$.file 493if test -d conf$$.dir; then 494 rm -f conf$$.dir/conf$$.file 495else 496 rm -f conf$$.dir 497 mkdir conf$$.dir 498fi 499echo >conf$$.file 500if ln -s conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s='ln -s' 502 # ... but there are two gotchas: 503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 505 # In both cases, we have to default to `cp -p'. 506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 507 as_ln_s='cp -p' 508elif ln conf$$.file conf$$ 2>/dev/null; then 509 as_ln_s=ln 510else 511 as_ln_s='cp -p' 512fi 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 514rmdir conf$$.dir 2>/dev/null 515 516if mkdir -p . 2>/dev/null; then 517 as_mkdir_p=: 518else 519 test -d ./-p && rmdir ./-p 520 as_mkdir_p=false 521fi 522 523if test -x / >/dev/null 2>&1; then 524 as_test_x='test -x' 525else 526 if ls -dL / >/dev/null 2>&1; then 527 as_ls_L_option=L 528 else 529 as_ls_L_option= 530 fi 531 as_test_x=' 532 eval sh -c '\'' 533 if test -d "$1"; then 534 test -d "$1/."; 535 else 536 case $1 in 537 -*)set "./$1";; 538 esac; 539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 540 ???[sx]*):;;*)false;;esac;fi 541 '\'' sh 542 ' 543fi 544as_executable_p=$as_test_x 545 546# Sed expression to map a string onto a valid CPP name. 547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 548 549# Sed expression to map a string onto a valid variable name. 550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 551 552 553 554exec 7<&0 </dev/null 6>&1 555 556# Name of the host. 557# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 558# so uname gets run too. 559ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 560 561# 562# Initializations. 563# 564ac_default_prefix=/usr/local 565ac_clean_files= 566ac_config_libobj_dir=. 567LIBOBJS= 568cross_compiling=no 569subdirs= 570MFLAGS= 571MAKEFLAGS= 572SHELL=${CONFIG_SHELL-/bin/sh} 573 574# Identity of this package. 575PACKAGE_NAME='libnbcompat' 576PACKAGE_TARNAME='libnbcompat' 577PACKAGE_VERSION='noversion' 578PACKAGE_STRING='libnbcompat noversion' 579PACKAGE_BUGREPORT='lib-bug-people@NetBSD.org' 580 581# Factoring default headers for most tests. 582ac_includes_default="\ 583#include <stdio.h> 584#ifdef HAVE_SYS_TYPES_H 585# include <sys/types.h> 586#endif 587#ifdef HAVE_SYS_STAT_H 588# include <sys/stat.h> 589#endif 590#ifdef STDC_HEADERS 591# include <stdlib.h> 592# include <stddef.h> 593#else 594# ifdef HAVE_STDLIB_H 595# include <stdlib.h> 596# endif 597#endif 598#ifdef HAVE_STRING_H 599# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 600# include <memory.h> 601# endif 602# include <string.h> 603#endif 604#ifdef HAVE_STRINGS_H 605# include <strings.h> 606#endif 607#ifdef HAVE_INTTYPES_H 608# include <inttypes.h> 609#endif 610#ifdef HAVE_STDINT_H 611# include <stdint.h> 612#endif 613#ifdef HAVE_UNISTD_H 614# include <unistd.h> 615#endif" 616 617ac_subst_vars='SHELL 618PATH_SEPARATOR 619PACKAGE_NAME 620PACKAGE_TARNAME 621PACKAGE_VERSION 622PACKAGE_STRING 623PACKAGE_BUGREPORT 624exec_prefix 625prefix 626program_transform_name 627bindir 628sbindir 629libexecdir 630datarootdir 631datadir 632sysconfdir 633sharedstatedir 634localstatedir 635includedir 636oldincludedir 637docdir 638infodir 639htmldir 640dvidir 641pdfdir 642psdir 643libdir 644localedir 645mandir 646DEFS 647ECHO_C 648ECHO_N 649ECHO_T 650LIBS 651build_alias 652host_alias 653target_alias 654CC 655CFLAGS 656LDFLAGS 657CPPFLAGS 658ac_ct_CC 659EXEEXT 660OBJEXT 661CPP 662GREP 663EGREP 664BSHELL 665ALLOCA 666LIBOBJS 667LTLIBOBJS' 668ac_subst_files='' 669 ac_precious_vars='build_alias 670host_alias 671target_alias 672CC 673CFLAGS 674LDFLAGS 675LIBS 676CPPFLAGS 677CPP' 678 679 680# Initialize some variables set by options. 681ac_init_help= 682ac_init_version=false 683# The variables have the same names as the options, with 684# dashes changed to underlines. 685cache_file=/dev/null 686exec_prefix=NONE 687no_create= 688no_recursion= 689prefix=NONE 690program_prefix=NONE 691program_suffix=NONE 692program_transform_name=s,x,x, 693silent= 694site= 695srcdir= 696verbose= 697x_includes=NONE 698x_libraries=NONE 699 700# Installation directory options. 701# These are left unexpanded so users can "make install exec_prefix=/foo" 702# and all the variables that are supposed to be based on exec_prefix 703# by default will actually change. 704# Use braces instead of parens because sh, perl, etc. also accept them. 705# (The list follows the same order as the GNU Coding Standards.) 706bindir='${exec_prefix}/bin' 707sbindir='${exec_prefix}/sbin' 708libexecdir='${exec_prefix}/libexec' 709datarootdir='${prefix}/share' 710datadir='${datarootdir}' 711sysconfdir='${prefix}/etc' 712sharedstatedir='${prefix}/com' 713localstatedir='${prefix}/var' 714includedir='${prefix}/include' 715oldincludedir='/usr/include' 716docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 717infodir='${datarootdir}/info' 718htmldir='${docdir}' 719dvidir='${docdir}' 720pdfdir='${docdir}' 721psdir='${docdir}' 722libdir='${exec_prefix}/lib' 723localedir='${datarootdir}/locale' 724mandir='${datarootdir}/man' 725 726ac_prev= 727ac_dashdash= 728for ac_option 729do 730 # If the previous option needs an argument, assign it. 731 if test -n "$ac_prev"; then 732 eval $ac_prev=\$ac_option 733 ac_prev= 734 continue 735 fi 736 737 case $ac_option in 738 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 739 *) ac_optarg=yes ;; 740 esac 741 742 # Accept the important Cygnus configure options, so we can diagnose typos. 743 744 case $ac_dashdash$ac_option in 745 --) 746 ac_dashdash=yes ;; 747 748 -bindir | --bindir | --bindi | --bind | --bin | --bi) 749 ac_prev=bindir ;; 750 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 751 bindir=$ac_optarg ;; 752 753 -build | --build | --buil | --bui | --bu) 754 ac_prev=build_alias ;; 755 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 756 build_alias=$ac_optarg ;; 757 758 -cache-file | --cache-file | --cache-fil | --cache-fi \ 759 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 760 ac_prev=cache_file ;; 761 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 762 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 763 cache_file=$ac_optarg ;; 764 765 --config-cache | -C) 766 cache_file=config.cache ;; 767 768 -datadir | --datadir | --datadi | --datad) 769 ac_prev=datadir ;; 770 -datadir=* | --datadir=* | --datadi=* | --datad=*) 771 datadir=$ac_optarg ;; 772 773 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 774 | --dataroo | --dataro | --datar) 775 ac_prev=datarootdir ;; 776 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 777 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 778 datarootdir=$ac_optarg ;; 779 780 -disable-* | --disable-*) 781 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 782 # Reject names that are not valid shell variable names. 783 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 784 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 785 { (exit 1); exit 1; }; } 786 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 787 eval enable_$ac_feature=no ;; 788 789 -docdir | --docdir | --docdi | --doc | --do) 790 ac_prev=docdir ;; 791 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 792 docdir=$ac_optarg ;; 793 794 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 795 ac_prev=dvidir ;; 796 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 797 dvidir=$ac_optarg ;; 798 799 -enable-* | --enable-*) 800 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 801 # Reject names that are not valid shell variable names. 802 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 803 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 804 { (exit 1); exit 1; }; } 805 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 806 eval enable_$ac_feature=\$ac_optarg ;; 807 808 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 809 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 810 | --exec | --exe | --ex) 811 ac_prev=exec_prefix ;; 812 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 813 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 814 | --exec=* | --exe=* | --ex=*) 815 exec_prefix=$ac_optarg ;; 816 817 -gas | --gas | --ga | --g) 818 # Obsolete; use --with-gas. 819 with_gas=yes ;; 820 821 -help | --help | --hel | --he | -h) 822 ac_init_help=long ;; 823 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 824 ac_init_help=recursive ;; 825 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 826 ac_init_help=short ;; 827 828 -host | --host | --hos | --ho) 829 ac_prev=host_alias ;; 830 -host=* | --host=* | --hos=* | --ho=*) 831 host_alias=$ac_optarg ;; 832 833 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 834 ac_prev=htmldir ;; 835 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 836 | --ht=*) 837 htmldir=$ac_optarg ;; 838 839 -includedir | --includedir | --includedi | --included | --include \ 840 | --includ | --inclu | --incl | --inc) 841 ac_prev=includedir ;; 842 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 843 | --includ=* | --inclu=* | --incl=* | --inc=*) 844 includedir=$ac_optarg ;; 845 846 -infodir | --infodir | --infodi | --infod | --info | --inf) 847 ac_prev=infodir ;; 848 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 849 infodir=$ac_optarg ;; 850 851 -libdir | --libdir | --libdi | --libd) 852 ac_prev=libdir ;; 853 -libdir=* | --libdir=* | --libdi=* | --libd=*) 854 libdir=$ac_optarg ;; 855 856 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 857 | --libexe | --libex | --libe) 858 ac_prev=libexecdir ;; 859 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 860 | --libexe=* | --libex=* | --libe=*) 861 libexecdir=$ac_optarg ;; 862 863 -localedir | --localedir | --localedi | --localed | --locale) 864 ac_prev=localedir ;; 865 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 866 localedir=$ac_optarg ;; 867 868 -localstatedir | --localstatedir | --localstatedi | --localstated \ 869 | --localstate | --localstat | --localsta | --localst | --locals) 870 ac_prev=localstatedir ;; 871 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 872 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 873 localstatedir=$ac_optarg ;; 874 875 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 876 ac_prev=mandir ;; 877 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 878 mandir=$ac_optarg ;; 879 880 -nfp | --nfp | --nf) 881 # Obsolete; use --without-fp. 882 with_fp=no ;; 883 884 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 885 | --no-cr | --no-c | -n) 886 no_create=yes ;; 887 888 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 889 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 890 no_recursion=yes ;; 891 892 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 893 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 894 | --oldin | --oldi | --old | --ol | --o) 895 ac_prev=oldincludedir ;; 896 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 897 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 898 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 899 oldincludedir=$ac_optarg ;; 900 901 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 902 ac_prev=prefix ;; 903 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 904 prefix=$ac_optarg ;; 905 906 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 907 | --program-pre | --program-pr | --program-p) 908 ac_prev=program_prefix ;; 909 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 910 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 911 program_prefix=$ac_optarg ;; 912 913 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 914 | --program-suf | --program-su | --program-s) 915 ac_prev=program_suffix ;; 916 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 917 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 918 program_suffix=$ac_optarg ;; 919 920 -program-transform-name | --program-transform-name \ 921 | --program-transform-nam | --program-transform-na \ 922 | --program-transform-n | --program-transform- \ 923 | --program-transform | --program-transfor \ 924 | --program-transfo | --program-transf \ 925 | --program-trans | --program-tran \ 926 | --progr-tra | --program-tr | --program-t) 927 ac_prev=program_transform_name ;; 928 -program-transform-name=* | --program-transform-name=* \ 929 | --program-transform-nam=* | --program-transform-na=* \ 930 | --program-transform-n=* | --program-transform-=* \ 931 | --program-transform=* | --program-transfor=* \ 932 | --program-transfo=* | --program-transf=* \ 933 | --program-trans=* | --program-tran=* \ 934 | --progr-tra=* | --program-tr=* | --program-t=*) 935 program_transform_name=$ac_optarg ;; 936 937 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 938 ac_prev=pdfdir ;; 939 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 940 pdfdir=$ac_optarg ;; 941 942 -psdir | --psdir | --psdi | --psd | --ps) 943 ac_prev=psdir ;; 944 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 945 psdir=$ac_optarg ;; 946 947 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 948 | -silent | --silent | --silen | --sile | --sil) 949 silent=yes ;; 950 951 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 952 ac_prev=sbindir ;; 953 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 954 | --sbi=* | --sb=*) 955 sbindir=$ac_optarg ;; 956 957 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 958 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 959 | --sharedst | --shareds | --shared | --share | --shar \ 960 | --sha | --sh) 961 ac_prev=sharedstatedir ;; 962 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 963 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 964 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 965 | --sha=* | --sh=*) 966 sharedstatedir=$ac_optarg ;; 967 968 -site | --site | --sit) 969 ac_prev=site ;; 970 -site=* | --site=* | --sit=*) 971 site=$ac_optarg ;; 972 973 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 974 ac_prev=srcdir ;; 975 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 976 srcdir=$ac_optarg ;; 977 978 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 979 | --syscon | --sysco | --sysc | --sys | --sy) 980 ac_prev=sysconfdir ;; 981 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 982 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 983 sysconfdir=$ac_optarg ;; 984 985 -target | --target | --targe | --targ | --tar | --ta | --t) 986 ac_prev=target_alias ;; 987 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 988 target_alias=$ac_optarg ;; 989 990 -v | -verbose | --verbose | --verbos | --verbo | --verb) 991 verbose=yes ;; 992 993 -version | --version | --versio | --versi | --vers | -V) 994 ac_init_version=: ;; 995 996 -with-* | --with-*) 997 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 998 # Reject names that are not valid shell variable names. 999 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1000 { echo "$as_me: error: invalid package name: $ac_package" >&2 1001 { (exit 1); exit 1; }; } 1002 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1003 eval with_$ac_package=\$ac_optarg ;; 1004 1005 -without-* | --without-*) 1006 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1007 # Reject names that are not valid shell variable names. 1008 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1009 { echo "$as_me: error: invalid package name: $ac_package" >&2 1010 { (exit 1); exit 1; }; } 1011 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1012 eval with_$ac_package=no ;; 1013 1014 --x) 1015 # Obsolete; use --with-x. 1016 with_x=yes ;; 1017 1018 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1019 | --x-incl | --x-inc | --x-in | --x-i) 1020 ac_prev=x_includes ;; 1021 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1022 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1023 x_includes=$ac_optarg ;; 1024 1025 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1026 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1027 ac_prev=x_libraries ;; 1028 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1029 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1030 x_libraries=$ac_optarg ;; 1031 1032 -*) { echo "$as_me: error: unrecognized option: $ac_option 1033Try \`$0 --help' for more information." >&2 1034 { (exit 1); exit 1; }; } 1035 ;; 1036 1037 *=*) 1038 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1039 # Reject names that are not valid shell variable names. 1040 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1041 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1042 { (exit 1); exit 1; }; } 1043 eval $ac_envvar=\$ac_optarg 1044 export $ac_envvar ;; 1045 1046 *) 1047 # FIXME: should be removed in autoconf 3.0. 1048 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1049 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1050 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1051 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1052 ;; 1053 1054 esac 1055done 1056 1057if test -n "$ac_prev"; then 1058 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1059 { echo "$as_me: error: missing argument to $ac_option" >&2 1060 { (exit 1); exit 1; }; } 1061fi 1062 1063# Be sure to have absolute directory names. 1064for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1065 datadir sysconfdir sharedstatedir localstatedir includedir \ 1066 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1067 libdir localedir mandir 1068do 1069 eval ac_val=\$$ac_var 1070 case $ac_val in 1071 [\\/$]* | ?:[\\/]* ) continue;; 1072 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1073 esac 1074 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1075 { (exit 1); exit 1; }; } 1076done 1077 1078# There might be people who depend on the old broken behavior: `$host' 1079# used to hold the argument of --host etc. 1080# FIXME: To remove some day. 1081build=$build_alias 1082host=$host_alias 1083target=$target_alias 1084 1085# FIXME: To remove some day. 1086if test "x$host_alias" != x; then 1087 if test "x$build_alias" = x; then 1088 cross_compiling=maybe 1089 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1090 If a cross compiler is detected then cross compile mode will be used." >&2 1091 elif test "x$build_alias" != "x$host_alias"; then 1092 cross_compiling=yes 1093 fi 1094fi 1095 1096ac_tool_prefix= 1097test -n "$host_alias" && ac_tool_prefix=$host_alias- 1098 1099test "$silent" = yes && exec 6>/dev/null 1100 1101 1102ac_pwd=`pwd` && test -n "$ac_pwd" && 1103ac_ls_di=`ls -di .` && 1104ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1105 { echo "$as_me: error: Working directory cannot be determined" >&2 1106 { (exit 1); exit 1; }; } 1107test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1108 { echo "$as_me: error: pwd does not report name of working directory" >&2 1109 { (exit 1); exit 1; }; } 1110 1111 1112# Find the source files, if location was not specified. 1113if test -z "$srcdir"; then 1114 ac_srcdir_defaulted=yes 1115 # Try the directory containing this script, then the parent directory. 1116 ac_confdir=`$as_dirname -- "$0" || 1117$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1118 X"$0" : 'X\(//\)[^/]' \| \ 1119 X"$0" : 'X\(//\)$' \| \ 1120 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1121echo X"$0" | 1122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1123 s//\1/ 1124 q 1125 } 1126 /^X\(\/\/\)[^/].*/{ 1127 s//\1/ 1128 q 1129 } 1130 /^X\(\/\/\)$/{ 1131 s//\1/ 1132 q 1133 } 1134 /^X\(\/\).*/{ 1135 s//\1/ 1136 q 1137 } 1138 s/.*/./; q'` 1139 srcdir=$ac_confdir 1140 if test ! -r "$srcdir/$ac_unique_file"; then 1141 srcdir=.. 1142 fi 1143else 1144 ac_srcdir_defaulted=no 1145fi 1146if test ! -r "$srcdir/$ac_unique_file"; then 1147 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1148 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1149 { (exit 1); exit 1; }; } 1150fi 1151ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1152ac_abs_confdir=`( 1153 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1154 { (exit 1); exit 1; }; } 1155 pwd)` 1156# When building in place, set srcdir=. 1157if test "$ac_abs_confdir" = "$ac_pwd"; then 1158 srcdir=. 1159fi 1160# Remove unnecessary trailing slashes from srcdir. 1161# Double slashes in file names in object file debugging info 1162# mess up M-x gdb in Emacs. 1163case $srcdir in 1164*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1165esac 1166for ac_var in $ac_precious_vars; do 1167 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1168 eval ac_env_${ac_var}_value=\$${ac_var} 1169 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1170 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1171done 1172 1173# 1174# Report the --help message. 1175# 1176if test "$ac_init_help" = "long"; then 1177 # Omit some internal or obsolete options to make the list less imposing. 1178 # This message is too long to be a string in the A/UX 3.1 sh. 1179 cat <<_ACEOF 1180\`configure' configures libnbcompat noversion to adapt to many kinds of systems. 1181 1182Usage: $0 [OPTION]... [VAR=VALUE]... 1183 1184To assign environment variables (e.g., CC, CFLAGS...), specify them as 1185VAR=VALUE. See below for descriptions of some of the useful variables. 1186 1187Defaults for the options are specified in brackets. 1188 1189Configuration: 1190 -h, --help display this help and exit 1191 --help=short display options specific to this package 1192 --help=recursive display the short help of all the included packages 1193 -V, --version display version information and exit 1194 -q, --quiet, --silent do not print \`checking...' messages 1195 --cache-file=FILE cache test results in FILE [disabled] 1196 -C, --config-cache alias for \`--cache-file=config.cache' 1197 -n, --no-create do not create output files 1198 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1199 1200Installation directories: 1201 --prefix=PREFIX install architecture-independent files in PREFIX 1202 [$ac_default_prefix] 1203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1204 [PREFIX] 1205 1206By default, \`make install' will install all the files in 1207\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1208an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1209for instance \`--prefix=\$HOME'. 1210 1211For better control, use the options below. 1212 1213Fine tuning of the installation directories: 1214 --bindir=DIR user executables [EPREFIX/bin] 1215 --sbindir=DIR system admin executables [EPREFIX/sbin] 1216 --libexecdir=DIR program executables [EPREFIX/libexec] 1217 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1218 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1219 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1220 --libdir=DIR object code libraries [EPREFIX/lib] 1221 --includedir=DIR C header files [PREFIX/include] 1222 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1223 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1224 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1225 --infodir=DIR info documentation [DATAROOTDIR/info] 1226 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1227 --mandir=DIR man documentation [DATAROOTDIR/man] 1228 --docdir=DIR documentation root [DATAROOTDIR/doc/libnbcompat] 1229 --htmldir=DIR html documentation [DOCDIR] 1230 --dvidir=DIR dvi documentation [DOCDIR] 1231 --pdfdir=DIR pdf documentation [DOCDIR] 1232 --psdir=DIR ps documentation [DOCDIR] 1233_ACEOF 1234 1235 cat <<\_ACEOF 1236_ACEOF 1237fi 1238 1239if test -n "$ac_init_help"; then 1240 case $ac_init_help in 1241 short | recursive ) echo "Configuration of libnbcompat noversion:";; 1242 esac 1243 cat <<\_ACEOF 1244 1245Some influential environment variables: 1246 CC C compiler command 1247 CFLAGS C compiler flags 1248 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1249 nonstandard directory <lib dir> 1250 LIBS libraries to pass to the linker, e.g. -l<library> 1251 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1252 you have headers in a nonstandard directory <include dir> 1253 CPP C preprocessor 1254 1255Use these variables to override the choices made by `configure' or to help 1256it to find libraries and programs with nonstandard names/locations. 1257 1258Report bugs to <lib-bug-people@NetBSD.org>. 1259_ACEOF 1260ac_status=$? 1261fi 1262 1263if test "$ac_init_help" = "recursive"; then 1264 # If there are subdirs, report their specific --help. 1265 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1266 test -d "$ac_dir" || continue 1267 ac_builddir=. 1268 1269case "$ac_dir" in 1270.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1271*) 1272 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1273 # A ".." for each directory in $ac_dir_suffix. 1274 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1275 case $ac_top_builddir_sub in 1276 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1277 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1278 esac ;; 1279esac 1280ac_abs_top_builddir=$ac_pwd 1281ac_abs_builddir=$ac_pwd$ac_dir_suffix 1282# for backward compatibility: 1283ac_top_builddir=$ac_top_build_prefix 1284 1285case $srcdir in 1286 .) # We are building in place. 1287 ac_srcdir=. 1288 ac_top_srcdir=$ac_top_builddir_sub 1289 ac_abs_top_srcdir=$ac_pwd ;; 1290 [\\/]* | ?:[\\/]* ) # Absolute name. 1291 ac_srcdir=$srcdir$ac_dir_suffix; 1292 ac_top_srcdir=$srcdir 1293 ac_abs_top_srcdir=$srcdir ;; 1294 *) # Relative name. 1295 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1296 ac_top_srcdir=$ac_top_build_prefix$srcdir 1297 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1298esac 1299ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1300 1301 cd "$ac_dir" || { ac_status=$?; continue; } 1302 # Check for guested configure. 1303 if test -f "$ac_srcdir/configure.gnu"; then 1304 echo && 1305 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1306 elif test -f "$ac_srcdir/configure"; then 1307 echo && 1308 $SHELL "$ac_srcdir/configure" --help=recursive 1309 else 1310 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1311 fi || ac_status=$? 1312 cd "$ac_pwd" || { ac_status=$?; break; } 1313 done 1314fi 1315 1316test -n "$ac_init_help" && exit $ac_status 1317if $ac_init_version; then 1318 cat <<\_ACEOF 1319libnbcompat configure noversion 1320generated by GNU Autoconf 2.61 1321 1322Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 13232002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1324This configure script is free software; the Free Software Foundation 1325gives unlimited permission to copy, distribute and modify it. 1326_ACEOF 1327 exit 1328fi 1329cat >config.log <<_ACEOF 1330This file contains any messages produced by compilers while 1331running configure, to aid debugging if configure makes a mistake. 1332 1333It was created by libnbcompat $as_me noversion, which was 1334generated by GNU Autoconf 2.61. Invocation command line was 1335 1336 $ $0 $@ 1337 1338_ACEOF 1339exec 5>>config.log 1340{ 1341cat <<_ASUNAME 1342## --------- ## 1343## Platform. ## 1344## --------- ## 1345 1346hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1347uname -m = `(uname -m) 2>/dev/null || echo unknown` 1348uname -r = `(uname -r) 2>/dev/null || echo unknown` 1349uname -s = `(uname -s) 2>/dev/null || echo unknown` 1350uname -v = `(uname -v) 2>/dev/null || echo unknown` 1351 1352/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1353/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1354 1355/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1356/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1357/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1358/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1359/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1360/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1361/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1362 1363_ASUNAME 1364 1365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1366for as_dir in $PATH 1367do 1368 IFS=$as_save_IFS 1369 test -z "$as_dir" && as_dir=. 1370 echo "PATH: $as_dir" 1371done 1372IFS=$as_save_IFS 1373 1374} >&5 1375 1376cat >&5 <<_ACEOF 1377 1378 1379## ----------- ## 1380## Core tests. ## 1381## ----------- ## 1382 1383_ACEOF 1384 1385 1386# Keep a trace of the command line. 1387# Strip out --no-create and --no-recursion so they do not pile up. 1388# Strip out --silent because we don't want to record it for future runs. 1389# Also quote any args containing shell meta-characters. 1390# Make two passes to allow for proper duplicate-argument suppression. 1391ac_configure_args= 1392ac_configure_args0= 1393ac_configure_args1= 1394ac_must_keep_next=false 1395for ac_pass in 1 2 1396do 1397 for ac_arg 1398 do 1399 case $ac_arg in 1400 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1401 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1402 | -silent | --silent | --silen | --sile | --sil) 1403 continue ;; 1404 *\'*) 1405 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1406 esac 1407 case $ac_pass in 1408 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1409 2) 1410 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1411 if test $ac_must_keep_next = true; then 1412 ac_must_keep_next=false # Got value, back to normal. 1413 else 1414 case $ac_arg in 1415 *=* | --config-cache | -C | -disable-* | --disable-* \ 1416 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1417 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1418 | -with-* | --with-* | -without-* | --without-* | --x) 1419 case "$ac_configure_args0 " in 1420 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1421 esac 1422 ;; 1423 -* ) ac_must_keep_next=true ;; 1424 esac 1425 fi 1426 ac_configure_args="$ac_configure_args '$ac_arg'" 1427 ;; 1428 esac 1429 done 1430done 1431$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1432$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1433 1434# When interrupted or exit'd, cleanup temporary files, and complete 1435# config.log. We remove comments because anyway the quotes in there 1436# would cause problems or look ugly. 1437# WARNING: Use '\'' to represent an apostrophe within the trap. 1438# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1439trap 'exit_status=$? 1440 # Save into config.log some information that might help in debugging. 1441 { 1442 echo 1443 1444 cat <<\_ASBOX 1445## ---------------- ## 1446## Cache variables. ## 1447## ---------------- ## 1448_ASBOX 1449 echo 1450 # The following way of writing the cache mishandles newlines in values, 1451( 1452 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1453 eval ac_val=\$$ac_var 1454 case $ac_val in #( 1455 *${as_nl}*) 1456 case $ac_var in #( 1457 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1458echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1459 esac 1460 case $ac_var in #( 1461 _ | IFS | as_nl) ;; #( 1462 *) $as_unset $ac_var ;; 1463 esac ;; 1464 esac 1465 done 1466 (set) 2>&1 | 1467 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1468 *${as_nl}ac_space=\ *) 1469 sed -n \ 1470 "s/'\''/'\''\\\\'\'''\''/g; 1471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1472 ;; #( 1473 *) 1474 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1475 ;; 1476 esac | 1477 sort 1478) 1479 echo 1480 1481 cat <<\_ASBOX 1482## ----------------- ## 1483## Output variables. ## 1484## ----------------- ## 1485_ASBOX 1486 echo 1487 for ac_var in $ac_subst_vars 1488 do 1489 eval ac_val=\$$ac_var 1490 case $ac_val in 1491 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1492 esac 1493 echo "$ac_var='\''$ac_val'\''" 1494 done | sort 1495 echo 1496 1497 if test -n "$ac_subst_files"; then 1498 cat <<\_ASBOX 1499## ------------------- ## 1500## File substitutions. ## 1501## ------------------- ## 1502_ASBOX 1503 echo 1504 for ac_var in $ac_subst_files 1505 do 1506 eval ac_val=\$$ac_var 1507 case $ac_val in 1508 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1509 esac 1510 echo "$ac_var='\''$ac_val'\''" 1511 done | sort 1512 echo 1513 fi 1514 1515 if test -s confdefs.h; then 1516 cat <<\_ASBOX 1517## ----------- ## 1518## confdefs.h. ## 1519## ----------- ## 1520_ASBOX 1521 echo 1522 cat confdefs.h 1523 echo 1524 fi 1525 test "$ac_signal" != 0 && 1526 echo "$as_me: caught signal $ac_signal" 1527 echo "$as_me: exit $exit_status" 1528 } >&5 1529 rm -f core *.core core.conftest.* && 1530 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1531 exit $exit_status 1532' 0 1533for ac_signal in 1 2 13 15; do 1534 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1535done 1536ac_signal=0 1537 1538# confdefs.h avoids OS command line length limits that DEFS can exceed. 1539rm -f -r conftest* confdefs.h 1540 1541# Predefined preprocessor variables. 1542 1543cat >>confdefs.h <<_ACEOF 1544#define PACKAGE_NAME "$PACKAGE_NAME" 1545_ACEOF 1546 1547 1548cat >>confdefs.h <<_ACEOF 1549#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1550_ACEOF 1551 1552 1553cat >>confdefs.h <<_ACEOF 1554#define PACKAGE_VERSION "$PACKAGE_VERSION" 1555_ACEOF 1556 1557 1558cat >>confdefs.h <<_ACEOF 1559#define PACKAGE_STRING "$PACKAGE_STRING" 1560_ACEOF 1561 1562 1563cat >>confdefs.h <<_ACEOF 1564#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1565_ACEOF 1566 1567 1568# Let the site file select an alternate cache file if it wants to. 1569# Prefer explicitly selected file to automatically selected ones. 1570if test -n "$CONFIG_SITE"; then 1571 set x "$CONFIG_SITE" 1572elif test "x$prefix" != xNONE; then 1573 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1574else 1575 set x "$ac_default_prefix/share/config.site" \ 1576 "$ac_default_prefix/etc/config.site" 1577fi 1578shift 1579for ac_site_file 1580do 1581 if test -r "$ac_site_file"; then 1582 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1583echo "$as_me: loading site script $ac_site_file" >&6;} 1584 sed 's/^/| /' "$ac_site_file" >&5 1585 . "$ac_site_file" 1586 fi 1587done 1588 1589if test -r "$cache_file"; then 1590 # Some versions of bash will fail to source /dev/null (special 1591 # files actually), so we avoid doing that. 1592 if test -f "$cache_file"; then 1593 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1594echo "$as_me: loading cache $cache_file" >&6;} 1595 case $cache_file in 1596 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1597 *) . "./$cache_file";; 1598 esac 1599 fi 1600else 1601 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1602echo "$as_me: creating cache $cache_file" >&6;} 1603 >$cache_file 1604fi 1605 1606# Check that the precious variables saved in the cache have kept the same 1607# value. 1608ac_cache_corrupted=false 1609for ac_var in $ac_precious_vars; do 1610 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1611 eval ac_new_set=\$ac_env_${ac_var}_set 1612 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1613 eval ac_new_val=\$ac_env_${ac_var}_value 1614 case $ac_old_set,$ac_new_set in 1615 set,) 1616 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1617echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1618 ac_cache_corrupted=: ;; 1619 ,set) 1620 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1621echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1622 ac_cache_corrupted=: ;; 1623 ,);; 1624 *) 1625 if test "x$ac_old_val" != "x$ac_new_val"; then 1626 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1627echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1628 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1629echo "$as_me: former value: $ac_old_val" >&2;} 1630 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1631echo "$as_me: current value: $ac_new_val" >&2;} 1632 ac_cache_corrupted=: 1633 fi;; 1634 esac 1635 # Pass precious variables to config.status. 1636 if test "$ac_new_set" = set; then 1637 case $ac_new_val in 1638 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1639 *) ac_arg=$ac_var=$ac_new_val ;; 1640 esac 1641 case " $ac_configure_args " in 1642 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1643 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1644 esac 1645 fi 1646done 1647if $ac_cache_corrupted; then 1648 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1649echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1650 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1651echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1652 { (exit 1); exit 1; }; } 1653fi 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679ac_ext=c 1680ac_cpp='$CPP $CPPFLAGS' 1681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1683ac_compiler_gnu=$ac_cv_c_compiler_gnu 1684 1685 1686ac_config_headers="$ac_config_headers nbtool_config.h" 1687 1688ac_config_files="$ac_config_files defs.mk" 1689 1690 1691# Autoheader header and footer 1692 1693 1694 1695 1696 1697 1698# AC_NETBSD 1699 1700ac_ext=c 1701ac_cpp='$CPP $CPPFLAGS' 1702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1704ac_compiler_gnu=$ac_cv_c_compiler_gnu 1705if test -n "$ac_tool_prefix"; then 1706 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1707set dummy ${ac_tool_prefix}gcc; ac_word=$2 1708{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1710if test "${ac_cv_prog_CC+set}" = set; then 1711 echo $ECHO_N "(cached) $ECHO_C" >&6 1712else 1713 if test -n "$CC"; then 1714 ac_cv_prog_CC="$CC" # Let the user override the test. 1715else 1716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1717for as_dir in $PATH 1718do 1719 IFS=$as_save_IFS 1720 test -z "$as_dir" && as_dir=. 1721 for ac_exec_ext in '' $ac_executable_extensions; do 1722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1723 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1725 break 2 1726 fi 1727done 1728done 1729IFS=$as_save_IFS 1730 1731fi 1732fi 1733CC=$ac_cv_prog_CC 1734if test -n "$CC"; then 1735 { echo "$as_me:$LINENO: result: $CC" >&5 1736echo "${ECHO_T}$CC" >&6; } 1737else 1738 { echo "$as_me:$LINENO: result: no" >&5 1739echo "${ECHO_T}no" >&6; } 1740fi 1741 1742 1743fi 1744if test -z "$ac_cv_prog_CC"; then 1745 ac_ct_CC=$CC 1746 # Extract the first word of "gcc", so it can be a program name with args. 1747set dummy gcc; ac_word=$2 1748{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1750if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1751 echo $ECHO_N "(cached) $ECHO_C" >&6 1752else 1753 if test -n "$ac_ct_CC"; then 1754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1755else 1756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1757for as_dir in $PATH 1758do 1759 IFS=$as_save_IFS 1760 test -z "$as_dir" && as_dir=. 1761 for ac_exec_ext in '' $ac_executable_extensions; do 1762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1763 ac_cv_prog_ac_ct_CC="gcc" 1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1765 break 2 1766 fi 1767done 1768done 1769IFS=$as_save_IFS 1770 1771fi 1772fi 1773ac_ct_CC=$ac_cv_prog_ac_ct_CC 1774if test -n "$ac_ct_CC"; then 1775 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1776echo "${ECHO_T}$ac_ct_CC" >&6; } 1777else 1778 { echo "$as_me:$LINENO: result: no" >&5 1779echo "${ECHO_T}no" >&6; } 1780fi 1781 1782 if test "x$ac_ct_CC" = x; then 1783 CC="" 1784 else 1785 case $cross_compiling:$ac_tool_warned in 1786yes:) 1787{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 1788whose name does not start with the host triplet. If you think this 1789configuration is useful to you, please write to autoconf@gnu.org." >&5 1790echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 1791whose name does not start with the host triplet. If you think this 1792configuration is useful to you, please write to autoconf@gnu.org." >&2;} 1793ac_tool_warned=yes ;; 1794esac 1795 CC=$ac_ct_CC 1796 fi 1797else 1798 CC="$ac_cv_prog_CC" 1799fi 1800 1801if test -z "$CC"; then 1802 if test -n "$ac_tool_prefix"; then 1803 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1804set dummy ${ac_tool_prefix}cc; ac_word=$2 1805{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1807if test "${ac_cv_prog_CC+set}" = set; then 1808 echo $ECHO_N "(cached) $ECHO_C" >&6 1809else 1810 if test -n "$CC"; then 1811 ac_cv_prog_CC="$CC" # Let the user override the test. 1812else 1813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1814for as_dir in $PATH 1815do 1816 IFS=$as_save_IFS 1817 test -z "$as_dir" && as_dir=. 1818 for ac_exec_ext in '' $ac_executable_extensions; do 1819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1820 ac_cv_prog_CC="${ac_tool_prefix}cc" 1821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1822 break 2 1823 fi 1824done 1825done 1826IFS=$as_save_IFS 1827 1828fi 1829fi 1830CC=$ac_cv_prog_CC 1831if test -n "$CC"; then 1832 { echo "$as_me:$LINENO: result: $CC" >&5 1833echo "${ECHO_T}$CC" >&6; } 1834else 1835 { echo "$as_me:$LINENO: result: no" >&5 1836echo "${ECHO_T}no" >&6; } 1837fi 1838 1839 1840 fi 1841fi 1842if test -z "$CC"; then 1843 # Extract the first word of "cc", so it can be a program name with args. 1844set dummy cc; ac_word=$2 1845{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1847if test "${ac_cv_prog_CC+set}" = set; then 1848 echo $ECHO_N "(cached) $ECHO_C" >&6 1849else 1850 if test -n "$CC"; then 1851 ac_cv_prog_CC="$CC" # Let the user override the test. 1852else 1853 ac_prog_rejected=no 1854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1855for as_dir in $PATH 1856do 1857 IFS=$as_save_IFS 1858 test -z "$as_dir" && as_dir=. 1859 for ac_exec_ext in '' $ac_executable_extensions; do 1860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1861 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1862 ac_prog_rejected=yes 1863 continue 1864 fi 1865 ac_cv_prog_CC="cc" 1866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1867 break 2 1868 fi 1869done 1870done 1871IFS=$as_save_IFS 1872 1873if test $ac_prog_rejected = yes; then 1874 # We found a bogon in the path, so make sure we never use it. 1875 set dummy $ac_cv_prog_CC 1876 shift 1877 if test $# != 0; then 1878 # We chose a different compiler from the bogus one. 1879 # However, it has the same basename, so the bogon will be chosen 1880 # first if we set CC to just the basename; use the full file name. 1881 shift 1882 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1883 fi 1884fi 1885fi 1886fi 1887CC=$ac_cv_prog_CC 1888if test -n "$CC"; then 1889 { echo "$as_me:$LINENO: result: $CC" >&5 1890echo "${ECHO_T}$CC" >&6; } 1891else 1892 { echo "$as_me:$LINENO: result: no" >&5 1893echo "${ECHO_T}no" >&6; } 1894fi 1895 1896 1897fi 1898if test -z "$CC"; then 1899 if test -n "$ac_tool_prefix"; then 1900 for ac_prog in cl.exe 1901 do 1902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1903set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1904{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1906if test "${ac_cv_prog_CC+set}" = set; then 1907 echo $ECHO_N "(cached) $ECHO_C" >&6 1908else 1909 if test -n "$CC"; then 1910 ac_cv_prog_CC="$CC" # Let the user override the test. 1911else 1912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1913for as_dir in $PATH 1914do 1915 IFS=$as_save_IFS 1916 test -z "$as_dir" && as_dir=. 1917 for ac_exec_ext in '' $ac_executable_extensions; do 1918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1919 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1921 break 2 1922 fi 1923done 1924done 1925IFS=$as_save_IFS 1926 1927fi 1928fi 1929CC=$ac_cv_prog_CC 1930if test -n "$CC"; then 1931 { echo "$as_me:$LINENO: result: $CC" >&5 1932echo "${ECHO_T}$CC" >&6; } 1933else 1934 { echo "$as_me:$LINENO: result: no" >&5 1935echo "${ECHO_T}no" >&6; } 1936fi 1937 1938 1939 test -n "$CC" && break 1940 done 1941fi 1942if test -z "$CC"; then 1943 ac_ct_CC=$CC 1944 for ac_prog in cl.exe 1945do 1946 # Extract the first word of "$ac_prog", so it can be a program name with args. 1947set dummy $ac_prog; ac_word=$2 1948{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1950if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1951 echo $ECHO_N "(cached) $ECHO_C" >&6 1952else 1953 if test -n "$ac_ct_CC"; then 1954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1955else 1956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1957for as_dir in $PATH 1958do 1959 IFS=$as_save_IFS 1960 test -z "$as_dir" && as_dir=. 1961 for ac_exec_ext in '' $ac_executable_extensions; do 1962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1963 ac_cv_prog_ac_ct_CC="$ac_prog" 1964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1965 break 2 1966 fi 1967done 1968done 1969IFS=$as_save_IFS 1970 1971fi 1972fi 1973ac_ct_CC=$ac_cv_prog_ac_ct_CC 1974if test -n "$ac_ct_CC"; then 1975 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1976echo "${ECHO_T}$ac_ct_CC" >&6; } 1977else 1978 { echo "$as_me:$LINENO: result: no" >&5 1979echo "${ECHO_T}no" >&6; } 1980fi 1981 1982 1983 test -n "$ac_ct_CC" && break 1984done 1985 1986 if test "x$ac_ct_CC" = x; then 1987 CC="" 1988 else 1989 case $cross_compiling:$ac_tool_warned in 1990yes:) 1991{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 1992whose name does not start with the host triplet. If you think this 1993configuration is useful to you, please write to autoconf@gnu.org." >&5 1994echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 1995whose name does not start with the host triplet. If you think this 1996configuration is useful to you, please write to autoconf@gnu.org." >&2;} 1997ac_tool_warned=yes ;; 1998esac 1999 CC=$ac_ct_CC 2000 fi 2001fi 2002 2003fi 2004 2005 2006test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2007See \`config.log' for more details." >&5 2008echo "$as_me: error: no acceptable C compiler found in \$PATH 2009See \`config.log' for more details." >&2;} 2010 { (exit 1); exit 1; }; } 2011 2012# Provide some information about the compiler. 2013echo "$as_me:$LINENO: checking for C compiler version" >&5 2014ac_compiler=`set X $ac_compile; echo $2` 2015{ (ac_try="$ac_compiler --version >&5" 2016case "(($ac_try" in 2017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2018 *) ac_try_echo=$ac_try;; 2019esac 2020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2021 (eval "$ac_compiler --version >&5") 2>&5 2022 ac_status=$? 2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2024 (exit $ac_status); } 2025{ (ac_try="$ac_compiler -v >&5" 2026case "(($ac_try" in 2027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2028 *) ac_try_echo=$ac_try;; 2029esac 2030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2031 (eval "$ac_compiler -v >&5") 2>&5 2032 ac_status=$? 2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2034 (exit $ac_status); } 2035{ (ac_try="$ac_compiler -V >&5" 2036case "(($ac_try" in 2037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2038 *) ac_try_echo=$ac_try;; 2039esac 2040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2041 (eval "$ac_compiler -V >&5") 2>&5 2042 ac_status=$? 2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2044 (exit $ac_status); } 2045 2046cat >conftest.$ac_ext <<_ACEOF 2047/* confdefs.h. */ 2048_ACEOF 2049cat confdefs.h >>conftest.$ac_ext 2050cat >>conftest.$ac_ext <<_ACEOF 2051/* end confdefs.h. */ 2052 2053int 2054main () 2055{ 2056 2057 ; 2058 return 0; 2059} 2060_ACEOF 2061ac_clean_files_save=$ac_clean_files 2062ac_clean_files="$ac_clean_files a.out a.exe b.out" 2063# Try to create an executable without -o first, disregard a.out. 2064# It will help us diagnose broken compilers, and finding out an intuition 2065# of exeext. 2066{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2067echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2068ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2069# 2070# List of possible output files, starting from the most likely. 2071# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2072# only as a last resort. b.out is created by i960 compilers. 2073ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2074# 2075# The IRIX 6 linker writes into existing files which may not be 2076# executable, retaining their permissions. Remove them first so a 2077# subsequent execution test works. 2078ac_rmfiles= 2079for ac_file in $ac_files 2080do 2081 case $ac_file in 2082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2083 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2084 esac 2085done 2086rm -f $ac_rmfiles 2087 2088if { (ac_try="$ac_link_default" 2089case "(($ac_try" in 2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2091 *) ac_try_echo=$ac_try;; 2092esac 2093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2094 (eval "$ac_link_default") 2>&5 2095 ac_status=$? 2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2097 (exit $ac_status); }; then 2098 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2099# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2100# in a Makefile. We should not override ac_cv_exeext if it was cached, 2101# so that the user can short-circuit this test for compilers unknown to 2102# Autoconf. 2103for ac_file in $ac_files '' 2104do 2105 test -f "$ac_file" || continue 2106 case $ac_file in 2107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2108 ;; 2109 [ab].out ) 2110 # We found the default executable, but exeext='' is most 2111 # certainly right. 2112 break;; 2113 *.* ) 2114 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2115 then :; else 2116 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2117 fi 2118 # We set ac_cv_exeext here because the later test for it is not 2119 # safe: cross compilers may not add the suffix if given an `-o' 2120 # argument, so we may need to know it at that point already. 2121 # Even if this section looks crufty: it has the advantage of 2122 # actually working. 2123 break;; 2124 * ) 2125 break;; 2126 esac 2127done 2128test "$ac_cv_exeext" = no && ac_cv_exeext= 2129 2130else 2131 ac_file='' 2132fi 2133 2134{ echo "$as_me:$LINENO: result: $ac_file" >&5 2135echo "${ECHO_T}$ac_file" >&6; } 2136if test -z "$ac_file"; then 2137 echo "$as_me: failed program was:" >&5 2138sed 's/^/| /' conftest.$ac_ext >&5 2139 2140{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2141See \`config.log' for more details." >&5 2142echo "$as_me: error: C compiler cannot create executables 2143See \`config.log' for more details." >&2;} 2144 { (exit 77); exit 77; }; } 2145fi 2146 2147ac_exeext=$ac_cv_exeext 2148 2149# Check that the compiler produces executables we can run. If not, either 2150# the compiler is broken, or we cross compile. 2151{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2152echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2153# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2154# If not cross compiling, check that we can run a simple program. 2155if test "$cross_compiling" != yes; then 2156 if { ac_try='./$ac_file' 2157 { (case "(($ac_try" in 2158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2159 *) ac_try_echo=$ac_try;; 2160esac 2161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2162 (eval "$ac_try") 2>&5 2163 ac_status=$? 2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2165 (exit $ac_status); }; }; then 2166 cross_compiling=no 2167 else 2168 if test "$cross_compiling" = maybe; then 2169 cross_compiling=yes 2170 else 2171 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2172If you meant to cross compile, use \`--host'. 2173See \`config.log' for more details." >&5 2174echo "$as_me: error: cannot run C compiled programs. 2175If you meant to cross compile, use \`--host'. 2176See \`config.log' for more details." >&2;} 2177 { (exit 1); exit 1; }; } 2178 fi 2179 fi 2180fi 2181{ echo "$as_me:$LINENO: result: yes" >&5 2182echo "${ECHO_T}yes" >&6; } 2183 2184rm -f a.out a.exe conftest$ac_cv_exeext b.out 2185ac_clean_files=$ac_clean_files_save 2186# Check that the compiler produces executables we can run. If not, either 2187# the compiler is broken, or we cross compile. 2188{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2189echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2190{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2191echo "${ECHO_T}$cross_compiling" >&6; } 2192 2193{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2194echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2195if { (ac_try="$ac_link" 2196case "(($ac_try" in 2197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2198 *) ac_try_echo=$ac_try;; 2199esac 2200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2201 (eval "$ac_link") 2>&5 2202 ac_status=$? 2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2204 (exit $ac_status); }; then 2205 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2206# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2207# work properly (i.e., refer to `conftest.exe'), while it won't with 2208# `rm'. 2209for ac_file in conftest.exe conftest conftest.*; do 2210 test -f "$ac_file" || continue 2211 case $ac_file in 2212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2213 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2214 break;; 2215 * ) break;; 2216 esac 2217done 2218else 2219 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2220See \`config.log' for more details." >&5 2221echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2222See \`config.log' for more details." >&2;} 2223 { (exit 1); exit 1; }; } 2224fi 2225 2226rm -f conftest$ac_cv_exeext 2227{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2228echo "${ECHO_T}$ac_cv_exeext" >&6; } 2229 2230rm -f conftest.$ac_ext 2231EXEEXT=$ac_cv_exeext 2232ac_exeext=$EXEEXT 2233{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2234echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2235if test "${ac_cv_objext+set}" = set; then 2236 echo $ECHO_N "(cached) $ECHO_C" >&6 2237else 2238 cat >conftest.$ac_ext <<_ACEOF 2239/* confdefs.h. */ 2240_ACEOF 2241cat confdefs.h >>conftest.$ac_ext 2242cat >>conftest.$ac_ext <<_ACEOF 2243/* end confdefs.h. */ 2244 2245int 2246main () 2247{ 2248 2249 ; 2250 return 0; 2251} 2252_ACEOF 2253rm -f conftest.o conftest.obj 2254if { (ac_try="$ac_compile" 2255case "(($ac_try" in 2256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2257 *) ac_try_echo=$ac_try;; 2258esac 2259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2260 (eval "$ac_compile") 2>&5 2261 ac_status=$? 2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2263 (exit $ac_status); }; then 2264 for ac_file in conftest.o conftest.obj conftest.*; do 2265 test -f "$ac_file" || continue; 2266 case $ac_file in 2267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2268 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2269 break;; 2270 esac 2271done 2272else 2273 echo "$as_me: failed program was:" >&5 2274sed 's/^/| /' conftest.$ac_ext >&5 2275 2276{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2277See \`config.log' for more details." >&5 2278echo "$as_me: error: cannot compute suffix of object files: cannot compile 2279See \`config.log' for more details." >&2;} 2280 { (exit 1); exit 1; }; } 2281fi 2282 2283rm -f conftest.$ac_cv_objext conftest.$ac_ext 2284fi 2285{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2286echo "${ECHO_T}$ac_cv_objext" >&6; } 2287OBJEXT=$ac_cv_objext 2288ac_objext=$OBJEXT 2289{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2290echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2291if test "${ac_cv_c_compiler_gnu+set}" = set; then 2292 echo $ECHO_N "(cached) $ECHO_C" >&6 2293else 2294 cat >conftest.$ac_ext <<_ACEOF 2295/* confdefs.h. */ 2296_ACEOF 2297cat confdefs.h >>conftest.$ac_ext 2298cat >>conftest.$ac_ext <<_ACEOF 2299/* end confdefs.h. */ 2300 2301int 2302main () 2303{ 2304#ifndef __GNUC__ 2305 choke me 2306#endif 2307 2308 ; 2309 return 0; 2310} 2311_ACEOF 2312rm -f conftest.$ac_objext 2313if { (ac_try="$ac_compile" 2314case "(($ac_try" in 2315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2316 *) ac_try_echo=$ac_try;; 2317esac 2318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2319 (eval "$ac_compile") 2>conftest.er1 2320 ac_status=$? 2321 grep -v '^ *+' conftest.er1 >conftest.err 2322 rm -f conftest.er1 2323 cat conftest.err >&5 2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2325 (exit $ac_status); } && { 2326 test -z "$ac_c_werror_flag" || 2327 test ! -s conftest.err 2328 } && test -s conftest.$ac_objext; then 2329 ac_compiler_gnu=yes 2330else 2331 echo "$as_me: failed program was:" >&5 2332sed 's/^/| /' conftest.$ac_ext >&5 2333 2334 ac_compiler_gnu=no 2335fi 2336 2337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2338ac_cv_c_compiler_gnu=$ac_compiler_gnu 2339 2340fi 2341{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2342echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2343GCC=`test $ac_compiler_gnu = yes && echo yes` 2344ac_test_CFLAGS=${CFLAGS+set} 2345ac_save_CFLAGS=$CFLAGS 2346{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2347echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2348if test "${ac_cv_prog_cc_g+set}" = set; then 2349 echo $ECHO_N "(cached) $ECHO_C" >&6 2350else 2351 ac_save_c_werror_flag=$ac_c_werror_flag 2352 ac_c_werror_flag=yes 2353 ac_cv_prog_cc_g=no 2354 CFLAGS="-g" 2355 cat >conftest.$ac_ext <<_ACEOF 2356/* confdefs.h. */ 2357_ACEOF 2358cat confdefs.h >>conftest.$ac_ext 2359cat >>conftest.$ac_ext <<_ACEOF 2360/* end confdefs.h. */ 2361 2362int 2363main () 2364{ 2365 2366 ; 2367 return 0; 2368} 2369_ACEOF 2370rm -f conftest.$ac_objext 2371if { (ac_try="$ac_compile" 2372case "(($ac_try" in 2373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2374 *) ac_try_echo=$ac_try;; 2375esac 2376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2377 (eval "$ac_compile") 2>conftest.er1 2378 ac_status=$? 2379 grep -v '^ *+' conftest.er1 >conftest.err 2380 rm -f conftest.er1 2381 cat conftest.err >&5 2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2383 (exit $ac_status); } && { 2384 test -z "$ac_c_werror_flag" || 2385 test ! -s conftest.err 2386 } && test -s conftest.$ac_objext; then 2387 ac_cv_prog_cc_g=yes 2388else 2389 echo "$as_me: failed program was:" >&5 2390sed 's/^/| /' conftest.$ac_ext >&5 2391 2392 CFLAGS="" 2393 cat >conftest.$ac_ext <<_ACEOF 2394/* confdefs.h. */ 2395_ACEOF 2396cat confdefs.h >>conftest.$ac_ext 2397cat >>conftest.$ac_ext <<_ACEOF 2398/* end confdefs.h. */ 2399 2400int 2401main () 2402{ 2403 2404 ; 2405 return 0; 2406} 2407_ACEOF 2408rm -f conftest.$ac_objext 2409if { (ac_try="$ac_compile" 2410case "(($ac_try" in 2411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2412 *) ac_try_echo=$ac_try;; 2413esac 2414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2415 (eval "$ac_compile") 2>conftest.er1 2416 ac_status=$? 2417 grep -v '^ *+' conftest.er1 >conftest.err 2418 rm -f conftest.er1 2419 cat conftest.err >&5 2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2421 (exit $ac_status); } && { 2422 test -z "$ac_c_werror_flag" || 2423 test ! -s conftest.err 2424 } && test -s conftest.$ac_objext; then 2425 : 2426else 2427 echo "$as_me: failed program was:" >&5 2428sed 's/^/| /' conftest.$ac_ext >&5 2429 2430 ac_c_werror_flag=$ac_save_c_werror_flag 2431 CFLAGS="-g" 2432 cat >conftest.$ac_ext <<_ACEOF 2433/* confdefs.h. */ 2434_ACEOF 2435cat confdefs.h >>conftest.$ac_ext 2436cat >>conftest.$ac_ext <<_ACEOF 2437/* end confdefs.h. */ 2438 2439int 2440main () 2441{ 2442 2443 ; 2444 return 0; 2445} 2446_ACEOF 2447rm -f conftest.$ac_objext 2448if { (ac_try="$ac_compile" 2449case "(($ac_try" in 2450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2451 *) ac_try_echo=$ac_try;; 2452esac 2453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2454 (eval "$ac_compile") 2>conftest.er1 2455 ac_status=$? 2456 grep -v '^ *+' conftest.er1 >conftest.err 2457 rm -f conftest.er1 2458 cat conftest.err >&5 2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2460 (exit $ac_status); } && { 2461 test -z "$ac_c_werror_flag" || 2462 test ! -s conftest.err 2463 } && test -s conftest.$ac_objext; then 2464 ac_cv_prog_cc_g=yes 2465else 2466 echo "$as_me: failed program was:" >&5 2467sed 's/^/| /' conftest.$ac_ext >&5 2468 2469 2470fi 2471 2472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2473fi 2474 2475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2476fi 2477 2478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2479 ac_c_werror_flag=$ac_save_c_werror_flag 2480fi 2481{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2482echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2483if test "$ac_test_CFLAGS" = set; then 2484 CFLAGS=$ac_save_CFLAGS 2485elif test $ac_cv_prog_cc_g = yes; then 2486 if test "$GCC" = yes; then 2487 CFLAGS="-g -O2" 2488 else 2489 CFLAGS="-g" 2490 fi 2491else 2492 if test "$GCC" = yes; then 2493 CFLAGS="-O2" 2494 else 2495 CFLAGS= 2496 fi 2497fi 2498{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2499echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2500if test "${ac_cv_prog_cc_c89+set}" = set; then 2501 echo $ECHO_N "(cached) $ECHO_C" >&6 2502else 2503 ac_cv_prog_cc_c89=no 2504ac_save_CC=$CC 2505cat >conftest.$ac_ext <<_ACEOF 2506/* confdefs.h. */ 2507_ACEOF 2508cat confdefs.h >>conftest.$ac_ext 2509cat >>conftest.$ac_ext <<_ACEOF 2510/* end confdefs.h. */ 2511#include <stdarg.h> 2512#include <stdio.h> 2513#include <sys/types.h> 2514#include <sys/stat.h> 2515/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2516struct buf { int x; }; 2517FILE * (*rcsopen) (struct buf *, struct stat *, int); 2518static char *e (p, i) 2519 char **p; 2520 int i; 2521{ 2522 return p[i]; 2523} 2524static char *f (char * (*g) (char **, int), char **p, ...) 2525{ 2526 char *s; 2527 va_list v; 2528 va_start (v,p); 2529 s = g (p, va_arg (v,int)); 2530 va_end (v); 2531 return s; 2532} 2533 2534/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2535 function prototypes and stuff, but not '\xHH' hex character constants. 2536 These don't provoke an error unfortunately, instead are silently treated 2537 as 'x'. The following induces an error, until -std is added to get 2538 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2539 array size at least. It's necessary to write '\x00'==0 to get something 2540 that's true only with -std. */ 2541int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2542 2543/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2544 inside strings and character constants. */ 2545#define FOO(x) 'x' 2546int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2547 2548int test (int i, double x); 2549struct s1 {int (*f) (int a);}; 2550struct s2 {int (*f) (double a);}; 2551int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2552int argc; 2553char **argv; 2554int 2555main () 2556{ 2557return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2558 ; 2559 return 0; 2560} 2561_ACEOF 2562for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2563 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2564do 2565 CC="$ac_save_CC $ac_arg" 2566 rm -f conftest.$ac_objext 2567if { (ac_try="$ac_compile" 2568case "(($ac_try" in 2569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2570 *) ac_try_echo=$ac_try;; 2571esac 2572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2573 (eval "$ac_compile") 2>conftest.er1 2574 ac_status=$? 2575 grep -v '^ *+' conftest.er1 >conftest.err 2576 rm -f conftest.er1 2577 cat conftest.err >&5 2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2579 (exit $ac_status); } && { 2580 test -z "$ac_c_werror_flag" || 2581 test ! -s conftest.err 2582 } && test -s conftest.$ac_objext; then 2583 ac_cv_prog_cc_c89=$ac_arg 2584else 2585 echo "$as_me: failed program was:" >&5 2586sed 's/^/| /' conftest.$ac_ext >&5 2587 2588 2589fi 2590 2591rm -f core conftest.err conftest.$ac_objext 2592 test "x$ac_cv_prog_cc_c89" != "xno" && break 2593done 2594rm -f conftest.$ac_ext 2595CC=$ac_save_CC 2596 2597fi 2598# AC_CACHE_VAL 2599case "x$ac_cv_prog_cc_c89" in 2600 x) 2601 { echo "$as_me:$LINENO: result: none needed" >&5 2602echo "${ECHO_T}none needed" >&6; } ;; 2603 xno) 2604 { echo "$as_me:$LINENO: result: unsupported" >&5 2605echo "${ECHO_T}unsupported" >&6; } ;; 2606 *) 2607 CC="$CC $ac_cv_prog_cc_c89" 2608 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2609echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2610esac 2611 2612 2613ac_ext=c 2614ac_cpp='$CPP $CPPFLAGS' 2615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2617ac_compiler_gnu=$ac_cv_c_compiler_gnu 2618 2619 2620ac_ext=c 2621ac_cpp='$CPP $CPPFLAGS' 2622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2624ac_compiler_gnu=$ac_cv_c_compiler_gnu 2625{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2626echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 2627# On Suns, sometimes $CPP names a directory. 2628if test -n "$CPP" && test -d "$CPP"; then 2629 CPP= 2630fi 2631if test -z "$CPP"; then 2632 if test "${ac_cv_prog_CPP+set}" = set; then 2633 echo $ECHO_N "(cached) $ECHO_C" >&6 2634else 2635 # Double quotes because CPP needs to be expanded 2636 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2637 do 2638 ac_preproc_ok=false 2639for ac_c_preproc_warn_flag in '' yes 2640do 2641 # Use a header file that comes with gcc, so configuring glibc 2642 # with a fresh cross-compiler works. 2643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2644 # <limits.h> exists even on freestanding compilers. 2645 # On the NeXT, cc -E runs the code through the compiler's parser, 2646 # not just through cpp. "Syntax error" is here to catch this case. 2647 cat >conftest.$ac_ext <<_ACEOF 2648/* confdefs.h. */ 2649_ACEOF 2650cat confdefs.h >>conftest.$ac_ext 2651cat >>conftest.$ac_ext <<_ACEOF 2652/* end confdefs.h. */ 2653#ifdef __STDC__ 2654# include <limits.h> 2655#else 2656# include <assert.h> 2657#endif 2658 Syntax error 2659_ACEOF 2660if { (ac_try="$ac_cpp conftest.$ac_ext" 2661case "(($ac_try" in 2662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2663 *) ac_try_echo=$ac_try;; 2664esac 2665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2667 ac_status=$? 2668 grep -v '^ *+' conftest.er1 >conftest.err 2669 rm -f conftest.er1 2670 cat conftest.err >&5 2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2672 (exit $ac_status); } >/dev/null && { 2673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2674 test ! -s conftest.err 2675 }; then 2676 : 2677else 2678 echo "$as_me: failed program was:" >&5 2679sed 's/^/| /' conftest.$ac_ext >&5 2680 2681 # Broken: fails on valid input. 2682continue 2683fi 2684 2685rm -f conftest.err conftest.$ac_ext 2686 2687 # OK, works on sane cases. Now check whether nonexistent headers 2688 # can be detected and how. 2689 cat >conftest.$ac_ext <<_ACEOF 2690/* confdefs.h. */ 2691_ACEOF 2692cat confdefs.h >>conftest.$ac_ext 2693cat >>conftest.$ac_ext <<_ACEOF 2694/* end confdefs.h. */ 2695#include <ac_nonexistent.h> 2696_ACEOF 2697if { (ac_try="$ac_cpp conftest.$ac_ext" 2698case "(($ac_try" in 2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2700 *) ac_try_echo=$ac_try;; 2701esac 2702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2704 ac_status=$? 2705 grep -v '^ *+' conftest.er1 >conftest.err 2706 rm -f conftest.er1 2707 cat conftest.err >&5 2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2709 (exit $ac_status); } >/dev/null && { 2710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2711 test ! -s conftest.err 2712 }; then 2713 # Broken: success on invalid input. 2714continue 2715else 2716 echo "$as_me: failed program was:" >&5 2717sed 's/^/| /' conftest.$ac_ext >&5 2718 2719 # Passes both tests. 2720ac_preproc_ok=: 2721break 2722fi 2723 2724rm -f conftest.err conftest.$ac_ext 2725 2726done 2727# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2728rm -f conftest.err conftest.$ac_ext 2729if $ac_preproc_ok; then 2730 break 2731fi 2732 2733 done 2734 ac_cv_prog_CPP=$CPP 2735 2736fi 2737 CPP=$ac_cv_prog_CPP 2738else 2739 ac_cv_prog_CPP=$CPP 2740fi 2741{ echo "$as_me:$LINENO: result: $CPP" >&5 2742echo "${ECHO_T}$CPP" >&6; } 2743ac_preproc_ok=false 2744for ac_c_preproc_warn_flag in '' yes 2745do 2746 # Use a header file that comes with gcc, so configuring glibc 2747 # with a fresh cross-compiler works. 2748 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2749 # <limits.h> exists even on freestanding compilers. 2750 # On the NeXT, cc -E runs the code through the compiler's parser, 2751 # not just through cpp. "Syntax error" is here to catch this case. 2752 cat >conftest.$ac_ext <<_ACEOF 2753/* confdefs.h. */ 2754_ACEOF 2755cat confdefs.h >>conftest.$ac_ext 2756cat >>conftest.$ac_ext <<_ACEOF 2757/* end confdefs.h. */ 2758#ifdef __STDC__ 2759# include <limits.h> 2760#else 2761# include <assert.h> 2762#endif 2763 Syntax error 2764_ACEOF 2765if { (ac_try="$ac_cpp conftest.$ac_ext" 2766case "(($ac_try" in 2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2768 *) ac_try_echo=$ac_try;; 2769esac 2770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2772 ac_status=$? 2773 grep -v '^ *+' conftest.er1 >conftest.err 2774 rm -f conftest.er1 2775 cat conftest.err >&5 2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2777 (exit $ac_status); } >/dev/null && { 2778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2779 test ! -s conftest.err 2780 }; then 2781 : 2782else 2783 echo "$as_me: failed program was:" >&5 2784sed 's/^/| /' conftest.$ac_ext >&5 2785 2786 # Broken: fails on valid input. 2787continue 2788fi 2789 2790rm -f conftest.err conftest.$ac_ext 2791 2792 # OK, works on sane cases. Now check whether nonexistent headers 2793 # can be detected and how. 2794 cat >conftest.$ac_ext <<_ACEOF 2795/* confdefs.h. */ 2796_ACEOF 2797cat confdefs.h >>conftest.$ac_ext 2798cat >>conftest.$ac_ext <<_ACEOF 2799/* end confdefs.h. */ 2800#include <ac_nonexistent.h> 2801_ACEOF 2802if { (ac_try="$ac_cpp conftest.$ac_ext" 2803case "(($ac_try" in 2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2805 *) ac_try_echo=$ac_try;; 2806esac 2807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2809 ac_status=$? 2810 grep -v '^ *+' conftest.er1 >conftest.err 2811 rm -f conftest.er1 2812 cat conftest.err >&5 2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2814 (exit $ac_status); } >/dev/null && { 2815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2816 test ! -s conftest.err 2817 }; then 2818 # Broken: success on invalid input. 2819continue 2820else 2821 echo "$as_me: failed program was:" >&5 2822sed 's/^/| /' conftest.$ac_ext >&5 2823 2824 # Passes both tests. 2825ac_preproc_ok=: 2826break 2827fi 2828 2829rm -f conftest.err conftest.$ac_ext 2830 2831done 2832# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2833rm -f conftest.err conftest.$ac_ext 2834if $ac_preproc_ok; then 2835 : 2836else 2837 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2838See \`config.log' for more details." >&5 2839echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2840See \`config.log' for more details." >&2;} 2841 { (exit 1); exit 1; }; } 2842fi 2843 2844ac_ext=c 2845ac_cpp='$CPP $CPPFLAGS' 2846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2848ac_compiler_gnu=$ac_cv_c_compiler_gnu 2849 2850 2851{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 2852echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 2853if test "${ac_cv_path_GREP+set}" = set; then 2854 echo $ECHO_N "(cached) $ECHO_C" >&6 2855else 2856 # Extract the first word of "grep ggrep" to use in msg output 2857if test -z "$GREP"; then 2858set dummy grep ggrep; ac_prog_name=$2 2859if test "${ac_cv_path_GREP+set}" = set; then 2860 echo $ECHO_N "(cached) $ECHO_C" >&6 2861else 2862 ac_path_GREP_found=false 2863# Loop through the user's path and test for each of PROGNAME-LIST 2864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2865for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 2866do 2867 IFS=$as_save_IFS 2868 test -z "$as_dir" && as_dir=. 2869 for ac_prog in grep ggrep; do 2870 for ac_exec_ext in '' $ac_executable_extensions; do 2871 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 2872 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 2873 # Check for GNU ac_path_GREP and select it if it is found. 2874 # Check for GNU $ac_path_GREP 2875case `"$ac_path_GREP" --version 2>&1` in 2876*GNU*) 2877 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 2878*) 2879 ac_count=0 2880 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 2881 while : 2882 do 2883 cat "conftest.in" "conftest.in" >"conftest.tmp" 2884 mv "conftest.tmp" "conftest.in" 2885 cp "conftest.in" "conftest.nl" 2886 echo 'GREP' >> "conftest.nl" 2887 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 2888 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 2889 ac_count=`expr $ac_count + 1` 2890 if test $ac_count -gt ${ac_path_GREP_max-0}; then 2891 # Best one so far, save it but keep looking for a better one 2892 ac_cv_path_GREP="$ac_path_GREP" 2893 ac_path_GREP_max=$ac_count 2894 fi 2895 # 10*(2^10) chars as input seems more than enough 2896 test $ac_count -gt 10 && break 2897 done 2898 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 2899esac 2900 2901 2902 $ac_path_GREP_found && break 3 2903 done 2904done 2905 2906done 2907IFS=$as_save_IFS 2908 2909 2910fi 2911 2912GREP="$ac_cv_path_GREP" 2913if test -z "$GREP"; then 2914 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 2915echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 2916 { (exit 1); exit 1; }; } 2917fi 2918 2919else 2920 ac_cv_path_GREP=$GREP 2921fi 2922 2923 2924fi 2925{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 2926echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 2927 GREP="$ac_cv_path_GREP" 2928 2929 2930{ echo "$as_me:$LINENO: checking for egrep" >&5 2931echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 2932if test "${ac_cv_path_EGREP+set}" = set; then 2933 echo $ECHO_N "(cached) $ECHO_C" >&6 2934else 2935 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 2936 then ac_cv_path_EGREP="$GREP -E" 2937 else 2938 # Extract the first word of "egrep" to use in msg output 2939if test -z "$EGREP"; then 2940set dummy egrep; ac_prog_name=$2 2941if test "${ac_cv_path_EGREP+set}" = set; then 2942 echo $ECHO_N "(cached) $ECHO_C" >&6 2943else 2944 ac_path_EGREP_found=false 2945# Loop through the user's path and test for each of PROGNAME-LIST 2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2947for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 2948do 2949 IFS=$as_save_IFS 2950 test -z "$as_dir" && as_dir=. 2951 for ac_prog in egrep; do 2952 for ac_exec_ext in '' $ac_executable_extensions; do 2953 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 2954 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 2955 # Check for GNU ac_path_EGREP and select it if it is found. 2956 # Check for GNU $ac_path_EGREP 2957case `"$ac_path_EGREP" --version 2>&1` in 2958*GNU*) 2959 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 2960*) 2961 ac_count=0 2962 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 2963 while : 2964 do 2965 cat "conftest.in" "conftest.in" >"conftest.tmp" 2966 mv "conftest.tmp" "conftest.in" 2967 cp "conftest.in" "conftest.nl" 2968 echo 'EGREP' >> "conftest.nl" 2969 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 2970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 2971 ac_count=`expr $ac_count + 1` 2972 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 2973 # Best one so far, save it but keep looking for a better one 2974 ac_cv_path_EGREP="$ac_path_EGREP" 2975 ac_path_EGREP_max=$ac_count 2976 fi 2977 # 10*(2^10) chars as input seems more than enough 2978 test $ac_count -gt 10 && break 2979 done 2980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 2981esac 2982 2983 2984 $ac_path_EGREP_found && break 3 2985 done 2986done 2987 2988done 2989IFS=$as_save_IFS 2990 2991 2992fi 2993 2994EGREP="$ac_cv_path_EGREP" 2995if test -z "$EGREP"; then 2996 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 2997echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 2998 { (exit 1); exit 1; }; } 2999fi 3000 3001else 3002 ac_cv_path_EGREP=$EGREP 3003fi 3004 3005 3006 fi 3007fi 3008{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3009echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3010 EGREP="$ac_cv_path_EGREP" 3011 3012 3013 { echo "$as_me:$LINENO: checking for NetBSD" >&5 3014echo $ECHO_N "checking for NetBSD... $ECHO_C" >&6; } 3015 cat >conftest.$ac_ext <<_ACEOF 3016/* confdefs.h. */ 3017_ACEOF 3018cat confdefs.h >>conftest.$ac_ext 3019cat >>conftest.$ac_ext <<_ACEOF 3020/* end confdefs.h. */ 3021#ifdef __NetBSD__ 3022 yes 3023 #endif 3024 3025_ACEOF 3026if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3027 $EGREP "yes" >/dev/null 2>&1; then 3028 { echo "$as_me:$LINENO: result: yes" >&5 3029echo "${ECHO_T}yes" >&6; } 3030 3031cat >>confdefs.h <<\_ACEOF 3032#define _POSIX_SOURCE 1 3033_ACEOF 3034 3035 3036cat >>confdefs.h <<\_ACEOF 3037#define _POSIX_C_SOURCE 200112L 3038_ACEOF 3039 3040 3041cat >>confdefs.h <<\_ACEOF 3042#define _XOPEN_SOURCE 600 3043_ACEOF 3044 3045else 3046 { echo "$as_me:$LINENO: result: no" >&5 3047echo "${ECHO_T}no" >&6; } 3048fi 3049rm -f conftest* 3050 3051 3052# Extract the first word of "sh", so it can be a program name with args. 3053set dummy sh; ac_word=$2 3054{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3056if test "${ac_cv_path_BSHELL+set}" = set; then 3057 echo $ECHO_N "(cached) $ECHO_C" >&6 3058else 3059 case $BSHELL in 3060 [\\/]* | ?:[\\/]*) 3061 ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path. 3062 ;; 3063 *) 3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3065for as_dir in $PATH 3066do 3067 IFS=$as_save_IFS 3068 test -z "$as_dir" && as_dir=. 3069 for ac_exec_ext in '' $ac_executable_extensions; do 3070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3071 ac_cv_path_BSHELL="$as_dir/$ac_word$ac_exec_ext" 3072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3073 break 2 3074 fi 3075done 3076done 3077IFS=$as_save_IFS 3078 3079 ;; 3080esac 3081fi 3082BSHELL=$ac_cv_path_BSHELL 3083if test -n "$BSHELL"; then 3084 { echo "$as_me:$LINENO: result: $BSHELL" >&5 3085echo "${ECHO_T}$BSHELL" >&6; } 3086else 3087 { echo "$as_me:$LINENO: result: no" >&5 3088echo "${ECHO_T}no" >&6; } 3089fi 3090 3091 3092if test x"$BSHELL" = x; then 3093 { { echo "$as_me:$LINENO: error: sh must be somewhere on \$PATH" >&5 3094echo "$as_me: error: sh must be somewhere on \$PATH" >&2;} 3095 { (exit 1); exit 1; }; } 3096fi 3097 3098cat >>confdefs.h <<_ACEOF 3099#define PATH_BSHELL "$BSHELL" 3100_ACEOF 3101 3102 3103{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3104echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3105if test "${ac_cv_header_stdc+set}" = set; then 3106 echo $ECHO_N "(cached) $ECHO_C" >&6 3107else 3108 cat >conftest.$ac_ext <<_ACEOF 3109/* confdefs.h. */ 3110_ACEOF 3111cat confdefs.h >>conftest.$ac_ext 3112cat >>conftest.$ac_ext <<_ACEOF 3113/* end confdefs.h. */ 3114#include <stdlib.h> 3115#include <stdarg.h> 3116#include <string.h> 3117#include <float.h> 3118 3119int 3120main () 3121{ 3122 3123 ; 3124 return 0; 3125} 3126_ACEOF 3127rm -f conftest.$ac_objext 3128if { (ac_try="$ac_compile" 3129case "(($ac_try" in 3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3131 *) ac_try_echo=$ac_try;; 3132esac 3133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3134 (eval "$ac_compile") 2>conftest.er1 3135 ac_status=$? 3136 grep -v '^ *+' conftest.er1 >conftest.err 3137 rm -f conftest.er1 3138 cat conftest.err >&5 3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3140 (exit $ac_status); } && { 3141 test -z "$ac_c_werror_flag" || 3142 test ! -s conftest.err 3143 } && test -s conftest.$ac_objext; then 3144 ac_cv_header_stdc=yes 3145else 3146 echo "$as_me: failed program was:" >&5 3147sed 's/^/| /' conftest.$ac_ext >&5 3148 3149 ac_cv_header_stdc=no 3150fi 3151 3152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3153 3154if test $ac_cv_header_stdc = yes; then 3155 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3156 cat >conftest.$ac_ext <<_ACEOF 3157/* confdefs.h. */ 3158_ACEOF 3159cat confdefs.h >>conftest.$ac_ext 3160cat >>conftest.$ac_ext <<_ACEOF 3161/* end confdefs.h. */ 3162#include <string.h> 3163 3164_ACEOF 3165if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3166 $EGREP "memchr" >/dev/null 2>&1; then 3167 : 3168else 3169 ac_cv_header_stdc=no 3170fi 3171rm -f conftest* 3172 3173fi 3174 3175if test $ac_cv_header_stdc = yes; then 3176 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3177 cat >conftest.$ac_ext <<_ACEOF 3178/* confdefs.h. */ 3179_ACEOF 3180cat confdefs.h >>conftest.$ac_ext 3181cat >>conftest.$ac_ext <<_ACEOF 3182/* end confdefs.h. */ 3183#include <stdlib.h> 3184 3185_ACEOF 3186if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3187 $EGREP "free" >/dev/null 2>&1; then 3188 : 3189else 3190 ac_cv_header_stdc=no 3191fi 3192rm -f conftest* 3193 3194fi 3195 3196if test $ac_cv_header_stdc = yes; then 3197 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3198 if test "$cross_compiling" = yes; then 3199 : 3200else 3201 cat >conftest.$ac_ext <<_ACEOF 3202/* confdefs.h. */ 3203_ACEOF 3204cat confdefs.h >>conftest.$ac_ext 3205cat >>conftest.$ac_ext <<_ACEOF 3206/* end confdefs.h. */ 3207#include <ctype.h> 3208#include <stdlib.h> 3209#if ((' ' & 0x0FF) == 0x020) 3210# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3211# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3212#else 3213# define ISLOWER(c) \ 3214 (('a' <= (c) && (c) <= 'i') \ 3215 || ('j' <= (c) && (c) <= 'r') \ 3216 || ('s' <= (c) && (c) <= 'z')) 3217# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3218#endif 3219 3220#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3221int 3222main () 3223{ 3224 int i; 3225 for (i = 0; i < 256; i++) 3226 if (XOR (islower (i), ISLOWER (i)) 3227 || toupper (i) != TOUPPER (i)) 3228 return 2; 3229 return 0; 3230} 3231_ACEOF 3232rm -f conftest$ac_exeext 3233if { (ac_try="$ac_link" 3234case "(($ac_try" in 3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3236 *) ac_try_echo=$ac_try;; 3237esac 3238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3239 (eval "$ac_link") 2>&5 3240 ac_status=$? 3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3243 { (case "(($ac_try" in 3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3245 *) ac_try_echo=$ac_try;; 3246esac 3247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3248 (eval "$ac_try") 2>&5 3249 ac_status=$? 3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3251 (exit $ac_status); }; }; then 3252 : 3253else 3254 echo "$as_me: program exited with status $ac_status" >&5 3255echo "$as_me: failed program was:" >&5 3256sed 's/^/| /' conftest.$ac_ext >&5 3257 3258( exit $ac_status ) 3259ac_cv_header_stdc=no 3260fi 3261rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3262fi 3263 3264 3265fi 3266fi 3267{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3268echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3269if test $ac_cv_header_stdc = yes; then 3270 3271cat >>confdefs.h <<\_ACEOF 3272#define STDC_HEADERS 1 3273_ACEOF 3274 3275fi 3276 3277# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3288 inttypes.h stdint.h unistd.h 3289do 3290as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3291{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3292echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3293if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3294 echo $ECHO_N "(cached) $ECHO_C" >&6 3295else 3296 cat >conftest.$ac_ext <<_ACEOF 3297/* confdefs.h. */ 3298_ACEOF 3299cat confdefs.h >>conftest.$ac_ext 3300cat >>conftest.$ac_ext <<_ACEOF 3301/* end confdefs.h. */ 3302$ac_includes_default 3303 3304#include <$ac_header> 3305_ACEOF 3306rm -f conftest.$ac_objext 3307if { (ac_try="$ac_compile" 3308case "(($ac_try" in 3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3310 *) ac_try_echo=$ac_try;; 3311esac 3312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3313 (eval "$ac_compile") 2>conftest.er1 3314 ac_status=$? 3315 grep -v '^ *+' conftest.er1 >conftest.err 3316 rm -f conftest.er1 3317 cat conftest.err >&5 3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3319 (exit $ac_status); } && { 3320 test -z "$ac_c_werror_flag" || 3321 test ! -s conftest.err 3322 } && test -s conftest.$ac_objext; then 3323 eval "$as_ac_Header=yes" 3324else 3325 echo "$as_me: failed program was:" >&5 3326sed 's/^/| /' conftest.$ac_ext >&5 3327 3328 eval "$as_ac_Header=no" 3329fi 3330 3331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3332fi 3333ac_res=`eval echo '${'$as_ac_Header'}'` 3334 { echo "$as_me:$LINENO: result: $ac_res" >&5 3335echo "${ECHO_T}$ac_res" >&6; } 3336if test `eval echo '${'$as_ac_Header'}'` = yes; then 3337 cat >>confdefs.h <<_ACEOF 3338#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3339_ACEOF 3340 3341fi 3342 3343done 3344 3345 3346{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 3347echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 3348if test "${ac_cv_c_bigendian+set}" = set; then 3349 echo $ECHO_N "(cached) $ECHO_C" >&6 3350else 3351 # See if sys/param.h defines the BYTE_ORDER macro. 3352cat >conftest.$ac_ext <<_ACEOF 3353/* confdefs.h. */ 3354_ACEOF 3355cat confdefs.h >>conftest.$ac_ext 3356cat >>conftest.$ac_ext <<_ACEOF 3357/* end confdefs.h. */ 3358#include <sys/types.h> 3359#include <sys/param.h> 3360 3361int 3362main () 3363{ 3364#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 3365 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 3366 bogus endian macros 3367#endif 3368 3369 ; 3370 return 0; 3371} 3372_ACEOF 3373rm -f conftest.$ac_objext 3374if { (ac_try="$ac_compile" 3375case "(($ac_try" in 3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3377 *) ac_try_echo=$ac_try;; 3378esac 3379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3380 (eval "$ac_compile") 2>conftest.er1 3381 ac_status=$? 3382 grep -v '^ *+' conftest.er1 >conftest.err 3383 rm -f conftest.er1 3384 cat conftest.err >&5 3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3386 (exit $ac_status); } && { 3387 test -z "$ac_c_werror_flag" || 3388 test ! -s conftest.err 3389 } && test -s conftest.$ac_objext; then 3390 # It does; now see whether it defined to BIG_ENDIAN or not. 3391cat >conftest.$ac_ext <<_ACEOF 3392/* confdefs.h. */ 3393_ACEOF 3394cat confdefs.h >>conftest.$ac_ext 3395cat >>conftest.$ac_ext <<_ACEOF 3396/* end confdefs.h. */ 3397#include <sys/types.h> 3398#include <sys/param.h> 3399 3400int 3401main () 3402{ 3403#if BYTE_ORDER != BIG_ENDIAN 3404 not big endian 3405#endif 3406 3407 ; 3408 return 0; 3409} 3410_ACEOF 3411rm -f conftest.$ac_objext 3412if { (ac_try="$ac_compile" 3413case "(($ac_try" in 3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3415 *) ac_try_echo=$ac_try;; 3416esac 3417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3418 (eval "$ac_compile") 2>conftest.er1 3419 ac_status=$? 3420 grep -v '^ *+' conftest.er1 >conftest.err 3421 rm -f conftest.er1 3422 cat conftest.err >&5 3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3424 (exit $ac_status); } && { 3425 test -z "$ac_c_werror_flag" || 3426 test ! -s conftest.err 3427 } && test -s conftest.$ac_objext; then 3428 ac_cv_c_bigendian=yes 3429else 3430 echo "$as_me: failed program was:" >&5 3431sed 's/^/| /' conftest.$ac_ext >&5 3432 3433 ac_cv_c_bigendian=no 3434fi 3435 3436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3437else 3438 echo "$as_me: failed program was:" >&5 3439sed 's/^/| /' conftest.$ac_ext >&5 3440 3441 # It does not; compile a test program. 3442if test "$cross_compiling" = yes; then 3443 # try to guess the endianness by grepping values into an object file 3444 ac_cv_c_bigendian=unknown 3445 cat >conftest.$ac_ext <<_ACEOF 3446/* confdefs.h. */ 3447_ACEOF 3448cat confdefs.h >>conftest.$ac_ext 3449cat >>conftest.$ac_ext <<_ACEOF 3450/* end confdefs.h. */ 3451short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 3452short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 3453void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 3454short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 3455short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 3456void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 3457int 3458main () 3459{ 3460 _ascii (); _ebcdic (); 3461 ; 3462 return 0; 3463} 3464_ACEOF 3465rm -f conftest.$ac_objext 3466if { (ac_try="$ac_compile" 3467case "(($ac_try" in 3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3469 *) ac_try_echo=$ac_try;; 3470esac 3471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3472 (eval "$ac_compile") 2>conftest.er1 3473 ac_status=$? 3474 grep -v '^ *+' conftest.er1 >conftest.err 3475 rm -f conftest.er1 3476 cat conftest.err >&5 3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3478 (exit $ac_status); } && { 3479 test -z "$ac_c_werror_flag" || 3480 test ! -s conftest.err 3481 } && test -s conftest.$ac_objext; then 3482 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 3483 ac_cv_c_bigendian=yes 3484fi 3485if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 3486 if test "$ac_cv_c_bigendian" = unknown; then 3487 ac_cv_c_bigendian=no 3488 else 3489 # finding both strings is unlikely to happen, but who knows? 3490 ac_cv_c_bigendian=unknown 3491 fi 3492fi 3493else 3494 echo "$as_me: failed program was:" >&5 3495sed 's/^/| /' conftest.$ac_ext >&5 3496 3497 3498fi 3499 3500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3501else 3502 cat >conftest.$ac_ext <<_ACEOF 3503/* confdefs.h. */ 3504_ACEOF 3505cat confdefs.h >>conftest.$ac_ext 3506cat >>conftest.$ac_ext <<_ACEOF 3507/* end confdefs.h. */ 3508$ac_includes_default 3509int 3510main () 3511{ 3512 3513 /* Are we little or big endian? From Harbison&Steele. */ 3514 union 3515 { 3516 long int l; 3517 char c[sizeof (long int)]; 3518 } u; 3519 u.l = 1; 3520 return u.c[sizeof (long int) - 1] == 1; 3521 3522 ; 3523 return 0; 3524} 3525_ACEOF 3526rm -f conftest$ac_exeext 3527if { (ac_try="$ac_link" 3528case "(($ac_try" in 3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3530 *) ac_try_echo=$ac_try;; 3531esac 3532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3533 (eval "$ac_link") 2>&5 3534 ac_status=$? 3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3537 { (case "(($ac_try" in 3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3539 *) ac_try_echo=$ac_try;; 3540esac 3541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3542 (eval "$ac_try") 2>&5 3543 ac_status=$? 3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3545 (exit $ac_status); }; }; then 3546 ac_cv_c_bigendian=no 3547else 3548 echo "$as_me: program exited with status $ac_status" >&5 3549echo "$as_me: failed program was:" >&5 3550sed 's/^/| /' conftest.$ac_ext >&5 3551 3552( exit $ac_status ) 3553ac_cv_c_bigendian=yes 3554fi 3555rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3556fi 3557 3558 3559fi 3560 3561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3562fi 3563{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 3564echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 3565case $ac_cv_c_bigendian in 3566 yes) 3567 3568cat >>confdefs.h <<\_ACEOF 3569#define WORDS_BIGENDIAN 1 3570_ACEOF 3571 ;; 3572 no) 3573 ;; 3574 *) 3575 { { echo "$as_me:$LINENO: error: unknown endianness 3576presetting ac_cv_c_bigendian=no (or yes) will help" >&5 3577echo "$as_me: error: unknown endianness 3578presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 3579 { (exit 1); exit 1; }; } ;; 3580esac 3581 3582{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3583echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3584if test "${ac_cv_header_stdc+set}" = set; then 3585 echo $ECHO_N "(cached) $ECHO_C" >&6 3586else 3587 cat >conftest.$ac_ext <<_ACEOF 3588/* confdefs.h. */ 3589_ACEOF 3590cat confdefs.h >>conftest.$ac_ext 3591cat >>conftest.$ac_ext <<_ACEOF 3592/* end confdefs.h. */ 3593#include <stdlib.h> 3594#include <stdarg.h> 3595#include <string.h> 3596#include <float.h> 3597 3598int 3599main () 3600{ 3601 3602 ; 3603 return 0; 3604} 3605_ACEOF 3606rm -f conftest.$ac_objext 3607if { (ac_try="$ac_compile" 3608case "(($ac_try" in 3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3610 *) ac_try_echo=$ac_try;; 3611esac 3612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3613 (eval "$ac_compile") 2>conftest.er1 3614 ac_status=$? 3615 grep -v '^ *+' conftest.er1 >conftest.err 3616 rm -f conftest.er1 3617 cat conftest.err >&5 3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3619 (exit $ac_status); } && { 3620 test -z "$ac_c_werror_flag" || 3621 test ! -s conftest.err 3622 } && test -s conftest.$ac_objext; then 3623 ac_cv_header_stdc=yes 3624else 3625 echo "$as_me: failed program was:" >&5 3626sed 's/^/| /' conftest.$ac_ext >&5 3627 3628 ac_cv_header_stdc=no 3629fi 3630 3631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3632 3633if test $ac_cv_header_stdc = yes; then 3634 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3635 cat >conftest.$ac_ext <<_ACEOF 3636/* confdefs.h. */ 3637_ACEOF 3638cat confdefs.h >>conftest.$ac_ext 3639cat >>conftest.$ac_ext <<_ACEOF 3640/* end confdefs.h. */ 3641#include <string.h> 3642 3643_ACEOF 3644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3645 $EGREP "memchr" >/dev/null 2>&1; then 3646 : 3647else 3648 ac_cv_header_stdc=no 3649fi 3650rm -f conftest* 3651 3652fi 3653 3654if test $ac_cv_header_stdc = yes; then 3655 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3656 cat >conftest.$ac_ext <<_ACEOF 3657/* confdefs.h. */ 3658_ACEOF 3659cat confdefs.h >>conftest.$ac_ext 3660cat >>conftest.$ac_ext <<_ACEOF 3661/* end confdefs.h. */ 3662#include <stdlib.h> 3663 3664_ACEOF 3665if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3666 $EGREP "free" >/dev/null 2>&1; then 3667 : 3668else 3669 ac_cv_header_stdc=no 3670fi 3671rm -f conftest* 3672 3673fi 3674 3675if test $ac_cv_header_stdc = yes; then 3676 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3677 if test "$cross_compiling" = yes; then 3678 : 3679else 3680 cat >conftest.$ac_ext <<_ACEOF 3681/* confdefs.h. */ 3682_ACEOF 3683cat confdefs.h >>conftest.$ac_ext 3684cat >>conftest.$ac_ext <<_ACEOF 3685/* end confdefs.h. */ 3686#include <ctype.h> 3687#include <stdlib.h> 3688#if ((' ' & 0x0FF) == 0x020) 3689# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3690# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3691#else 3692# define ISLOWER(c) \ 3693 (('a' <= (c) && (c) <= 'i') \ 3694 || ('j' <= (c) && (c) <= 'r') \ 3695 || ('s' <= (c) && (c) <= 'z')) 3696# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3697#endif 3698 3699#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3700int 3701main () 3702{ 3703 int i; 3704 for (i = 0; i < 256; i++) 3705 if (XOR (islower (i), ISLOWER (i)) 3706 || toupper (i) != TOUPPER (i)) 3707 return 2; 3708 return 0; 3709} 3710_ACEOF 3711rm -f conftest$ac_exeext 3712if { (ac_try="$ac_link" 3713case "(($ac_try" in 3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3715 *) ac_try_echo=$ac_try;; 3716esac 3717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3718 (eval "$ac_link") 2>&5 3719 ac_status=$? 3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3722 { (case "(($ac_try" in 3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3724 *) ac_try_echo=$ac_try;; 3725esac 3726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3727 (eval "$ac_try") 2>&5 3728 ac_status=$? 3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3730 (exit $ac_status); }; }; then 3731 : 3732else 3733 echo "$as_me: program exited with status $ac_status" >&5 3734echo "$as_me: failed program was:" >&5 3735sed 's/^/| /' conftest.$ac_ext >&5 3736 3737( exit $ac_status ) 3738ac_cv_header_stdc=no 3739fi 3740rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3741fi 3742 3743 3744fi 3745fi 3746{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3747echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3748if test $ac_cv_header_stdc = yes; then 3749 3750cat >>confdefs.h <<\_ACEOF 3751#define STDC_HEADERS 1 3752_ACEOF 3753 3754fi 3755 3756 3757# Confirm existence of zlib. (This is available as a default install 3758# option on many OS's; this could be added as a reachover build in the 3759# future.) 3760if test "${ac_cv_header_zlib_h+set}" = set; then 3761 { echo "$as_me:$LINENO: checking for zlib.h" >&5 3762echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } 3763if test "${ac_cv_header_zlib_h+set}" = set; then 3764 echo $ECHO_N "(cached) $ECHO_C" >&6 3765fi 3766{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 3767echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } 3768else 3769 # Is the header compilable? 3770{ echo "$as_me:$LINENO: checking zlib.h usability" >&5 3771echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } 3772cat >conftest.$ac_ext <<_ACEOF 3773/* confdefs.h. */ 3774_ACEOF 3775cat confdefs.h >>conftest.$ac_ext 3776cat >>conftest.$ac_ext <<_ACEOF 3777/* end confdefs.h. */ 3778$ac_includes_default 3779#include <zlib.h> 3780_ACEOF 3781rm -f conftest.$ac_objext 3782if { (ac_try="$ac_compile" 3783case "(($ac_try" in 3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3785 *) ac_try_echo=$ac_try;; 3786esac 3787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3788 (eval "$ac_compile") 2>conftest.er1 3789 ac_status=$? 3790 grep -v '^ *+' conftest.er1 >conftest.err 3791 rm -f conftest.er1 3792 cat conftest.err >&5 3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3794 (exit $ac_status); } && { 3795 test -z "$ac_c_werror_flag" || 3796 test ! -s conftest.err 3797 } && test -s conftest.$ac_objext; then 3798 ac_header_compiler=yes 3799else 3800 echo "$as_me: failed program was:" >&5 3801sed 's/^/| /' conftest.$ac_ext >&5 3802 3803 ac_header_compiler=no 3804fi 3805 3806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3807{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3808echo "${ECHO_T}$ac_header_compiler" >&6; } 3809 3810# Is the header present? 3811{ echo "$as_me:$LINENO: checking zlib.h presence" >&5 3812echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } 3813cat >conftest.$ac_ext <<_ACEOF 3814/* confdefs.h. */ 3815_ACEOF 3816cat confdefs.h >>conftest.$ac_ext 3817cat >>conftest.$ac_ext <<_ACEOF 3818/* end confdefs.h. */ 3819#include <zlib.h> 3820_ACEOF 3821if { (ac_try="$ac_cpp conftest.$ac_ext" 3822case "(($ac_try" in 3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3824 *) ac_try_echo=$ac_try;; 3825esac 3826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3828 ac_status=$? 3829 grep -v '^ *+' conftest.er1 >conftest.err 3830 rm -f conftest.er1 3831 cat conftest.err >&5 3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3833 (exit $ac_status); } >/dev/null && { 3834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3835 test ! -s conftest.err 3836 }; then 3837 ac_header_preproc=yes 3838else 3839 echo "$as_me: failed program was:" >&5 3840sed 's/^/| /' conftest.$ac_ext >&5 3841 3842 ac_header_preproc=no 3843fi 3844 3845rm -f conftest.err conftest.$ac_ext 3846{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3847echo "${ECHO_T}$ac_header_preproc" >&6; } 3848 3849# So? What about this header? 3850case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3851 yes:no: ) 3852 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 3853echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3854 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 3855echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} 3856 ac_header_preproc=yes 3857 ;; 3858 no:yes:* ) 3859 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 3860echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} 3861 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 3862echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} 3863 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 3864echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} 3865 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 3866echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 3867 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 3868echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} 3869 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 3870echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} 3871 ( cat <<\_ASBOX 3872## ---------------------------------------- ## 3873## Report this to lib-bug-people@NetBSD.org ## 3874## ---------------------------------------- ## 3875_ASBOX 3876 ) | sed "s/^/$as_me: WARNING: /" >&2 3877 ;; 3878esac 3879{ echo "$as_me:$LINENO: checking for zlib.h" >&5 3880echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } 3881if test "${ac_cv_header_zlib_h+set}" = set; then 3882 echo $ECHO_N "(cached) $ECHO_C" >&6 3883else 3884 ac_cv_header_zlib_h=$ac_header_preproc 3885fi 3886{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 3887echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } 3888 3889fi 3890if test $ac_cv_header_zlib_h = yes; then 3891 : 3892else 3893 { { echo "$as_me:$LINENO: error: zlib must be installed in a compiler-visible path" >&5 3894echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;} 3895 { (exit 1); exit 1; }; } 3896fi 3897 3898 3899 3900{ echo "$as_me:$LINENO: checking for gzdopen in -lz" >&5 3901echo $ECHO_N "checking for gzdopen in -lz... $ECHO_C" >&6; } 3902if test "${ac_cv_lib_z_gzdopen+set}" = set; then 3903 echo $ECHO_N "(cached) $ECHO_C" >&6 3904else 3905 ac_check_lib_save_LIBS=$LIBS 3906LIBS="-lz $LIBS" 3907cat >conftest.$ac_ext <<_ACEOF 3908/* confdefs.h. */ 3909_ACEOF 3910cat confdefs.h >>conftest.$ac_ext 3911cat >>conftest.$ac_ext <<_ACEOF 3912/* end confdefs.h. */ 3913 3914/* Override any GCC internal prototype to avoid an error. 3915 Use char because int might match the return type of a GCC 3916 builtin and then its argument prototype would still apply. */ 3917#ifdef __cplusplus 3918extern "C" 3919#endif 3920char gzdopen (); 3921int 3922main () 3923{ 3924return gzdopen (); 3925 ; 3926 return 0; 3927} 3928_ACEOF 3929rm -f conftest.$ac_objext conftest$ac_exeext 3930if { (ac_try="$ac_link" 3931case "(($ac_try" in 3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3933 *) ac_try_echo=$ac_try;; 3934esac 3935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3936 (eval "$ac_link") 2>conftest.er1 3937 ac_status=$? 3938 grep -v '^ *+' conftest.er1 >conftest.err 3939 rm -f conftest.er1 3940 cat conftest.err >&5 3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3942 (exit $ac_status); } && { 3943 test -z "$ac_c_werror_flag" || 3944 test ! -s conftest.err 3945 } && test -s conftest$ac_exeext && 3946 $as_test_x conftest$ac_exeext; then 3947 ac_cv_lib_z_gzdopen=yes 3948else 3949 echo "$as_me: failed program was:" >&5 3950sed 's/^/| /' conftest.$ac_ext >&5 3951 3952 ac_cv_lib_z_gzdopen=no 3953fi 3954 3955rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3956 conftest$ac_exeext conftest.$ac_ext 3957LIBS=$ac_check_lib_save_LIBS 3958fi 3959{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzdopen" >&5 3960echo "${ECHO_T}$ac_cv_lib_z_gzdopen" >&6; } 3961if test $ac_cv_lib_z_gzdopen = yes; then 3962 cat >>confdefs.h <<_ACEOF 3963#define HAVE_LIBZ 1 3964_ACEOF 3965 3966 LIBS="-lz $LIBS" 3967 3968else 3969 { { echo "$as_me:$LINENO: error: zlib must be installed in a compiler-visible path" >&5 3970echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;} 3971 { (exit 1); exit 1; }; } 3972fi 3973 3974 3975# Make sure certain required headers are available. 3976# These are not necessarily required by the code, but they are not 3977# currently conditionalized. 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004for ac_header in sys/ioctl.h sys/mman.h sys/mtio.h sys/param.h \ 4005 sys/socket.h sys/stat.h sys/time.h sys/types.h sys/utsname.h \ 4006 sys/wait.h assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h \ 4007 netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h \ 4008 termios.h unistd.h 4009do 4010as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4011if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4012 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4015 echo $ECHO_N "(cached) $ECHO_C" >&6 4016fi 4017ac_res=`eval echo '${'$as_ac_Header'}'` 4018 { echo "$as_me:$LINENO: result: $ac_res" >&5 4019echo "${ECHO_T}$ac_res" >&6; } 4020else 4021 # Is the header compilable? 4022{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4023echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4024cat >conftest.$ac_ext <<_ACEOF 4025/* confdefs.h. */ 4026_ACEOF 4027cat confdefs.h >>conftest.$ac_ext 4028cat >>conftest.$ac_ext <<_ACEOF 4029/* end confdefs.h. */ 4030$ac_includes_default 4031#include <$ac_header> 4032_ACEOF 4033rm -f conftest.$ac_objext 4034if { (ac_try="$ac_compile" 4035case "(($ac_try" in 4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4037 *) ac_try_echo=$ac_try;; 4038esac 4039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4040 (eval "$ac_compile") 2>conftest.er1 4041 ac_status=$? 4042 grep -v '^ *+' conftest.er1 >conftest.err 4043 rm -f conftest.er1 4044 cat conftest.err >&5 4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4046 (exit $ac_status); } && { 4047 test -z "$ac_c_werror_flag" || 4048 test ! -s conftest.err 4049 } && test -s conftest.$ac_objext; then 4050 ac_header_compiler=yes 4051else 4052 echo "$as_me: failed program was:" >&5 4053sed 's/^/| /' conftest.$ac_ext >&5 4054 4055 ac_header_compiler=no 4056fi 4057 4058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4059{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4060echo "${ECHO_T}$ac_header_compiler" >&6; } 4061 4062# Is the header present? 4063{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 4064echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 4065cat >conftest.$ac_ext <<_ACEOF 4066/* confdefs.h. */ 4067_ACEOF 4068cat confdefs.h >>conftest.$ac_ext 4069cat >>conftest.$ac_ext <<_ACEOF 4070/* end confdefs.h. */ 4071#include <$ac_header> 4072_ACEOF 4073if { (ac_try="$ac_cpp conftest.$ac_ext" 4074case "(($ac_try" in 4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4076 *) ac_try_echo=$ac_try;; 4077esac 4078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4080 ac_status=$? 4081 grep -v '^ *+' conftest.er1 >conftest.err 4082 rm -f conftest.er1 4083 cat conftest.err >&5 4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4085 (exit $ac_status); } >/dev/null && { 4086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4087 test ! -s conftest.err 4088 }; then 4089 ac_header_preproc=yes 4090else 4091 echo "$as_me: failed program was:" >&5 4092sed 's/^/| /' conftest.$ac_ext >&5 4093 4094 ac_header_preproc=no 4095fi 4096 4097rm -f conftest.err conftest.$ac_ext 4098{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4099echo "${ECHO_T}$ac_header_preproc" >&6; } 4100 4101# So? What about this header? 4102case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4103 yes:no: ) 4104 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4105echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4107echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4108 ac_header_preproc=yes 4109 ;; 4110 no:yes:* ) 4111 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4112echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4113 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4114echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4115 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4116echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4117 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4118echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4120echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4121 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4122echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4123 ( cat <<\_ASBOX 4124## ---------------------------------------- ## 4125## Report this to lib-bug-people@NetBSD.org ## 4126## ---------------------------------------- ## 4127_ASBOX 4128 ) | sed "s/^/$as_me: WARNING: /" >&2 4129 ;; 4130esac 4131{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4133if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4134 echo $ECHO_N "(cached) $ECHO_C" >&6 4135else 4136 eval "$as_ac_Header=\$ac_header_preproc" 4137fi 4138ac_res=`eval echo '${'$as_ac_Header'}'` 4139 { echo "$as_me:$LINENO: result: $ac_res" >&5 4140echo "${ECHO_T}$ac_res" >&6; } 4141 4142fi 4143if test `eval echo '${'$as_ac_Header'}'` = yes; then 4144 cat >>confdefs.h <<_ACEOF 4145#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4146_ACEOF 4147 4148else 4149 { { echo "$as_me:$LINENO: error: standard system header file not found" >&5 4150echo "$as_me: error: standard system header file not found" >&2;} 4151 { (exit 1); exit 1; }; } 4152fi 4153 4154done 4155 4156 4157# Find headers that may not be available. 4158 4159 4160 4161 4162 4163ac_header_dirent=no 4164for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 4165 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 4166{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 4167echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 4168if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4169 echo $ECHO_N "(cached) $ECHO_C" >&6 4170else 4171 cat >conftest.$ac_ext <<_ACEOF 4172/* confdefs.h. */ 4173_ACEOF 4174cat confdefs.h >>conftest.$ac_ext 4175cat >>conftest.$ac_ext <<_ACEOF 4176/* end confdefs.h. */ 4177#include <sys/types.h> 4178#include <$ac_hdr> 4179 4180int 4181main () 4182{ 4183if ((DIR *) 0) 4184return 0; 4185 ; 4186 return 0; 4187} 4188_ACEOF 4189rm -f conftest.$ac_objext 4190if { (ac_try="$ac_compile" 4191case "(($ac_try" in 4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4193 *) ac_try_echo=$ac_try;; 4194esac 4195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4196 (eval "$ac_compile") 2>conftest.er1 4197 ac_status=$? 4198 grep -v '^ *+' conftest.er1 >conftest.err 4199 rm -f conftest.er1 4200 cat conftest.err >&5 4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4202 (exit $ac_status); } && { 4203 test -z "$ac_c_werror_flag" || 4204 test ! -s conftest.err 4205 } && test -s conftest.$ac_objext; then 4206 eval "$as_ac_Header=yes" 4207else 4208 echo "$as_me: failed program was:" >&5 4209sed 's/^/| /' conftest.$ac_ext >&5 4210 4211 eval "$as_ac_Header=no" 4212fi 4213 4214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4215fi 4216ac_res=`eval echo '${'$as_ac_Header'}'` 4217 { echo "$as_me:$LINENO: result: $ac_res" >&5 4218echo "${ECHO_T}$ac_res" >&6; } 4219if test `eval echo '${'$as_ac_Header'}'` = yes; then 4220 cat >>confdefs.h <<_ACEOF 4221#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 4222_ACEOF 4223 4224ac_header_dirent=$ac_hdr; break 4225fi 4226 4227done 4228# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 4229if test $ac_header_dirent = dirent.h; then 4230 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 4231echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 4232if test "${ac_cv_search_opendir+set}" = set; then 4233 echo $ECHO_N "(cached) $ECHO_C" >&6 4234else 4235 ac_func_search_save_LIBS=$LIBS 4236cat >conftest.$ac_ext <<_ACEOF 4237/* confdefs.h. */ 4238_ACEOF 4239cat confdefs.h >>conftest.$ac_ext 4240cat >>conftest.$ac_ext <<_ACEOF 4241/* end confdefs.h. */ 4242 4243/* Override any GCC internal prototype to avoid an error. 4244 Use char because int might match the return type of a GCC 4245 builtin and then its argument prototype would still apply. */ 4246#ifdef __cplusplus 4247extern "C" 4248#endif 4249char opendir (); 4250int 4251main () 4252{ 4253return opendir (); 4254 ; 4255 return 0; 4256} 4257_ACEOF 4258for ac_lib in '' dir; do 4259 if test -z "$ac_lib"; then 4260 ac_res="none required" 4261 else 4262 ac_res=-l$ac_lib 4263 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4264 fi 4265 rm -f conftest.$ac_objext conftest$ac_exeext 4266if { (ac_try="$ac_link" 4267case "(($ac_try" in 4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4269 *) ac_try_echo=$ac_try;; 4270esac 4271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4272 (eval "$ac_link") 2>conftest.er1 4273 ac_status=$? 4274 grep -v '^ *+' conftest.er1 >conftest.err 4275 rm -f conftest.er1 4276 cat conftest.err >&5 4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4278 (exit $ac_status); } && { 4279 test -z "$ac_c_werror_flag" || 4280 test ! -s conftest.err 4281 } && test -s conftest$ac_exeext && 4282 $as_test_x conftest$ac_exeext; then 4283 ac_cv_search_opendir=$ac_res 4284else 4285 echo "$as_me: failed program was:" >&5 4286sed 's/^/| /' conftest.$ac_ext >&5 4287 4288 4289fi 4290 4291rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4292 conftest$ac_exeext 4293 if test "${ac_cv_search_opendir+set}" = set; then 4294 break 4295fi 4296done 4297if test "${ac_cv_search_opendir+set}" = set; then 4298 : 4299else 4300 ac_cv_search_opendir=no 4301fi 4302rm conftest.$ac_ext 4303LIBS=$ac_func_search_save_LIBS 4304fi 4305{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 4306echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 4307ac_res=$ac_cv_search_opendir 4308if test "$ac_res" != no; then 4309 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4310 4311fi 4312 4313else 4314 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 4315echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 4316if test "${ac_cv_search_opendir+set}" = set; then 4317 echo $ECHO_N "(cached) $ECHO_C" >&6 4318else 4319 ac_func_search_save_LIBS=$LIBS 4320cat >conftest.$ac_ext <<_ACEOF 4321/* confdefs.h. */ 4322_ACEOF 4323cat confdefs.h >>conftest.$ac_ext 4324cat >>conftest.$ac_ext <<_ACEOF 4325/* end confdefs.h. */ 4326 4327/* Override any GCC internal prototype to avoid an error. 4328 Use char because int might match the return type of a GCC 4329 builtin and then its argument prototype would still apply. */ 4330#ifdef __cplusplus 4331extern "C" 4332#endif 4333char opendir (); 4334int 4335main () 4336{ 4337return opendir (); 4338 ; 4339 return 0; 4340} 4341_ACEOF 4342for ac_lib in '' x; do 4343 if test -z "$ac_lib"; then 4344 ac_res="none required" 4345 else 4346 ac_res=-l$ac_lib 4347 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4348 fi 4349 rm -f conftest.$ac_objext conftest$ac_exeext 4350if { (ac_try="$ac_link" 4351case "(($ac_try" in 4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4353 *) ac_try_echo=$ac_try;; 4354esac 4355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4356 (eval "$ac_link") 2>conftest.er1 4357 ac_status=$? 4358 grep -v '^ *+' conftest.er1 >conftest.err 4359 rm -f conftest.er1 4360 cat conftest.err >&5 4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4362 (exit $ac_status); } && { 4363 test -z "$ac_c_werror_flag" || 4364 test ! -s conftest.err 4365 } && test -s conftest$ac_exeext && 4366 $as_test_x conftest$ac_exeext; then 4367 ac_cv_search_opendir=$ac_res 4368else 4369 echo "$as_me: failed program was:" >&5 4370sed 's/^/| /' conftest.$ac_ext >&5 4371 4372 4373fi 4374 4375rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4376 conftest$ac_exeext 4377 if test "${ac_cv_search_opendir+set}" = set; then 4378 break 4379fi 4380done 4381if test "${ac_cv_search_opendir+set}" = set; then 4382 : 4383else 4384 ac_cv_search_opendir=no 4385fi 4386rm conftest.$ac_ext 4387LIBS=$ac_func_search_save_LIBS 4388fi 4389{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 4390echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 4391ac_res=$ac_cv_search_opendir 4392if test "$ac_res" != no; then 4393 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4394 4395fi 4396 4397fi 4398 4399 4400 4401 4402 4403 4404 4405 4406for ac_header in sys/sysmacros.h sys/syslimits.h \ 4407 getopt.h features.h malloc.h sys/poll.h stddef.h 4408do 4409as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4410if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4411 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4413if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4414 echo $ECHO_N "(cached) $ECHO_C" >&6 4415fi 4416ac_res=`eval echo '${'$as_ac_Header'}'` 4417 { echo "$as_me:$LINENO: result: $ac_res" >&5 4418echo "${ECHO_T}$ac_res" >&6; } 4419else 4420 # Is the header compilable? 4421{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4422echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4423cat >conftest.$ac_ext <<_ACEOF 4424/* confdefs.h. */ 4425_ACEOF 4426cat confdefs.h >>conftest.$ac_ext 4427cat >>conftest.$ac_ext <<_ACEOF 4428/* end confdefs.h. */ 4429$ac_includes_default 4430#include <$ac_header> 4431_ACEOF 4432rm -f conftest.$ac_objext 4433if { (ac_try="$ac_compile" 4434case "(($ac_try" in 4435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4436 *) ac_try_echo=$ac_try;; 4437esac 4438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4439 (eval "$ac_compile") 2>conftest.er1 4440 ac_status=$? 4441 grep -v '^ *+' conftest.er1 >conftest.err 4442 rm -f conftest.er1 4443 cat conftest.err >&5 4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4445 (exit $ac_status); } && { 4446 test -z "$ac_c_werror_flag" || 4447 test ! -s conftest.err 4448 } && test -s conftest.$ac_objext; then 4449 ac_header_compiler=yes 4450else 4451 echo "$as_me: failed program was:" >&5 4452sed 's/^/| /' conftest.$ac_ext >&5 4453 4454 ac_header_compiler=no 4455fi 4456 4457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4458{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4459echo "${ECHO_T}$ac_header_compiler" >&6; } 4460 4461# Is the header present? 4462{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 4463echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 4464cat >conftest.$ac_ext <<_ACEOF 4465/* confdefs.h. */ 4466_ACEOF 4467cat confdefs.h >>conftest.$ac_ext 4468cat >>conftest.$ac_ext <<_ACEOF 4469/* end confdefs.h. */ 4470#include <$ac_header> 4471_ACEOF 4472if { (ac_try="$ac_cpp conftest.$ac_ext" 4473case "(($ac_try" in 4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4475 *) ac_try_echo=$ac_try;; 4476esac 4477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4479 ac_status=$? 4480 grep -v '^ *+' conftest.er1 >conftest.err 4481 rm -f conftest.er1 4482 cat conftest.err >&5 4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4484 (exit $ac_status); } >/dev/null && { 4485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4486 test ! -s conftest.err 4487 }; then 4488 ac_header_preproc=yes 4489else 4490 echo "$as_me: failed program was:" >&5 4491sed 's/^/| /' conftest.$ac_ext >&5 4492 4493 ac_header_preproc=no 4494fi 4495 4496rm -f conftest.err conftest.$ac_ext 4497{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4498echo "${ECHO_T}$ac_header_preproc" >&6; } 4499 4500# So? What about this header? 4501case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4502 yes:no: ) 4503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4504echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4506echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4507 ac_header_preproc=yes 4508 ;; 4509 no:yes:* ) 4510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4511echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4513echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4515echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4517echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4519echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4521echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4522 ( cat <<\_ASBOX 4523## ---------------------------------------- ## 4524## Report this to lib-bug-people@NetBSD.org ## 4525## ---------------------------------------- ## 4526_ASBOX 4527 ) | sed "s/^/$as_me: WARNING: /" >&2 4528 ;; 4529esac 4530{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4532if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4533 echo $ECHO_N "(cached) $ECHO_C" >&6 4534else 4535 eval "$as_ac_Header=\$ac_header_preproc" 4536fi 4537ac_res=`eval echo '${'$as_ac_Header'}'` 4538 { echo "$as_me:$LINENO: result: $ac_res" >&5 4539echo "${ECHO_T}$ac_res" >&6; } 4540 4541fi 4542if test `eval echo '${'$as_ac_Header'}'` = yes; then 4543 cat >>confdefs.h <<_ACEOF 4544#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4545_ACEOF 4546 4547fi 4548 4549done 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562for ac_header in sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h \ 4563 sys/featuretest.h err.h inttypes.h libgen.h paths.h stdint.h util.h 4564do 4565as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4566if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4567 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4569if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4570 echo $ECHO_N "(cached) $ECHO_C" >&6 4571fi 4572ac_res=`eval echo '${'$as_ac_Header'}'` 4573 { echo "$as_me:$LINENO: result: $ac_res" >&5 4574echo "${ECHO_T}$ac_res" >&6; } 4575else 4576 # Is the header compilable? 4577{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4578echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4579cat >conftest.$ac_ext <<_ACEOF 4580/* confdefs.h. */ 4581_ACEOF 4582cat confdefs.h >>conftest.$ac_ext 4583cat >>conftest.$ac_ext <<_ACEOF 4584/* end confdefs.h. */ 4585$ac_includes_default 4586#include <$ac_header> 4587_ACEOF 4588rm -f conftest.$ac_objext 4589if { (ac_try="$ac_compile" 4590case "(($ac_try" in 4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4592 *) ac_try_echo=$ac_try;; 4593esac 4594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4595 (eval "$ac_compile") 2>conftest.er1 4596 ac_status=$? 4597 grep -v '^ *+' conftest.er1 >conftest.err 4598 rm -f conftest.er1 4599 cat conftest.err >&5 4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4601 (exit $ac_status); } && { 4602 test -z "$ac_c_werror_flag" || 4603 test ! -s conftest.err 4604 } && test -s conftest.$ac_objext; then 4605 ac_header_compiler=yes 4606else 4607 echo "$as_me: failed program was:" >&5 4608sed 's/^/| /' conftest.$ac_ext >&5 4609 4610 ac_header_compiler=no 4611fi 4612 4613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4614{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4615echo "${ECHO_T}$ac_header_compiler" >&6; } 4616 4617# Is the header present? 4618{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 4619echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 4620cat >conftest.$ac_ext <<_ACEOF 4621/* confdefs.h. */ 4622_ACEOF 4623cat confdefs.h >>conftest.$ac_ext 4624cat >>conftest.$ac_ext <<_ACEOF 4625/* end confdefs.h. */ 4626#include <$ac_header> 4627_ACEOF 4628if { (ac_try="$ac_cpp conftest.$ac_ext" 4629case "(($ac_try" in 4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4631 *) ac_try_echo=$ac_try;; 4632esac 4633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4635 ac_status=$? 4636 grep -v '^ *+' conftest.er1 >conftest.err 4637 rm -f conftest.er1 4638 cat conftest.err >&5 4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4640 (exit $ac_status); } >/dev/null && { 4641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4642 test ! -s conftest.err 4643 }; then 4644 ac_header_preproc=yes 4645else 4646 echo "$as_me: failed program was:" >&5 4647sed 's/^/| /' conftest.$ac_ext >&5 4648 4649 ac_header_preproc=no 4650fi 4651 4652rm -f conftest.err conftest.$ac_ext 4653{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4654echo "${ECHO_T}$ac_header_preproc" >&6; } 4655 4656# So? What about this header? 4657case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4658 yes:no: ) 4659 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4660echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4662echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4663 ac_header_preproc=yes 4664 ;; 4665 no:yes:* ) 4666 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4667echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4668 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4669echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4670 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4671echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4672 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4673echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4675echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4676 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4677echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4678 ( cat <<\_ASBOX 4679## ---------------------------------------- ## 4680## Report this to lib-bug-people@NetBSD.org ## 4681## ---------------------------------------- ## 4682_ASBOX 4683 ) | sed "s/^/$as_me: WARNING: /" >&2 4684 ;; 4685esac 4686{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4687echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4688if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4689 echo $ECHO_N "(cached) $ECHO_C" >&6 4690else 4691 eval "$as_ac_Header=\$ac_header_preproc" 4692fi 4693ac_res=`eval echo '${'$as_ac_Header'}'` 4694 { echo "$as_me:$LINENO: result: $ac_res" >&5 4695echo "${ECHO_T}$ac_res" >&6; } 4696 4697fi 4698if test `eval echo '${'$as_ac_Header'}'` = yes; then 4699 cat >>confdefs.h <<_ACEOF 4700#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4701_ACEOF 4702 4703else 4704 test -f include/$ac_header || touch include/$ac_header 4705fi 4706 4707done 4708 4709 4710 4711for ac_header in rpc/types.h netconfig.h 4712do 4713as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4714if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4715 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4717if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4718 echo $ECHO_N "(cached) $ECHO_C" >&6 4719fi 4720ac_res=`eval echo '${'$as_ac_Header'}'` 4721 { echo "$as_me:$LINENO: result: $ac_res" >&5 4722echo "${ECHO_T}$ac_res" >&6; } 4723else 4724 # Is the header compilable? 4725{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4726echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4727cat >conftest.$ac_ext <<_ACEOF 4728/* confdefs.h. */ 4729_ACEOF 4730cat confdefs.h >>conftest.$ac_ext 4731cat >>conftest.$ac_ext <<_ACEOF 4732/* end confdefs.h. */ 4733$ac_includes_default 4734#include <$ac_header> 4735_ACEOF 4736rm -f conftest.$ac_objext 4737if { (ac_try="$ac_compile" 4738case "(($ac_try" in 4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4740 *) ac_try_echo=$ac_try;; 4741esac 4742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4743 (eval "$ac_compile") 2>conftest.er1 4744 ac_status=$? 4745 grep -v '^ *+' conftest.er1 >conftest.err 4746 rm -f conftest.er1 4747 cat conftest.err >&5 4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4749 (exit $ac_status); } && { 4750 test -z "$ac_c_werror_flag" || 4751 test ! -s conftest.err 4752 } && test -s conftest.$ac_objext; then 4753 ac_header_compiler=yes 4754else 4755 echo "$as_me: failed program was:" >&5 4756sed 's/^/| /' conftest.$ac_ext >&5 4757 4758 ac_header_compiler=no 4759fi 4760 4761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4762{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4763echo "${ECHO_T}$ac_header_compiler" >&6; } 4764 4765# Is the header present? 4766{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 4767echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 4768cat >conftest.$ac_ext <<_ACEOF 4769/* confdefs.h. */ 4770_ACEOF 4771cat confdefs.h >>conftest.$ac_ext 4772cat >>conftest.$ac_ext <<_ACEOF 4773/* end confdefs.h. */ 4774#include <$ac_header> 4775_ACEOF 4776if { (ac_try="$ac_cpp conftest.$ac_ext" 4777case "(($ac_try" in 4778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4779 *) ac_try_echo=$ac_try;; 4780esac 4781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4783 ac_status=$? 4784 grep -v '^ *+' conftest.er1 >conftest.err 4785 rm -f conftest.er1 4786 cat conftest.err >&5 4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4788 (exit $ac_status); } >/dev/null && { 4789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4790 test ! -s conftest.err 4791 }; then 4792 ac_header_preproc=yes 4793else 4794 echo "$as_me: failed program was:" >&5 4795sed 's/^/| /' conftest.$ac_ext >&5 4796 4797 ac_header_preproc=no 4798fi 4799 4800rm -f conftest.err conftest.$ac_ext 4801{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4802echo "${ECHO_T}$ac_header_preproc" >&6; } 4803 4804# So? What about this header? 4805case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4806 yes:no: ) 4807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4808echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4810echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4811 ac_header_preproc=yes 4812 ;; 4813 no:yes:* ) 4814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4815echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4817echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4818 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4819echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4820 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4821echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4823echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4824 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4825echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4826 ( cat <<\_ASBOX 4827## ---------------------------------------- ## 4828## Report this to lib-bug-people@NetBSD.org ## 4829## ---------------------------------------- ## 4830_ASBOX 4831 ) | sed "s/^/$as_me: WARNING: /" >&2 4832 ;; 4833esac 4834{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4835echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4836if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4837 echo $ECHO_N "(cached) $ECHO_C" >&6 4838else 4839 eval "$as_ac_Header=\$ac_header_preproc" 4840fi 4841ac_res=`eval echo '${'$as_ac_Header'}'` 4842 { echo "$as_me:$LINENO: result: $ac_res" >&5 4843echo "${ECHO_T}$ac_res" >&6; } 4844 4845fi 4846if test `eval echo '${'$as_ac_Header'}'` = yes; then 4847 cat >>confdefs.h <<_ACEOF 4848#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4849_ACEOF 4850 4851else 4852 echo '#include "nbtool_config.h"' >include/$ac_header.new 4853 echo '#include "'$srcdir/../../include/$ac_header'"' >>include/$ac_header.new 4854 if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then 4855 rm -f include/$ac_header.new 4856 else 4857 mv -f include/$ac_header.new include/$ac_header 4858 fi 4859fi 4860 4861done 4862 4863 4864# Typedefs. 4865{ echo "$as_me:$LINENO: checking for size_t" >&5 4866echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 4867if test "${ac_cv_type_size_t+set}" = set; then 4868 echo $ECHO_N "(cached) $ECHO_C" >&6 4869else 4870 cat >conftest.$ac_ext <<_ACEOF 4871/* confdefs.h. */ 4872_ACEOF 4873cat confdefs.h >>conftest.$ac_ext 4874cat >>conftest.$ac_ext <<_ACEOF 4875/* end confdefs.h. */ 4876$ac_includes_default 4877typedef size_t ac__type_new_; 4878int 4879main () 4880{ 4881if ((ac__type_new_ *) 0) 4882 return 0; 4883if (sizeof (ac__type_new_)) 4884 return 0; 4885 ; 4886 return 0; 4887} 4888_ACEOF 4889rm -f conftest.$ac_objext 4890if { (ac_try="$ac_compile" 4891case "(($ac_try" in 4892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4893 *) ac_try_echo=$ac_try;; 4894esac 4895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4896 (eval "$ac_compile") 2>conftest.er1 4897 ac_status=$? 4898 grep -v '^ *+' conftest.er1 >conftest.err 4899 rm -f conftest.er1 4900 cat conftest.err >&5 4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4902 (exit $ac_status); } && { 4903 test -z "$ac_c_werror_flag" || 4904 test ! -s conftest.err 4905 } && test -s conftest.$ac_objext; then 4906 ac_cv_type_size_t=yes 4907else 4908 echo "$as_me: failed program was:" >&5 4909sed 's/^/| /' conftest.$ac_ext >&5 4910 4911 ac_cv_type_size_t=no 4912fi 4913 4914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4915fi 4916{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 4917echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 4918if test $ac_cv_type_size_t = yes; then 4919 : 4920else 4921 4922cat >>confdefs.h <<_ACEOF 4923#define size_t unsigned int 4924_ACEOF 4925 4926fi 4927 4928{ echo "$as_me:$LINENO: checking for id_t" >&5 4929echo $ECHO_N "checking for id_t... $ECHO_C" >&6; } 4930if test "${ac_cv_type_id_t+set}" = set; then 4931 echo $ECHO_N "(cached) $ECHO_C" >&6 4932else 4933 cat >conftest.$ac_ext <<_ACEOF 4934/* confdefs.h. */ 4935_ACEOF 4936cat confdefs.h >>conftest.$ac_ext 4937cat >>conftest.$ac_ext <<_ACEOF 4938/* end confdefs.h. */ 4939$ac_includes_default 4940typedef id_t ac__type_new_; 4941int 4942main () 4943{ 4944if ((ac__type_new_ *) 0) 4945 return 0; 4946if (sizeof (ac__type_new_)) 4947 return 0; 4948 ; 4949 return 0; 4950} 4951_ACEOF 4952rm -f conftest.$ac_objext 4953if { (ac_try="$ac_compile" 4954case "(($ac_try" in 4955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4956 *) ac_try_echo=$ac_try;; 4957esac 4958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4959 (eval "$ac_compile") 2>conftest.er1 4960 ac_status=$? 4961 grep -v '^ *+' conftest.er1 >conftest.err 4962 rm -f conftest.er1 4963 cat conftest.err >&5 4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4965 (exit $ac_status); } && { 4966 test -z "$ac_c_werror_flag" || 4967 test ! -s conftest.err 4968 } && test -s conftest.$ac_objext; then 4969 ac_cv_type_id_t=yes 4970else 4971 echo "$as_me: failed program was:" >&5 4972sed 's/^/| /' conftest.$ac_ext >&5 4973 4974 ac_cv_type_id_t=no 4975fi 4976 4977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4978fi 4979{ echo "$as_me:$LINENO: result: $ac_cv_type_id_t" >&5 4980echo "${ECHO_T}$ac_cv_type_id_t" >&6; } 4981if test $ac_cv_type_id_t = yes; then 4982 4983cat >>confdefs.h <<_ACEOF 4984#define HAVE_ID_T 1 4985_ACEOF 4986 4987 4988fi 4989{ echo "$as_me:$LINENO: checking for long long" >&5 4990echo $ECHO_N "checking for long long... $ECHO_C" >&6; } 4991if test "${ac_cv_type_long_long+set}" = set; then 4992 echo $ECHO_N "(cached) $ECHO_C" >&6 4993else 4994 cat >conftest.$ac_ext <<_ACEOF 4995/* confdefs.h. */ 4996_ACEOF 4997cat confdefs.h >>conftest.$ac_ext 4998cat >>conftest.$ac_ext <<_ACEOF 4999/* end confdefs.h. */ 5000$ac_includes_default 5001typedef long long ac__type_new_; 5002int 5003main () 5004{ 5005if ((ac__type_new_ *) 0) 5006 return 0; 5007if (sizeof (ac__type_new_)) 5008 return 0; 5009 ; 5010 return 0; 5011} 5012_ACEOF 5013rm -f conftest.$ac_objext 5014if { (ac_try="$ac_compile" 5015case "(($ac_try" in 5016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5017 *) ac_try_echo=$ac_try;; 5018esac 5019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5020 (eval "$ac_compile") 2>conftest.er1 5021 ac_status=$? 5022 grep -v '^ *+' conftest.er1 >conftest.err 5023 rm -f conftest.er1 5024 cat conftest.err >&5 5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5026 (exit $ac_status); } && { 5027 test -z "$ac_c_werror_flag" || 5028 test ! -s conftest.err 5029 } && test -s conftest.$ac_objext; then 5030 ac_cv_type_long_long=yes 5031else 5032 echo "$as_me: failed program was:" >&5 5033sed 's/^/| /' conftest.$ac_ext >&5 5034 5035 ac_cv_type_long_long=no 5036fi 5037 5038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5039fi 5040{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 5041echo "${ECHO_T}$ac_cv_type_long_long" >&6; } 5042if test $ac_cv_type_long_long = yes; then 5043 5044cat >>confdefs.h <<_ACEOF 5045#define HAVE_LONG_LONG 1 5046_ACEOF 5047 5048 5049fi 5050{ echo "$as_me:$LINENO: checking for u_long" >&5 5051echo $ECHO_N "checking for u_long... $ECHO_C" >&6; } 5052if test "${ac_cv_type_u_long+set}" = set; then 5053 echo $ECHO_N "(cached) $ECHO_C" >&6 5054else 5055 cat >conftest.$ac_ext <<_ACEOF 5056/* confdefs.h. */ 5057_ACEOF 5058cat confdefs.h >>conftest.$ac_ext 5059cat >>conftest.$ac_ext <<_ACEOF 5060/* end confdefs.h. */ 5061$ac_includes_default 5062typedef u_long ac__type_new_; 5063int 5064main () 5065{ 5066if ((ac__type_new_ *) 0) 5067 return 0; 5068if (sizeof (ac__type_new_)) 5069 return 0; 5070 ; 5071 return 0; 5072} 5073_ACEOF 5074rm -f conftest.$ac_objext 5075if { (ac_try="$ac_compile" 5076case "(($ac_try" in 5077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5078 *) ac_try_echo=$ac_try;; 5079esac 5080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5081 (eval "$ac_compile") 2>conftest.er1 5082 ac_status=$? 5083 grep -v '^ *+' conftest.er1 >conftest.err 5084 rm -f conftest.er1 5085 cat conftest.err >&5 5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5087 (exit $ac_status); } && { 5088 test -z "$ac_c_werror_flag" || 5089 test ! -s conftest.err 5090 } && test -s conftest.$ac_objext; then 5091 ac_cv_type_u_long=yes 5092else 5093 echo "$as_me: failed program was:" >&5 5094sed 's/^/| /' conftest.$ac_ext >&5 5095 5096 ac_cv_type_u_long=no 5097fi 5098 5099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5100fi 5101{ echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5 5102echo "${ECHO_T}$ac_cv_type_u_long" >&6; } 5103if test $ac_cv_type_u_long = yes; then 5104 5105cat >>confdefs.h <<_ACEOF 5106#define HAVE_U_LONG 1 5107_ACEOF 5108 5109 5110fi 5111{ echo "$as_me:$LINENO: checking for u_char" >&5 5112echo $ECHO_N "checking for u_char... $ECHO_C" >&6; } 5113if test "${ac_cv_type_u_char+set}" = set; then 5114 echo $ECHO_N "(cached) $ECHO_C" >&6 5115else 5116 cat >conftest.$ac_ext <<_ACEOF 5117/* confdefs.h. */ 5118_ACEOF 5119cat confdefs.h >>conftest.$ac_ext 5120cat >>conftest.$ac_ext <<_ACEOF 5121/* end confdefs.h. */ 5122$ac_includes_default 5123typedef u_char ac__type_new_; 5124int 5125main () 5126{ 5127if ((ac__type_new_ *) 0) 5128 return 0; 5129if (sizeof (ac__type_new_)) 5130 return 0; 5131 ; 5132 return 0; 5133} 5134_ACEOF 5135rm -f conftest.$ac_objext 5136if { (ac_try="$ac_compile" 5137case "(($ac_try" in 5138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5139 *) ac_try_echo=$ac_try;; 5140esac 5141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5142 (eval "$ac_compile") 2>conftest.er1 5143 ac_status=$? 5144 grep -v '^ *+' conftest.er1 >conftest.err 5145 rm -f conftest.er1 5146 cat conftest.err >&5 5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5148 (exit $ac_status); } && { 5149 test -z "$ac_c_werror_flag" || 5150 test ! -s conftest.err 5151 } && test -s conftest.$ac_objext; then 5152 ac_cv_type_u_char=yes 5153else 5154 echo "$as_me: failed program was:" >&5 5155sed 's/^/| /' conftest.$ac_ext >&5 5156 5157 ac_cv_type_u_char=no 5158fi 5159 5160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5161fi 5162{ echo "$as_me:$LINENO: result: $ac_cv_type_u_char" >&5 5163echo "${ECHO_T}$ac_cv_type_u_char" >&6; } 5164if test $ac_cv_type_u_char = yes; then 5165 5166cat >>confdefs.h <<_ACEOF 5167#define HAVE_U_CHAR 1 5168_ACEOF 5169 5170 5171fi 5172{ echo "$as_me:$LINENO: checking for u_short" >&5 5173echo $ECHO_N "checking for u_short... $ECHO_C" >&6; } 5174if test "${ac_cv_type_u_short+set}" = set; then 5175 echo $ECHO_N "(cached) $ECHO_C" >&6 5176else 5177 cat >conftest.$ac_ext <<_ACEOF 5178/* confdefs.h. */ 5179_ACEOF 5180cat confdefs.h >>conftest.$ac_ext 5181cat >>conftest.$ac_ext <<_ACEOF 5182/* end confdefs.h. */ 5183$ac_includes_default 5184typedef u_short ac__type_new_; 5185int 5186main () 5187{ 5188if ((ac__type_new_ *) 0) 5189 return 0; 5190if (sizeof (ac__type_new_)) 5191 return 0; 5192 ; 5193 return 0; 5194} 5195_ACEOF 5196rm -f conftest.$ac_objext 5197if { (ac_try="$ac_compile" 5198case "(($ac_try" in 5199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5200 *) ac_try_echo=$ac_try;; 5201esac 5202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5203 (eval "$ac_compile") 2>conftest.er1 5204 ac_status=$? 5205 grep -v '^ *+' conftest.er1 >conftest.err 5206 rm -f conftest.er1 5207 cat conftest.err >&5 5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5209 (exit $ac_status); } && { 5210 test -z "$ac_c_werror_flag" || 5211 test ! -s conftest.err 5212 } && test -s conftest.$ac_objext; then 5213 ac_cv_type_u_short=yes 5214else 5215 echo "$as_me: failed program was:" >&5 5216sed 's/^/| /' conftest.$ac_ext >&5 5217 5218 ac_cv_type_u_short=no 5219fi 5220 5221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5222fi 5223{ echo "$as_me:$LINENO: result: $ac_cv_type_u_short" >&5 5224echo "${ECHO_T}$ac_cv_type_u_short" >&6; } 5225if test $ac_cv_type_u_short = yes; then 5226 5227cat >>confdefs.h <<_ACEOF 5228#define HAVE_U_SHORT 1 5229_ACEOF 5230 5231 5232fi 5233{ echo "$as_me:$LINENO: checking for u_int" >&5 5234echo $ECHO_N "checking for u_int... $ECHO_C" >&6; } 5235if test "${ac_cv_type_u_int+set}" = set; then 5236 echo $ECHO_N "(cached) $ECHO_C" >&6 5237else 5238 cat >conftest.$ac_ext <<_ACEOF 5239/* confdefs.h. */ 5240_ACEOF 5241cat confdefs.h >>conftest.$ac_ext 5242cat >>conftest.$ac_ext <<_ACEOF 5243/* end confdefs.h. */ 5244$ac_includes_default 5245typedef u_int ac__type_new_; 5246int 5247main () 5248{ 5249if ((ac__type_new_ *) 0) 5250 return 0; 5251if (sizeof (ac__type_new_)) 5252 return 0; 5253 ; 5254 return 0; 5255} 5256_ACEOF 5257rm -f conftest.$ac_objext 5258if { (ac_try="$ac_compile" 5259case "(($ac_try" in 5260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5261 *) ac_try_echo=$ac_try;; 5262esac 5263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5264 (eval "$ac_compile") 2>conftest.er1 5265 ac_status=$? 5266 grep -v '^ *+' conftest.er1 >conftest.err 5267 rm -f conftest.er1 5268 cat conftest.err >&5 5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5270 (exit $ac_status); } && { 5271 test -z "$ac_c_werror_flag" || 5272 test ! -s conftest.err 5273 } && test -s conftest.$ac_objext; then 5274 ac_cv_type_u_int=yes 5275else 5276 echo "$as_me: failed program was:" >&5 5277sed 's/^/| /' conftest.$ac_ext >&5 5278 5279 ac_cv_type_u_int=no 5280fi 5281 5282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5283fi 5284{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5 5285echo "${ECHO_T}$ac_cv_type_u_int" >&6; } 5286if test $ac_cv_type_u_int = yes; then 5287 5288cat >>confdefs.h <<_ACEOF 5289#define HAVE_U_INT 1 5290_ACEOF 5291 5292 5293fi 5294{ echo "$as_me:$LINENO: checking for u_quad_t" >&5 5295echo $ECHO_N "checking for u_quad_t... $ECHO_C" >&6; } 5296if test "${ac_cv_type_u_quad_t+set}" = set; then 5297 echo $ECHO_N "(cached) $ECHO_C" >&6 5298else 5299 cat >conftest.$ac_ext <<_ACEOF 5300/* confdefs.h. */ 5301_ACEOF 5302cat confdefs.h >>conftest.$ac_ext 5303cat >>conftest.$ac_ext <<_ACEOF 5304/* end confdefs.h. */ 5305$ac_includes_default 5306typedef u_quad_t ac__type_new_; 5307int 5308main () 5309{ 5310if ((ac__type_new_ *) 0) 5311 return 0; 5312if (sizeof (ac__type_new_)) 5313 return 0; 5314 ; 5315 return 0; 5316} 5317_ACEOF 5318rm -f conftest.$ac_objext 5319if { (ac_try="$ac_compile" 5320case "(($ac_try" in 5321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5322 *) ac_try_echo=$ac_try;; 5323esac 5324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5325 (eval "$ac_compile") 2>conftest.er1 5326 ac_status=$? 5327 grep -v '^ *+' conftest.er1 >conftest.err 5328 rm -f conftest.er1 5329 cat conftest.err >&5 5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5331 (exit $ac_status); } && { 5332 test -z "$ac_c_werror_flag" || 5333 test ! -s conftest.err 5334 } && test -s conftest.$ac_objext; then 5335 ac_cv_type_u_quad_t=yes 5336else 5337 echo "$as_me: failed program was:" >&5 5338sed 's/^/| /' conftest.$ac_ext >&5 5339 5340 ac_cv_type_u_quad_t=no 5341fi 5342 5343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5344fi 5345{ echo "$as_me:$LINENO: result: $ac_cv_type_u_quad_t" >&5 5346echo "${ECHO_T}$ac_cv_type_u_quad_t" >&6; } 5347if test $ac_cv_type_u_quad_t = yes; then 5348 5349cat >>confdefs.h <<_ACEOF 5350#define HAVE_U_QUAD_T 1 5351_ACEOF 5352 5353 5354fi 5355 5356{ echo "$as_me:$LINENO: checking for socklen_t" >&5 5357echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } 5358if test "${ac_cv_type_socklen_t+set}" = set; then 5359 echo $ECHO_N "(cached) $ECHO_C" >&6 5360else 5361 cat >conftest.$ac_ext <<_ACEOF 5362/* confdefs.h. */ 5363_ACEOF 5364cat confdefs.h >>conftest.$ac_ext 5365cat >>conftest.$ac_ext <<_ACEOF 5366/* end confdefs.h. */ 5367#include <sys/types.h> 5368#include <sys/socket.h> 5369 5370typedef socklen_t ac__type_new_; 5371int 5372main () 5373{ 5374if ((ac__type_new_ *) 0) 5375 return 0; 5376if (sizeof (ac__type_new_)) 5377 return 0; 5378 ; 5379 return 0; 5380} 5381_ACEOF 5382rm -f conftest.$ac_objext 5383if { (ac_try="$ac_compile" 5384case "(($ac_try" in 5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5386 *) ac_try_echo=$ac_try;; 5387esac 5388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5389 (eval "$ac_compile") 2>conftest.er1 5390 ac_status=$? 5391 grep -v '^ *+' conftest.er1 >conftest.err 5392 rm -f conftest.er1 5393 cat conftest.err >&5 5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5395 (exit $ac_status); } && { 5396 test -z "$ac_c_werror_flag" || 5397 test ! -s conftest.err 5398 } && test -s conftest.$ac_objext; then 5399 ac_cv_type_socklen_t=yes 5400else 5401 echo "$as_me: failed program was:" >&5 5402sed 's/^/| /' conftest.$ac_ext >&5 5403 5404 ac_cv_type_socklen_t=no 5405fi 5406 5407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5408fi 5409{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 5410echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } 5411if test $ac_cv_type_socklen_t = yes; then 5412 5413cat >>confdefs.h <<\_ACEOF 5414#define HAVE_SOCKLEN_T 1 5415_ACEOF 5416 5417fi 5418 5419 5420 5421 5422 5423 { echo "$as_me:$LINENO: checking for uint8_t" >&5 5424echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; } 5425if test "${ac_cv_type_uint8_t+set}" = set; then 5426 echo $ECHO_N "(cached) $ECHO_C" >&6 5427else 5428 cat >conftest.$ac_ext <<_ACEOF 5429/* confdefs.h. */ 5430_ACEOF 5431cat confdefs.h >>conftest.$ac_ext 5432cat >>conftest.$ac_ext <<_ACEOF 5433/* end confdefs.h. */ 5434$ac_includes_default 5435typedef uint8_t ac__type_new_; 5436int 5437main () 5438{ 5439if ((ac__type_new_ *) 0) 5440 return 0; 5441if (sizeof (ac__type_new_)) 5442 return 0; 5443 ; 5444 return 0; 5445} 5446_ACEOF 5447rm -f conftest.$ac_objext 5448if { (ac_try="$ac_compile" 5449case "(($ac_try" in 5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5451 *) ac_try_echo=$ac_try;; 5452esac 5453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5454 (eval "$ac_compile") 2>conftest.er1 5455 ac_status=$? 5456 grep -v '^ *+' conftest.er1 >conftest.err 5457 rm -f conftest.er1 5458 cat conftest.err >&5 5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5460 (exit $ac_status); } && { 5461 test -z "$ac_c_werror_flag" || 5462 test ! -s conftest.err 5463 } && test -s conftest.$ac_objext; then 5464 ac_cv_type_uint8_t=yes 5465else 5466 echo "$as_me: failed program was:" >&5 5467sed 's/^/| /' conftest.$ac_ext >&5 5468 5469 ac_cv_type_uint8_t=no 5470fi 5471 5472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5473fi 5474{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 5475echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; } 5476if test $ac_cv_type_uint8_t = yes; then 5477 : 5478else 5479 5480 { echo "$as_me:$LINENO: checking for u_int8_t" >&5 5481echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; } 5482if test "${ac_cv_type_u_int8_t+set}" = set; then 5483 echo $ECHO_N "(cached) $ECHO_C" >&6 5484else 5485 cat >conftest.$ac_ext <<_ACEOF 5486/* confdefs.h. */ 5487_ACEOF 5488cat confdefs.h >>conftest.$ac_ext 5489cat >>conftest.$ac_ext <<_ACEOF 5490/* end confdefs.h. */ 5491$ac_includes_default 5492typedef u_int8_t ac__type_new_; 5493int 5494main () 5495{ 5496if ((ac__type_new_ *) 0) 5497 return 0; 5498if (sizeof (ac__type_new_)) 5499 return 0; 5500 ; 5501 return 0; 5502} 5503_ACEOF 5504rm -f conftest.$ac_objext 5505if { (ac_try="$ac_compile" 5506case "(($ac_try" in 5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5508 *) ac_try_echo=$ac_try;; 5509esac 5510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5511 (eval "$ac_compile") 2>conftest.er1 5512 ac_status=$? 5513 grep -v '^ *+' conftest.er1 >conftest.err 5514 rm -f conftest.er1 5515 cat conftest.err >&5 5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5517 (exit $ac_status); } && { 5518 test -z "$ac_c_werror_flag" || 5519 test ! -s conftest.err 5520 } && test -s conftest.$ac_objext; then 5521 ac_cv_type_u_int8_t=yes 5522else 5523 echo "$as_me: failed program was:" >&5 5524sed 's/^/| /' conftest.$ac_ext >&5 5525 5526 ac_cv_type_u_int8_t=no 5527fi 5528 5529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5530fi 5531{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5 5532echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; } 5533if test $ac_cv_type_u_int8_t = yes; then 5534 5535cat >>confdefs.h <<\_ACEOF 5536#define uint8_t u_int8_t 5537_ACEOF 5538 5539else 5540 { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint8_t" >&5 5541echo "$as_me: error: cannot find a suitable type for uint8_t" >&2;} 5542 { (exit 1); exit 1; }; } 5543fi 5544 5545 5546fi 5547 5548 { echo "$as_me:$LINENO: checking for u_int8_t" >&5 5549echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; } 5550if test "${ac_cv_type_u_int8_t+set}" = set; then 5551 echo $ECHO_N "(cached) $ECHO_C" >&6 5552else 5553 cat >conftest.$ac_ext <<_ACEOF 5554/* confdefs.h. */ 5555_ACEOF 5556cat confdefs.h >>conftest.$ac_ext 5557cat >>conftest.$ac_ext <<_ACEOF 5558/* end confdefs.h. */ 5559$ac_includes_default 5560typedef u_int8_t ac__type_new_; 5561int 5562main () 5563{ 5564if ((ac__type_new_ *) 0) 5565 return 0; 5566if (sizeof (ac__type_new_)) 5567 return 0; 5568 ; 5569 return 0; 5570} 5571_ACEOF 5572rm -f conftest.$ac_objext 5573if { (ac_try="$ac_compile" 5574case "(($ac_try" in 5575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5576 *) ac_try_echo=$ac_try;; 5577esac 5578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5579 (eval "$ac_compile") 2>conftest.er1 5580 ac_status=$? 5581 grep -v '^ *+' conftest.er1 >conftest.err 5582 rm -f conftest.er1 5583 cat conftest.err >&5 5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5585 (exit $ac_status); } && { 5586 test -z "$ac_c_werror_flag" || 5587 test ! -s conftest.err 5588 } && test -s conftest.$ac_objext; then 5589 ac_cv_type_u_int8_t=yes 5590else 5591 echo "$as_me: failed program was:" >&5 5592sed 's/^/| /' conftest.$ac_ext >&5 5593 5594 ac_cv_type_u_int8_t=no 5595fi 5596 5597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5598fi 5599{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5 5600echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; } 5601if test $ac_cv_type_u_int8_t = yes; then 5602 : 5603else 5604 5605 { echo "$as_me:$LINENO: checking for uint8_t" >&5 5606echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; } 5607if test "${ac_cv_type_uint8_t+set}" = set; then 5608 echo $ECHO_N "(cached) $ECHO_C" >&6 5609else 5610 cat >conftest.$ac_ext <<_ACEOF 5611/* confdefs.h. */ 5612_ACEOF 5613cat confdefs.h >>conftest.$ac_ext 5614cat >>conftest.$ac_ext <<_ACEOF 5615/* end confdefs.h. */ 5616$ac_includes_default 5617typedef uint8_t ac__type_new_; 5618int 5619main () 5620{ 5621if ((ac__type_new_ *) 0) 5622 return 0; 5623if (sizeof (ac__type_new_)) 5624 return 0; 5625 ; 5626 return 0; 5627} 5628_ACEOF 5629rm -f conftest.$ac_objext 5630if { (ac_try="$ac_compile" 5631case "(($ac_try" in 5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5633 *) ac_try_echo=$ac_try;; 5634esac 5635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5636 (eval "$ac_compile") 2>conftest.er1 5637 ac_status=$? 5638 grep -v '^ *+' conftest.er1 >conftest.err 5639 rm -f conftest.er1 5640 cat conftest.err >&5 5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5642 (exit $ac_status); } && { 5643 test -z "$ac_c_werror_flag" || 5644 test ! -s conftest.err 5645 } && test -s conftest.$ac_objext; then 5646 ac_cv_type_uint8_t=yes 5647else 5648 echo "$as_me: failed program was:" >&5 5649sed 's/^/| /' conftest.$ac_ext >&5 5650 5651 ac_cv_type_uint8_t=no 5652fi 5653 5654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5655fi 5656{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 5657echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; } 5658if test $ac_cv_type_uint8_t = yes; then 5659 5660cat >>confdefs.h <<\_ACEOF 5661#define u_int8_t uint8_t 5662_ACEOF 5663 5664else 5665 { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int8_t" >&5 5666echo "$as_me: error: cannot find a suitable type for u_int8_t" >&2;} 5667 { (exit 1); exit 1; }; } 5668fi 5669 5670 5671fi 5672 5673 5674 5675 { echo "$as_me:$LINENO: checking for uint16_t" >&5 5676echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } 5677if test "${ac_cv_type_uint16_t+set}" = set; then 5678 echo $ECHO_N "(cached) $ECHO_C" >&6 5679else 5680 cat >conftest.$ac_ext <<_ACEOF 5681/* confdefs.h. */ 5682_ACEOF 5683cat confdefs.h >>conftest.$ac_ext 5684cat >>conftest.$ac_ext <<_ACEOF 5685/* end confdefs.h. */ 5686$ac_includes_default 5687typedef uint16_t ac__type_new_; 5688int 5689main () 5690{ 5691if ((ac__type_new_ *) 0) 5692 return 0; 5693if (sizeof (ac__type_new_)) 5694 return 0; 5695 ; 5696 return 0; 5697} 5698_ACEOF 5699rm -f conftest.$ac_objext 5700if { (ac_try="$ac_compile" 5701case "(($ac_try" in 5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5703 *) ac_try_echo=$ac_try;; 5704esac 5705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5706 (eval "$ac_compile") 2>conftest.er1 5707 ac_status=$? 5708 grep -v '^ *+' conftest.er1 >conftest.err 5709 rm -f conftest.er1 5710 cat conftest.err >&5 5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5712 (exit $ac_status); } && { 5713 test -z "$ac_c_werror_flag" || 5714 test ! -s conftest.err 5715 } && test -s conftest.$ac_objext; then 5716 ac_cv_type_uint16_t=yes 5717else 5718 echo "$as_me: failed program was:" >&5 5719sed 's/^/| /' conftest.$ac_ext >&5 5720 5721 ac_cv_type_uint16_t=no 5722fi 5723 5724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5725fi 5726{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 5727echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; } 5728if test $ac_cv_type_uint16_t = yes; then 5729 : 5730else 5731 5732 { echo "$as_me:$LINENO: checking for u_int16_t" >&5 5733echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; } 5734if test "${ac_cv_type_u_int16_t+set}" = set; then 5735 echo $ECHO_N "(cached) $ECHO_C" >&6 5736else 5737 cat >conftest.$ac_ext <<_ACEOF 5738/* confdefs.h. */ 5739_ACEOF 5740cat confdefs.h >>conftest.$ac_ext 5741cat >>conftest.$ac_ext <<_ACEOF 5742/* end confdefs.h. */ 5743$ac_includes_default 5744typedef u_int16_t ac__type_new_; 5745int 5746main () 5747{ 5748if ((ac__type_new_ *) 0) 5749 return 0; 5750if (sizeof (ac__type_new_)) 5751 return 0; 5752 ; 5753 return 0; 5754} 5755_ACEOF 5756rm -f conftest.$ac_objext 5757if { (ac_try="$ac_compile" 5758case "(($ac_try" in 5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5760 *) ac_try_echo=$ac_try;; 5761esac 5762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5763 (eval "$ac_compile") 2>conftest.er1 5764 ac_status=$? 5765 grep -v '^ *+' conftest.er1 >conftest.err 5766 rm -f conftest.er1 5767 cat conftest.err >&5 5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5769 (exit $ac_status); } && { 5770 test -z "$ac_c_werror_flag" || 5771 test ! -s conftest.err 5772 } && test -s conftest.$ac_objext; then 5773 ac_cv_type_u_int16_t=yes 5774else 5775 echo "$as_me: failed program was:" >&5 5776sed 's/^/| /' conftest.$ac_ext >&5 5777 5778 ac_cv_type_u_int16_t=no 5779fi 5780 5781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5782fi 5783{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 5784echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; } 5785if test $ac_cv_type_u_int16_t = yes; then 5786 5787cat >>confdefs.h <<\_ACEOF 5788#define uint16_t u_int16_t 5789_ACEOF 5790 5791else 5792 { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint16_t" >&5 5793echo "$as_me: error: cannot find a suitable type for uint16_t" >&2;} 5794 { (exit 1); exit 1; }; } 5795fi 5796 5797 5798fi 5799 5800 { echo "$as_me:$LINENO: checking for u_int16_t" >&5 5801echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; } 5802if test "${ac_cv_type_u_int16_t+set}" = set; then 5803 echo $ECHO_N "(cached) $ECHO_C" >&6 5804else 5805 cat >conftest.$ac_ext <<_ACEOF 5806/* confdefs.h. */ 5807_ACEOF 5808cat confdefs.h >>conftest.$ac_ext 5809cat >>conftest.$ac_ext <<_ACEOF 5810/* end confdefs.h. */ 5811$ac_includes_default 5812typedef u_int16_t ac__type_new_; 5813int 5814main () 5815{ 5816if ((ac__type_new_ *) 0) 5817 return 0; 5818if (sizeof (ac__type_new_)) 5819 return 0; 5820 ; 5821 return 0; 5822} 5823_ACEOF 5824rm -f conftest.$ac_objext 5825if { (ac_try="$ac_compile" 5826case "(($ac_try" in 5827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5828 *) ac_try_echo=$ac_try;; 5829esac 5830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5831 (eval "$ac_compile") 2>conftest.er1 5832 ac_status=$? 5833 grep -v '^ *+' conftest.er1 >conftest.err 5834 rm -f conftest.er1 5835 cat conftest.err >&5 5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5837 (exit $ac_status); } && { 5838 test -z "$ac_c_werror_flag" || 5839 test ! -s conftest.err 5840 } && test -s conftest.$ac_objext; then 5841 ac_cv_type_u_int16_t=yes 5842else 5843 echo "$as_me: failed program was:" >&5 5844sed 's/^/| /' conftest.$ac_ext >&5 5845 5846 ac_cv_type_u_int16_t=no 5847fi 5848 5849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5850fi 5851{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 5852echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; } 5853if test $ac_cv_type_u_int16_t = yes; then 5854 : 5855else 5856 5857 { echo "$as_me:$LINENO: checking for uint16_t" >&5 5858echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } 5859if test "${ac_cv_type_uint16_t+set}" = set; then 5860 echo $ECHO_N "(cached) $ECHO_C" >&6 5861else 5862 cat >conftest.$ac_ext <<_ACEOF 5863/* confdefs.h. */ 5864_ACEOF 5865cat confdefs.h >>conftest.$ac_ext 5866cat >>conftest.$ac_ext <<_ACEOF 5867/* end confdefs.h. */ 5868$ac_includes_default 5869typedef uint16_t ac__type_new_; 5870int 5871main () 5872{ 5873if ((ac__type_new_ *) 0) 5874 return 0; 5875if (sizeof (ac__type_new_)) 5876 return 0; 5877 ; 5878 return 0; 5879} 5880_ACEOF 5881rm -f conftest.$ac_objext 5882if { (ac_try="$ac_compile" 5883case "(($ac_try" in 5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5885 *) ac_try_echo=$ac_try;; 5886esac 5887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5888 (eval "$ac_compile") 2>conftest.er1 5889 ac_status=$? 5890 grep -v '^ *+' conftest.er1 >conftest.err 5891 rm -f conftest.er1 5892 cat conftest.err >&5 5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5894 (exit $ac_status); } && { 5895 test -z "$ac_c_werror_flag" || 5896 test ! -s conftest.err 5897 } && test -s conftest.$ac_objext; then 5898 ac_cv_type_uint16_t=yes 5899else 5900 echo "$as_me: failed program was:" >&5 5901sed 's/^/| /' conftest.$ac_ext >&5 5902 5903 ac_cv_type_uint16_t=no 5904fi 5905 5906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5907fi 5908{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 5909echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; } 5910if test $ac_cv_type_uint16_t = yes; then 5911 5912cat >>confdefs.h <<\_ACEOF 5913#define u_int16_t uint16_t 5914_ACEOF 5915 5916else 5917 { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int16_t" >&5 5918echo "$as_me: error: cannot find a suitable type for u_int16_t" >&2;} 5919 { (exit 1); exit 1; }; } 5920fi 5921 5922 5923fi 5924 5925 5926 5927 { echo "$as_me:$LINENO: checking for uint32_t" >&5 5928echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } 5929if test "${ac_cv_type_uint32_t+set}" = set; then 5930 echo $ECHO_N "(cached) $ECHO_C" >&6 5931else 5932 cat >conftest.$ac_ext <<_ACEOF 5933/* confdefs.h. */ 5934_ACEOF 5935cat confdefs.h >>conftest.$ac_ext 5936cat >>conftest.$ac_ext <<_ACEOF 5937/* end confdefs.h. */ 5938$ac_includes_default 5939typedef uint32_t ac__type_new_; 5940int 5941main () 5942{ 5943if ((ac__type_new_ *) 0) 5944 return 0; 5945if (sizeof (ac__type_new_)) 5946 return 0; 5947 ; 5948 return 0; 5949} 5950_ACEOF 5951rm -f conftest.$ac_objext 5952if { (ac_try="$ac_compile" 5953case "(($ac_try" in 5954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5955 *) ac_try_echo=$ac_try;; 5956esac 5957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5958 (eval "$ac_compile") 2>conftest.er1 5959 ac_status=$? 5960 grep -v '^ *+' conftest.er1 >conftest.err 5961 rm -f conftest.er1 5962 cat conftest.err >&5 5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5964 (exit $ac_status); } && { 5965 test -z "$ac_c_werror_flag" || 5966 test ! -s conftest.err 5967 } && test -s conftest.$ac_objext; then 5968 ac_cv_type_uint32_t=yes 5969else 5970 echo "$as_me: failed program was:" >&5 5971sed 's/^/| /' conftest.$ac_ext >&5 5972 5973 ac_cv_type_uint32_t=no 5974fi 5975 5976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5977fi 5978{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 5979echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; } 5980if test $ac_cv_type_uint32_t = yes; then 5981 : 5982else 5983 5984 { echo "$as_me:$LINENO: checking for u_int32_t" >&5 5985echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; } 5986if test "${ac_cv_type_u_int32_t+set}" = set; then 5987 echo $ECHO_N "(cached) $ECHO_C" >&6 5988else 5989 cat >conftest.$ac_ext <<_ACEOF 5990/* confdefs.h. */ 5991_ACEOF 5992cat confdefs.h >>conftest.$ac_ext 5993cat >>conftest.$ac_ext <<_ACEOF 5994/* end confdefs.h. */ 5995$ac_includes_default 5996typedef u_int32_t ac__type_new_; 5997int 5998main () 5999{ 6000if ((ac__type_new_ *) 0) 6001 return 0; 6002if (sizeof (ac__type_new_)) 6003 return 0; 6004 ; 6005 return 0; 6006} 6007_ACEOF 6008rm -f conftest.$ac_objext 6009if { (ac_try="$ac_compile" 6010case "(($ac_try" in 6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6012 *) ac_try_echo=$ac_try;; 6013esac 6014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6015 (eval "$ac_compile") 2>conftest.er1 6016 ac_status=$? 6017 grep -v '^ *+' conftest.er1 >conftest.err 6018 rm -f conftest.er1 6019 cat conftest.err >&5 6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6021 (exit $ac_status); } && { 6022 test -z "$ac_c_werror_flag" || 6023 test ! -s conftest.err 6024 } && test -s conftest.$ac_objext; then 6025 ac_cv_type_u_int32_t=yes 6026else 6027 echo "$as_me: failed program was:" >&5 6028sed 's/^/| /' conftest.$ac_ext >&5 6029 6030 ac_cv_type_u_int32_t=no 6031fi 6032 6033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6034fi 6035{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 6036echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; } 6037if test $ac_cv_type_u_int32_t = yes; then 6038 6039cat >>confdefs.h <<\_ACEOF 6040#define uint32_t u_int32_t 6041_ACEOF 6042 6043else 6044 { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint32_t" >&5 6045echo "$as_me: error: cannot find a suitable type for uint32_t" >&2;} 6046 { (exit 1); exit 1; }; } 6047fi 6048 6049 6050fi 6051 6052 { echo "$as_me:$LINENO: checking for u_int32_t" >&5 6053echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; } 6054if test "${ac_cv_type_u_int32_t+set}" = set; then 6055 echo $ECHO_N "(cached) $ECHO_C" >&6 6056else 6057 cat >conftest.$ac_ext <<_ACEOF 6058/* confdefs.h. */ 6059_ACEOF 6060cat confdefs.h >>conftest.$ac_ext 6061cat >>conftest.$ac_ext <<_ACEOF 6062/* end confdefs.h. */ 6063$ac_includes_default 6064typedef u_int32_t ac__type_new_; 6065int 6066main () 6067{ 6068if ((ac__type_new_ *) 0) 6069 return 0; 6070if (sizeof (ac__type_new_)) 6071 return 0; 6072 ; 6073 return 0; 6074} 6075_ACEOF 6076rm -f conftest.$ac_objext 6077if { (ac_try="$ac_compile" 6078case "(($ac_try" in 6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6080 *) ac_try_echo=$ac_try;; 6081esac 6082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6083 (eval "$ac_compile") 2>conftest.er1 6084 ac_status=$? 6085 grep -v '^ *+' conftest.er1 >conftest.err 6086 rm -f conftest.er1 6087 cat conftest.err >&5 6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6089 (exit $ac_status); } && { 6090 test -z "$ac_c_werror_flag" || 6091 test ! -s conftest.err 6092 } && test -s conftest.$ac_objext; then 6093 ac_cv_type_u_int32_t=yes 6094else 6095 echo "$as_me: failed program was:" >&5 6096sed 's/^/| /' conftest.$ac_ext >&5 6097 6098 ac_cv_type_u_int32_t=no 6099fi 6100 6101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6102fi 6103{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 6104echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; } 6105if test $ac_cv_type_u_int32_t = yes; then 6106 : 6107else 6108 6109 { echo "$as_me:$LINENO: checking for uint32_t" >&5 6110echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } 6111if test "${ac_cv_type_uint32_t+set}" = set; then 6112 echo $ECHO_N "(cached) $ECHO_C" >&6 6113else 6114 cat >conftest.$ac_ext <<_ACEOF 6115/* confdefs.h. */ 6116_ACEOF 6117cat confdefs.h >>conftest.$ac_ext 6118cat >>conftest.$ac_ext <<_ACEOF 6119/* end confdefs.h. */ 6120$ac_includes_default 6121typedef uint32_t ac__type_new_; 6122int 6123main () 6124{ 6125if ((ac__type_new_ *) 0) 6126 return 0; 6127if (sizeof (ac__type_new_)) 6128 return 0; 6129 ; 6130 return 0; 6131} 6132_ACEOF 6133rm -f conftest.$ac_objext 6134if { (ac_try="$ac_compile" 6135case "(($ac_try" in 6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6137 *) ac_try_echo=$ac_try;; 6138esac 6139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6140 (eval "$ac_compile") 2>conftest.er1 6141 ac_status=$? 6142 grep -v '^ *+' conftest.er1 >conftest.err 6143 rm -f conftest.er1 6144 cat conftest.err >&5 6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6146 (exit $ac_status); } && { 6147 test -z "$ac_c_werror_flag" || 6148 test ! -s conftest.err 6149 } && test -s conftest.$ac_objext; then 6150 ac_cv_type_uint32_t=yes 6151else 6152 echo "$as_me: failed program was:" >&5 6153sed 's/^/| /' conftest.$ac_ext >&5 6154 6155 ac_cv_type_uint32_t=no 6156fi 6157 6158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6159fi 6160{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 6161echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; } 6162if test $ac_cv_type_uint32_t = yes; then 6163 6164cat >>confdefs.h <<\_ACEOF 6165#define u_int32_t uint32_t 6166_ACEOF 6167 6168else 6169 { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int32_t" >&5 6170echo "$as_me: error: cannot find a suitable type for u_int32_t" >&2;} 6171 { (exit 1); exit 1; }; } 6172fi 6173 6174 6175fi 6176 6177 6178 6179 { echo "$as_me:$LINENO: checking for uint64_t" >&5 6180echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 6181if test "${ac_cv_type_uint64_t+set}" = set; then 6182 echo $ECHO_N "(cached) $ECHO_C" >&6 6183else 6184 cat >conftest.$ac_ext <<_ACEOF 6185/* confdefs.h. */ 6186_ACEOF 6187cat confdefs.h >>conftest.$ac_ext 6188cat >>conftest.$ac_ext <<_ACEOF 6189/* end confdefs.h. */ 6190$ac_includes_default 6191typedef uint64_t ac__type_new_; 6192int 6193main () 6194{ 6195if ((ac__type_new_ *) 0) 6196 return 0; 6197if (sizeof (ac__type_new_)) 6198 return 0; 6199 ; 6200 return 0; 6201} 6202_ACEOF 6203rm -f conftest.$ac_objext 6204if { (ac_try="$ac_compile" 6205case "(($ac_try" in 6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6207 *) ac_try_echo=$ac_try;; 6208esac 6209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6210 (eval "$ac_compile") 2>conftest.er1 6211 ac_status=$? 6212 grep -v '^ *+' conftest.er1 >conftest.err 6213 rm -f conftest.er1 6214 cat conftest.err >&5 6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6216 (exit $ac_status); } && { 6217 test -z "$ac_c_werror_flag" || 6218 test ! -s conftest.err 6219 } && test -s conftest.$ac_objext; then 6220 ac_cv_type_uint64_t=yes 6221else 6222 echo "$as_me: failed program was:" >&5 6223sed 's/^/| /' conftest.$ac_ext >&5 6224 6225 ac_cv_type_uint64_t=no 6226fi 6227 6228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6229fi 6230{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 6231echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 6232if test $ac_cv_type_uint64_t = yes; then 6233 : 6234else 6235 6236 { echo "$as_me:$LINENO: checking for u_int64_t" >&5 6237echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 6238if test "${ac_cv_type_u_int64_t+set}" = set; then 6239 echo $ECHO_N "(cached) $ECHO_C" >&6 6240else 6241 cat >conftest.$ac_ext <<_ACEOF 6242/* confdefs.h. */ 6243_ACEOF 6244cat confdefs.h >>conftest.$ac_ext 6245cat >>conftest.$ac_ext <<_ACEOF 6246/* end confdefs.h. */ 6247$ac_includes_default 6248typedef u_int64_t ac__type_new_; 6249int 6250main () 6251{ 6252if ((ac__type_new_ *) 0) 6253 return 0; 6254if (sizeof (ac__type_new_)) 6255 return 0; 6256 ; 6257 return 0; 6258} 6259_ACEOF 6260rm -f conftest.$ac_objext 6261if { (ac_try="$ac_compile" 6262case "(($ac_try" in 6263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6264 *) ac_try_echo=$ac_try;; 6265esac 6266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6267 (eval "$ac_compile") 2>conftest.er1 6268 ac_status=$? 6269 grep -v '^ *+' conftest.er1 >conftest.err 6270 rm -f conftest.er1 6271 cat conftest.err >&5 6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6273 (exit $ac_status); } && { 6274 test -z "$ac_c_werror_flag" || 6275 test ! -s conftest.err 6276 } && test -s conftest.$ac_objext; then 6277 ac_cv_type_u_int64_t=yes 6278else 6279 echo "$as_me: failed program was:" >&5 6280sed 's/^/| /' conftest.$ac_ext >&5 6281 6282 ac_cv_type_u_int64_t=no 6283fi 6284 6285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6286fi 6287{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 6288echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 6289if test $ac_cv_type_u_int64_t = yes; then 6290 6291cat >>confdefs.h <<\_ACEOF 6292#define uint64_t u_int64_t 6293_ACEOF 6294 6295else 6296 { { echo "$as_me:$LINENO: error: cannot find a suitable type for uint64_t" >&5 6297echo "$as_me: error: cannot find a suitable type for uint64_t" >&2;} 6298 { (exit 1); exit 1; }; } 6299fi 6300 6301 6302fi 6303 6304 { echo "$as_me:$LINENO: checking for u_int64_t" >&5 6305echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 6306if test "${ac_cv_type_u_int64_t+set}" = set; then 6307 echo $ECHO_N "(cached) $ECHO_C" >&6 6308else 6309 cat >conftest.$ac_ext <<_ACEOF 6310/* confdefs.h. */ 6311_ACEOF 6312cat confdefs.h >>conftest.$ac_ext 6313cat >>conftest.$ac_ext <<_ACEOF 6314/* end confdefs.h. */ 6315$ac_includes_default 6316typedef u_int64_t ac__type_new_; 6317int 6318main () 6319{ 6320if ((ac__type_new_ *) 0) 6321 return 0; 6322if (sizeof (ac__type_new_)) 6323 return 0; 6324 ; 6325 return 0; 6326} 6327_ACEOF 6328rm -f conftest.$ac_objext 6329if { (ac_try="$ac_compile" 6330case "(($ac_try" in 6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6332 *) ac_try_echo=$ac_try;; 6333esac 6334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6335 (eval "$ac_compile") 2>conftest.er1 6336 ac_status=$? 6337 grep -v '^ *+' conftest.er1 >conftest.err 6338 rm -f conftest.er1 6339 cat conftest.err >&5 6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6341 (exit $ac_status); } && { 6342 test -z "$ac_c_werror_flag" || 6343 test ! -s conftest.err 6344 } && test -s conftest.$ac_objext; then 6345 ac_cv_type_u_int64_t=yes 6346else 6347 echo "$as_me: failed program was:" >&5 6348sed 's/^/| /' conftest.$ac_ext >&5 6349 6350 ac_cv_type_u_int64_t=no 6351fi 6352 6353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6354fi 6355{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 6356echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 6357if test $ac_cv_type_u_int64_t = yes; then 6358 : 6359else 6360 6361 { echo "$as_me:$LINENO: checking for uint64_t" >&5 6362echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 6363if test "${ac_cv_type_uint64_t+set}" = set; then 6364 echo $ECHO_N "(cached) $ECHO_C" >&6 6365else 6366 cat >conftest.$ac_ext <<_ACEOF 6367/* confdefs.h. */ 6368_ACEOF 6369cat confdefs.h >>conftest.$ac_ext 6370cat >>conftest.$ac_ext <<_ACEOF 6371/* end confdefs.h. */ 6372$ac_includes_default 6373typedef uint64_t ac__type_new_; 6374int 6375main () 6376{ 6377if ((ac__type_new_ *) 0) 6378 return 0; 6379if (sizeof (ac__type_new_)) 6380 return 0; 6381 ; 6382 return 0; 6383} 6384_ACEOF 6385rm -f conftest.$ac_objext 6386if { (ac_try="$ac_compile" 6387case "(($ac_try" in 6388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6389 *) ac_try_echo=$ac_try;; 6390esac 6391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6392 (eval "$ac_compile") 2>conftest.er1 6393 ac_status=$? 6394 grep -v '^ *+' conftest.er1 >conftest.err 6395 rm -f conftest.er1 6396 cat conftest.err >&5 6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6398 (exit $ac_status); } && { 6399 test -z "$ac_c_werror_flag" || 6400 test ! -s conftest.err 6401 } && test -s conftest.$ac_objext; then 6402 ac_cv_type_uint64_t=yes 6403else 6404 echo "$as_me: failed program was:" >&5 6405sed 's/^/| /' conftest.$ac_ext >&5 6406 6407 ac_cv_type_uint64_t=no 6408fi 6409 6410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6411fi 6412{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 6413echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 6414if test $ac_cv_type_uint64_t = yes; then 6415 6416cat >>confdefs.h <<\_ACEOF 6417#define u_int64_t uint64_t 6418_ACEOF 6419 6420else 6421 { { echo "$as_me:$LINENO: error: cannot find a suitable type for u_int64_t" >&5 6422echo "$as_me: error: cannot find a suitable type for u_int64_t" >&2;} 6423 { (exit 1); exit 1; }; } 6424fi 6425 6426 6427fi 6428 6429 6430 6431# Struct members. 6432{ echo "$as_me:$LINENO: checking for DIR.dd_fd" >&5 6433echo $ECHO_N "checking for DIR.dd_fd... $ECHO_C" >&6; } 6434if test "${ac_cv_member_DIR_dd_fd+set}" = set; then 6435 echo $ECHO_N "(cached) $ECHO_C" >&6 6436else 6437 cat >conftest.$ac_ext <<_ACEOF 6438/* confdefs.h. */ 6439_ACEOF 6440cat confdefs.h >>conftest.$ac_ext 6441cat >>conftest.$ac_ext <<_ACEOF 6442/* end confdefs.h. */ 6443#include <sys/types.h> 6444#include <dirent.h> 6445 6446int 6447main () 6448{ 6449static DIR ac_aggr; 6450if (ac_aggr.dd_fd) 6451return 0; 6452 ; 6453 return 0; 6454} 6455_ACEOF 6456rm -f conftest.$ac_objext 6457if { (ac_try="$ac_compile" 6458case "(($ac_try" in 6459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6460 *) ac_try_echo=$ac_try;; 6461esac 6462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6463 (eval "$ac_compile") 2>conftest.er1 6464 ac_status=$? 6465 grep -v '^ *+' conftest.er1 >conftest.err 6466 rm -f conftest.er1 6467 cat conftest.err >&5 6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6469 (exit $ac_status); } && { 6470 test -z "$ac_c_werror_flag" || 6471 test ! -s conftest.err 6472 } && test -s conftest.$ac_objext; then 6473 ac_cv_member_DIR_dd_fd=yes 6474else 6475 echo "$as_me: failed program was:" >&5 6476sed 's/^/| /' conftest.$ac_ext >&5 6477 6478 cat >conftest.$ac_ext <<_ACEOF 6479/* confdefs.h. */ 6480_ACEOF 6481cat confdefs.h >>conftest.$ac_ext 6482cat >>conftest.$ac_ext <<_ACEOF 6483/* end confdefs.h. */ 6484#include <sys/types.h> 6485#include <dirent.h> 6486 6487int 6488main () 6489{ 6490static DIR ac_aggr; 6491if (sizeof ac_aggr.dd_fd) 6492return 0; 6493 ; 6494 return 0; 6495} 6496_ACEOF 6497rm -f conftest.$ac_objext 6498if { (ac_try="$ac_compile" 6499case "(($ac_try" in 6500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6501 *) ac_try_echo=$ac_try;; 6502esac 6503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6504 (eval "$ac_compile") 2>conftest.er1 6505 ac_status=$? 6506 grep -v '^ *+' conftest.er1 >conftest.err 6507 rm -f conftest.er1 6508 cat conftest.err >&5 6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6510 (exit $ac_status); } && { 6511 test -z "$ac_c_werror_flag" || 6512 test ! -s conftest.err 6513 } && test -s conftest.$ac_objext; then 6514 ac_cv_member_DIR_dd_fd=yes 6515else 6516 echo "$as_me: failed program was:" >&5 6517sed 's/^/| /' conftest.$ac_ext >&5 6518 6519 ac_cv_member_DIR_dd_fd=no 6520fi 6521 6522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6523fi 6524 6525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6526fi 6527{ echo "$as_me:$LINENO: result: $ac_cv_member_DIR_dd_fd" >&5 6528echo "${ECHO_T}$ac_cv_member_DIR_dd_fd" >&6; } 6529if test $ac_cv_member_DIR_dd_fd = yes; then 6530 6531cat >>confdefs.h <<_ACEOF 6532#define HAVE_DIR_DD_FD 1 6533_ACEOF 6534 6535 6536fi 6537{ echo "$as_me:$LINENO: checking for DIR.__dd_fd" >&5 6538echo $ECHO_N "checking for DIR.__dd_fd... $ECHO_C" >&6; } 6539if test "${ac_cv_member_DIR___dd_fd+set}" = set; then 6540 echo $ECHO_N "(cached) $ECHO_C" >&6 6541else 6542 cat >conftest.$ac_ext <<_ACEOF 6543/* confdefs.h. */ 6544_ACEOF 6545cat confdefs.h >>conftest.$ac_ext 6546cat >>conftest.$ac_ext <<_ACEOF 6547/* end confdefs.h. */ 6548#include <sys/types.h> 6549#include <dirent.h> 6550 6551int 6552main () 6553{ 6554static DIR ac_aggr; 6555if (ac_aggr.__dd_fd) 6556return 0; 6557 ; 6558 return 0; 6559} 6560_ACEOF 6561rm -f conftest.$ac_objext 6562if { (ac_try="$ac_compile" 6563case "(($ac_try" in 6564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6565 *) ac_try_echo=$ac_try;; 6566esac 6567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6568 (eval "$ac_compile") 2>conftest.er1 6569 ac_status=$? 6570 grep -v '^ *+' conftest.er1 >conftest.err 6571 rm -f conftest.er1 6572 cat conftest.err >&5 6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6574 (exit $ac_status); } && { 6575 test -z "$ac_c_werror_flag" || 6576 test ! -s conftest.err 6577 } && test -s conftest.$ac_objext; then 6578 ac_cv_member_DIR___dd_fd=yes 6579else 6580 echo "$as_me: failed program was:" >&5 6581sed 's/^/| /' conftest.$ac_ext >&5 6582 6583 cat >conftest.$ac_ext <<_ACEOF 6584/* confdefs.h. */ 6585_ACEOF 6586cat confdefs.h >>conftest.$ac_ext 6587cat >>conftest.$ac_ext <<_ACEOF 6588/* end confdefs.h. */ 6589#include <sys/types.h> 6590#include <dirent.h> 6591 6592int 6593main () 6594{ 6595static DIR ac_aggr; 6596if (sizeof ac_aggr.__dd_fd) 6597return 0; 6598 ; 6599 return 0; 6600} 6601_ACEOF 6602rm -f conftest.$ac_objext 6603if { (ac_try="$ac_compile" 6604case "(($ac_try" in 6605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6606 *) ac_try_echo=$ac_try;; 6607esac 6608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6609 (eval "$ac_compile") 2>conftest.er1 6610 ac_status=$? 6611 grep -v '^ *+' conftest.er1 >conftest.err 6612 rm -f conftest.er1 6613 cat conftest.err >&5 6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6615 (exit $ac_status); } && { 6616 test -z "$ac_c_werror_flag" || 6617 test ! -s conftest.err 6618 } && test -s conftest.$ac_objext; then 6619 ac_cv_member_DIR___dd_fd=yes 6620else 6621 echo "$as_me: failed program was:" >&5 6622sed 's/^/| /' conftest.$ac_ext >&5 6623 6624 ac_cv_member_DIR___dd_fd=no 6625fi 6626 6627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6628fi 6629 6630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6631fi 6632{ echo "$as_me:$LINENO: result: $ac_cv_member_DIR___dd_fd" >&5 6633echo "${ECHO_T}$ac_cv_member_DIR___dd_fd" >&6; } 6634if test $ac_cv_member_DIR___dd_fd = yes; then 6635 6636cat >>confdefs.h <<_ACEOF 6637#define HAVE_DIR___DD_FD 1 6638_ACEOF 6639 6640 6641fi 6642{ echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5 6643echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6; } 6644if test "${ac_cv_member_struct_dirent_d_namlen+set}" = set; then 6645 echo $ECHO_N "(cached) $ECHO_C" >&6 6646else 6647 cat >conftest.$ac_ext <<_ACEOF 6648/* confdefs.h. */ 6649_ACEOF 6650cat confdefs.h >>conftest.$ac_ext 6651cat >>conftest.$ac_ext <<_ACEOF 6652/* end confdefs.h. */ 6653#include <sys/types.h> 6654#include <dirent.h> 6655 6656int 6657main () 6658{ 6659static struct dirent ac_aggr; 6660if (ac_aggr.d_namlen) 6661return 0; 6662 ; 6663 return 0; 6664} 6665_ACEOF 6666rm -f conftest.$ac_objext 6667if { (ac_try="$ac_compile" 6668case "(($ac_try" in 6669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6670 *) ac_try_echo=$ac_try;; 6671esac 6672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6673 (eval "$ac_compile") 2>conftest.er1 6674 ac_status=$? 6675 grep -v '^ *+' conftest.er1 >conftest.err 6676 rm -f conftest.er1 6677 cat conftest.err >&5 6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6679 (exit $ac_status); } && { 6680 test -z "$ac_c_werror_flag" || 6681 test ! -s conftest.err 6682 } && test -s conftest.$ac_objext; then 6683 ac_cv_member_struct_dirent_d_namlen=yes 6684else 6685 echo "$as_me: failed program was:" >&5 6686sed 's/^/| /' conftest.$ac_ext >&5 6687 6688 cat >conftest.$ac_ext <<_ACEOF 6689/* confdefs.h. */ 6690_ACEOF 6691cat confdefs.h >>conftest.$ac_ext 6692cat >>conftest.$ac_ext <<_ACEOF 6693/* end confdefs.h. */ 6694#include <sys/types.h> 6695#include <dirent.h> 6696 6697int 6698main () 6699{ 6700static struct dirent ac_aggr; 6701if (sizeof ac_aggr.d_namlen) 6702return 0; 6703 ; 6704 return 0; 6705} 6706_ACEOF 6707rm -f conftest.$ac_objext 6708if { (ac_try="$ac_compile" 6709case "(($ac_try" in 6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6711 *) ac_try_echo=$ac_try;; 6712esac 6713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6714 (eval "$ac_compile") 2>conftest.er1 6715 ac_status=$? 6716 grep -v '^ *+' conftest.er1 >conftest.err 6717 rm -f conftest.er1 6718 cat conftest.err >&5 6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6720 (exit $ac_status); } && { 6721 test -z "$ac_c_werror_flag" || 6722 test ! -s conftest.err 6723 } && test -s conftest.$ac_objext; then 6724 ac_cv_member_struct_dirent_d_namlen=yes 6725else 6726 echo "$as_me: failed program was:" >&5 6727sed 's/^/| /' conftest.$ac_ext >&5 6728 6729 ac_cv_member_struct_dirent_d_namlen=no 6730fi 6731 6732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6733fi 6734 6735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6736fi 6737{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_namlen" >&5 6738echo "${ECHO_T}$ac_cv_member_struct_dirent_d_namlen" >&6; } 6739if test $ac_cv_member_struct_dirent_d_namlen = yes; then 6740 6741cat >>confdefs.h <<_ACEOF 6742#define HAVE_STRUCT_DIRENT_D_NAMLEN 1 6743_ACEOF 6744 6745 6746fi 6747 6748{ echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 6749echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; } 6750if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then 6751 echo $ECHO_N "(cached) $ECHO_C" >&6 6752else 6753 cat >conftest.$ac_ext <<_ACEOF 6754/* confdefs.h. */ 6755_ACEOF 6756cat confdefs.h >>conftest.$ac_ext 6757cat >>conftest.$ac_ext <<_ACEOF 6758/* end confdefs.h. */ 6759#include <sys/stat.h> 6760 6761int 6762main () 6763{ 6764static struct stat ac_aggr; 6765if (ac_aggr.st_flags) 6766return 0; 6767 ; 6768 return 0; 6769} 6770_ACEOF 6771rm -f conftest.$ac_objext 6772if { (ac_try="$ac_compile" 6773case "(($ac_try" in 6774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6775 *) ac_try_echo=$ac_try;; 6776esac 6777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6778 (eval "$ac_compile") 2>conftest.er1 6779 ac_status=$? 6780 grep -v '^ *+' conftest.er1 >conftest.err 6781 rm -f conftest.er1 6782 cat conftest.err >&5 6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6784 (exit $ac_status); } && { 6785 test -z "$ac_c_werror_flag" || 6786 test ! -s conftest.err 6787 } && test -s conftest.$ac_objext; then 6788 ac_cv_member_struct_stat_st_flags=yes 6789else 6790 echo "$as_me: failed program was:" >&5 6791sed 's/^/| /' conftest.$ac_ext >&5 6792 6793 cat >conftest.$ac_ext <<_ACEOF 6794/* confdefs.h. */ 6795_ACEOF 6796cat confdefs.h >>conftest.$ac_ext 6797cat >>conftest.$ac_ext <<_ACEOF 6798/* end confdefs.h. */ 6799#include <sys/stat.h> 6800 6801int 6802main () 6803{ 6804static struct stat ac_aggr; 6805if (sizeof ac_aggr.st_flags) 6806return 0; 6807 ; 6808 return 0; 6809} 6810_ACEOF 6811rm -f conftest.$ac_objext 6812if { (ac_try="$ac_compile" 6813case "(($ac_try" in 6814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6815 *) ac_try_echo=$ac_try;; 6816esac 6817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6818 (eval "$ac_compile") 2>conftest.er1 6819 ac_status=$? 6820 grep -v '^ *+' conftest.er1 >conftest.err 6821 rm -f conftest.er1 6822 cat conftest.err >&5 6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6824 (exit $ac_status); } && { 6825 test -z "$ac_c_werror_flag" || 6826 test ! -s conftest.err 6827 } && test -s conftest.$ac_objext; then 6828 ac_cv_member_struct_stat_st_flags=yes 6829else 6830 echo "$as_me: failed program was:" >&5 6831sed 's/^/| /' conftest.$ac_ext >&5 6832 6833 ac_cv_member_struct_stat_st_flags=no 6834fi 6835 6836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6837fi 6838 6839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6840fi 6841{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 6842echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; } 6843if test $ac_cv_member_struct_stat_st_flags = yes; then 6844 6845cat >>confdefs.h <<_ACEOF 6846#define HAVE_STRUCT_STAT_ST_FLAGS 1 6847_ACEOF 6848 6849 6850fi 6851{ echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 6852echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; } 6853if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then 6854 echo $ECHO_N "(cached) $ECHO_C" >&6 6855else 6856 cat >conftest.$ac_ext <<_ACEOF 6857/* confdefs.h. */ 6858_ACEOF 6859cat confdefs.h >>conftest.$ac_ext 6860cat >>conftest.$ac_ext <<_ACEOF 6861/* end confdefs.h. */ 6862#include <sys/stat.h> 6863 6864int 6865main () 6866{ 6867static struct stat ac_aggr; 6868if (ac_aggr.st_gen) 6869return 0; 6870 ; 6871 return 0; 6872} 6873_ACEOF 6874rm -f conftest.$ac_objext 6875if { (ac_try="$ac_compile" 6876case "(($ac_try" in 6877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6878 *) ac_try_echo=$ac_try;; 6879esac 6880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6881 (eval "$ac_compile") 2>conftest.er1 6882 ac_status=$? 6883 grep -v '^ *+' conftest.er1 >conftest.err 6884 rm -f conftest.er1 6885 cat conftest.err >&5 6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6887 (exit $ac_status); } && { 6888 test -z "$ac_c_werror_flag" || 6889 test ! -s conftest.err 6890 } && test -s conftest.$ac_objext; then 6891 ac_cv_member_struct_stat_st_gen=yes 6892else 6893 echo "$as_me: failed program was:" >&5 6894sed 's/^/| /' conftest.$ac_ext >&5 6895 6896 cat >conftest.$ac_ext <<_ACEOF 6897/* confdefs.h. */ 6898_ACEOF 6899cat confdefs.h >>conftest.$ac_ext 6900cat >>conftest.$ac_ext <<_ACEOF 6901/* end confdefs.h. */ 6902#include <sys/stat.h> 6903 6904int 6905main () 6906{ 6907static struct stat ac_aggr; 6908if (sizeof ac_aggr.st_gen) 6909return 0; 6910 ; 6911 return 0; 6912} 6913_ACEOF 6914rm -f conftest.$ac_objext 6915if { (ac_try="$ac_compile" 6916case "(($ac_try" in 6917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6918 *) ac_try_echo=$ac_try;; 6919esac 6920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6921 (eval "$ac_compile") 2>conftest.er1 6922 ac_status=$? 6923 grep -v '^ *+' conftest.er1 >conftest.err 6924 rm -f conftest.er1 6925 cat conftest.err >&5 6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6927 (exit $ac_status); } && { 6928 test -z "$ac_c_werror_flag" || 6929 test ! -s conftest.err 6930 } && test -s conftest.$ac_objext; then 6931 ac_cv_member_struct_stat_st_gen=yes 6932else 6933 echo "$as_me: failed program was:" >&5 6934sed 's/^/| /' conftest.$ac_ext >&5 6935 6936 ac_cv_member_struct_stat_st_gen=no 6937fi 6938 6939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6940fi 6941 6942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6943fi 6944{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 6945echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; } 6946if test $ac_cv_member_struct_stat_st_gen = yes; then 6947 6948cat >>confdefs.h <<_ACEOF 6949#define HAVE_STRUCT_STAT_ST_GEN 1 6950_ACEOF 6951 6952 6953fi 6954{ echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 6955echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; } 6956if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then 6957 echo $ECHO_N "(cached) $ECHO_C" >&6 6958else 6959 cat >conftest.$ac_ext <<_ACEOF 6960/* confdefs.h. */ 6961_ACEOF 6962cat confdefs.h >>conftest.$ac_ext 6963cat >>conftest.$ac_ext <<_ACEOF 6964/* end confdefs.h. */ 6965#include <sys/stat.h> 6966 6967int 6968main () 6969{ 6970static struct stat ac_aggr; 6971if (ac_aggr.st_birthtime) 6972return 0; 6973 ; 6974 return 0; 6975} 6976_ACEOF 6977rm -f conftest.$ac_objext 6978if { (ac_try="$ac_compile" 6979case "(($ac_try" in 6980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6981 *) ac_try_echo=$ac_try;; 6982esac 6983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6984 (eval "$ac_compile") 2>conftest.er1 6985 ac_status=$? 6986 grep -v '^ *+' conftest.er1 >conftest.err 6987 rm -f conftest.er1 6988 cat conftest.err >&5 6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6990 (exit $ac_status); } && { 6991 test -z "$ac_c_werror_flag" || 6992 test ! -s conftest.err 6993 } && test -s conftest.$ac_objext; then 6994 ac_cv_member_struct_stat_st_birthtime=yes 6995else 6996 echo "$as_me: failed program was:" >&5 6997sed 's/^/| /' conftest.$ac_ext >&5 6998 6999 cat >conftest.$ac_ext <<_ACEOF 7000/* confdefs.h. */ 7001_ACEOF 7002cat confdefs.h >>conftest.$ac_ext 7003cat >>conftest.$ac_ext <<_ACEOF 7004/* end confdefs.h. */ 7005#include <sys/stat.h> 7006 7007int 7008main () 7009{ 7010static struct stat ac_aggr; 7011if (sizeof ac_aggr.st_birthtime) 7012return 0; 7013 ; 7014 return 0; 7015} 7016_ACEOF 7017rm -f conftest.$ac_objext 7018if { (ac_try="$ac_compile" 7019case "(($ac_try" in 7020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7021 *) ac_try_echo=$ac_try;; 7022esac 7023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7024 (eval "$ac_compile") 2>conftest.er1 7025 ac_status=$? 7026 grep -v '^ *+' conftest.er1 >conftest.err 7027 rm -f conftest.er1 7028 cat conftest.err >&5 7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7030 (exit $ac_status); } && { 7031 test -z "$ac_c_werror_flag" || 7032 test ! -s conftest.err 7033 } && test -s conftest.$ac_objext; then 7034 ac_cv_member_struct_stat_st_birthtime=yes 7035else 7036 echo "$as_me: failed program was:" >&5 7037sed 's/^/| /' conftest.$ac_ext >&5 7038 7039 ac_cv_member_struct_stat_st_birthtime=no 7040fi 7041 7042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7043fi 7044 7045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7046fi 7047{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 7048echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; } 7049if test $ac_cv_member_struct_stat_st_birthtime = yes; then 7050 7051cat >>confdefs.h <<_ACEOF 7052#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 7053_ACEOF 7054 7055 7056fi 7057{ echo "$as_me:$LINENO: checking for struct stat.st_birthtimensec" >&5 7058echo $ECHO_N "checking for struct stat.st_birthtimensec... $ECHO_C" >&6; } 7059if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then 7060 echo $ECHO_N "(cached) $ECHO_C" >&6 7061else 7062 cat >conftest.$ac_ext <<_ACEOF 7063/* confdefs.h. */ 7064_ACEOF 7065cat confdefs.h >>conftest.$ac_ext 7066cat >>conftest.$ac_ext <<_ACEOF 7067/* end confdefs.h. */ 7068#include <sys/stat.h> 7069 7070int 7071main () 7072{ 7073static struct stat ac_aggr; 7074if (ac_aggr.st_birthtimensec) 7075return 0; 7076 ; 7077 return 0; 7078} 7079_ACEOF 7080rm -f conftest.$ac_objext 7081if { (ac_try="$ac_compile" 7082case "(($ac_try" in 7083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7084 *) ac_try_echo=$ac_try;; 7085esac 7086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7087 (eval "$ac_compile") 2>conftest.er1 7088 ac_status=$? 7089 grep -v '^ *+' conftest.er1 >conftest.err 7090 rm -f conftest.er1 7091 cat conftest.err >&5 7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7093 (exit $ac_status); } && { 7094 test -z "$ac_c_werror_flag" || 7095 test ! -s conftest.err 7096 } && test -s conftest.$ac_objext; then 7097 ac_cv_member_struct_stat_st_birthtimensec=yes 7098else 7099 echo "$as_me: failed program was:" >&5 7100sed 's/^/| /' conftest.$ac_ext >&5 7101 7102 cat >conftest.$ac_ext <<_ACEOF 7103/* confdefs.h. */ 7104_ACEOF 7105cat confdefs.h >>conftest.$ac_ext 7106cat >>conftest.$ac_ext <<_ACEOF 7107/* end confdefs.h. */ 7108#include <sys/stat.h> 7109 7110int 7111main () 7112{ 7113static struct stat ac_aggr; 7114if (sizeof ac_aggr.st_birthtimensec) 7115return 0; 7116 ; 7117 return 0; 7118} 7119_ACEOF 7120rm -f conftest.$ac_objext 7121if { (ac_try="$ac_compile" 7122case "(($ac_try" in 7123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7124 *) ac_try_echo=$ac_try;; 7125esac 7126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7127 (eval "$ac_compile") 2>conftest.er1 7128 ac_status=$? 7129 grep -v '^ *+' conftest.er1 >conftest.err 7130 rm -f conftest.er1 7131 cat conftest.err >&5 7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7133 (exit $ac_status); } && { 7134 test -z "$ac_c_werror_flag" || 7135 test ! -s conftest.err 7136 } && test -s conftest.$ac_objext; then 7137 ac_cv_member_struct_stat_st_birthtimensec=yes 7138else 7139 echo "$as_me: failed program was:" >&5 7140sed 's/^/| /' conftest.$ac_ext >&5 7141 7142 ac_cv_member_struct_stat_st_birthtimensec=no 7143fi 7144 7145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7146fi 7147 7148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7149fi 7150{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5 7151echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimensec" >&6; } 7152if test $ac_cv_member_struct_stat_st_birthtimensec = yes; then 7153 7154cat >>confdefs.h <<_ACEOF 7155#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1 7156_ACEOF 7157 7158 7159fi 7160{ echo "$as_me:$LINENO: checking for struct stat.st_atim" >&5 7161echo $ECHO_N "checking for struct stat.st_atim... $ECHO_C" >&6; } 7162if test "${ac_cv_member_struct_stat_st_atim+set}" = set; then 7163 echo $ECHO_N "(cached) $ECHO_C" >&6 7164else 7165 cat >conftest.$ac_ext <<_ACEOF 7166/* confdefs.h. */ 7167_ACEOF 7168cat confdefs.h >>conftest.$ac_ext 7169cat >>conftest.$ac_ext <<_ACEOF 7170/* end confdefs.h. */ 7171#include <sys/stat.h> 7172 7173int 7174main () 7175{ 7176static struct stat ac_aggr; 7177if (ac_aggr.st_atim) 7178return 0; 7179 ; 7180 return 0; 7181} 7182_ACEOF 7183rm -f conftest.$ac_objext 7184if { (ac_try="$ac_compile" 7185case "(($ac_try" in 7186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7187 *) ac_try_echo=$ac_try;; 7188esac 7189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7190 (eval "$ac_compile") 2>conftest.er1 7191 ac_status=$? 7192 grep -v '^ *+' conftest.er1 >conftest.err 7193 rm -f conftest.er1 7194 cat conftest.err >&5 7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7196 (exit $ac_status); } && { 7197 test -z "$ac_c_werror_flag" || 7198 test ! -s conftest.err 7199 } && test -s conftest.$ac_objext; then 7200 ac_cv_member_struct_stat_st_atim=yes 7201else 7202 echo "$as_me: failed program was:" >&5 7203sed 's/^/| /' conftest.$ac_ext >&5 7204 7205 cat >conftest.$ac_ext <<_ACEOF 7206/* confdefs.h. */ 7207_ACEOF 7208cat confdefs.h >>conftest.$ac_ext 7209cat >>conftest.$ac_ext <<_ACEOF 7210/* end confdefs.h. */ 7211#include <sys/stat.h> 7212 7213int 7214main () 7215{ 7216static struct stat ac_aggr; 7217if (sizeof ac_aggr.st_atim) 7218return 0; 7219 ; 7220 return 0; 7221} 7222_ACEOF 7223rm -f conftest.$ac_objext 7224if { (ac_try="$ac_compile" 7225case "(($ac_try" in 7226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7227 *) ac_try_echo=$ac_try;; 7228esac 7229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7230 (eval "$ac_compile") 2>conftest.er1 7231 ac_status=$? 7232 grep -v '^ *+' conftest.er1 >conftest.err 7233 rm -f conftest.er1 7234 cat conftest.err >&5 7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7236 (exit $ac_status); } && { 7237 test -z "$ac_c_werror_flag" || 7238 test ! -s conftest.err 7239 } && test -s conftest.$ac_objext; then 7240 ac_cv_member_struct_stat_st_atim=yes 7241else 7242 echo "$as_me: failed program was:" >&5 7243sed 's/^/| /' conftest.$ac_ext >&5 7244 7245 ac_cv_member_struct_stat_st_atim=no 7246fi 7247 7248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7249fi 7250 7251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7252fi 7253{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim" >&5 7254echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim" >&6; } 7255if test $ac_cv_member_struct_stat_st_atim = yes; then 7256 7257cat >>confdefs.h <<_ACEOF 7258#define HAVE_STRUCT_STAT_ST_ATIM 1 7259_ACEOF 7260 7261 7262fi 7263{ echo "$as_me:$LINENO: checking for struct stat.st_mtimensec" >&5 7264echo $ECHO_N "checking for struct stat.st_mtimensec... $ECHO_C" >&6; } 7265if test "${ac_cv_member_struct_stat_st_mtimensec+set}" = set; then 7266 echo $ECHO_N "(cached) $ECHO_C" >&6 7267else 7268 cat >conftest.$ac_ext <<_ACEOF 7269/* confdefs.h. */ 7270_ACEOF 7271cat confdefs.h >>conftest.$ac_ext 7272cat >>conftest.$ac_ext <<_ACEOF 7273/* end confdefs.h. */ 7274#include <sys/stat.h> 7275 7276int 7277main () 7278{ 7279static struct stat ac_aggr; 7280if (ac_aggr.st_mtimensec) 7281return 0; 7282 ; 7283 return 0; 7284} 7285_ACEOF 7286rm -f conftest.$ac_objext 7287if { (ac_try="$ac_compile" 7288case "(($ac_try" in 7289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7290 *) ac_try_echo=$ac_try;; 7291esac 7292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7293 (eval "$ac_compile") 2>conftest.er1 7294 ac_status=$? 7295 grep -v '^ *+' conftest.er1 >conftest.err 7296 rm -f conftest.er1 7297 cat conftest.err >&5 7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7299 (exit $ac_status); } && { 7300 test -z "$ac_c_werror_flag" || 7301 test ! -s conftest.err 7302 } && test -s conftest.$ac_objext; then 7303 ac_cv_member_struct_stat_st_mtimensec=yes 7304else 7305 echo "$as_me: failed program was:" >&5 7306sed 's/^/| /' conftest.$ac_ext >&5 7307 7308 cat >conftest.$ac_ext <<_ACEOF 7309/* confdefs.h. */ 7310_ACEOF 7311cat confdefs.h >>conftest.$ac_ext 7312cat >>conftest.$ac_ext <<_ACEOF 7313/* end confdefs.h. */ 7314#include <sys/stat.h> 7315 7316int 7317main () 7318{ 7319static struct stat ac_aggr; 7320if (sizeof ac_aggr.st_mtimensec) 7321return 0; 7322 ; 7323 return 0; 7324} 7325_ACEOF 7326rm -f conftest.$ac_objext 7327if { (ac_try="$ac_compile" 7328case "(($ac_try" in 7329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7330 *) ac_try_echo=$ac_try;; 7331esac 7332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7333 (eval "$ac_compile") 2>conftest.er1 7334 ac_status=$? 7335 grep -v '^ *+' conftest.er1 >conftest.err 7336 rm -f conftest.er1 7337 cat conftest.err >&5 7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7339 (exit $ac_status); } && { 7340 test -z "$ac_c_werror_flag" || 7341 test ! -s conftest.err 7342 } && test -s conftest.$ac_objext; then 7343 ac_cv_member_struct_stat_st_mtimensec=yes 7344else 7345 echo "$as_me: failed program was:" >&5 7346sed 's/^/| /' conftest.$ac_ext >&5 7347 7348 ac_cv_member_struct_stat_st_mtimensec=no 7349fi 7350 7351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7352fi 7353 7354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7355fi 7356{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimensec" >&5 7357echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimensec" >&6; } 7358if test $ac_cv_member_struct_stat_st_mtimensec = yes; then 7359 7360cat >>confdefs.h <<_ACEOF 7361#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1 7362_ACEOF 7363 7364 7365fi 7366 7367{ echo "$as_me:$LINENO: checking for struct statvfs.f_iosize" >&5 7368echo $ECHO_N "checking for struct statvfs.f_iosize... $ECHO_C" >&6; } 7369if test "${ac_cv_member_struct_statvfs_f_iosize+set}" = set; then 7370 echo $ECHO_N "(cached) $ECHO_C" >&6 7371else 7372 cat >conftest.$ac_ext <<_ACEOF 7373/* confdefs.h. */ 7374_ACEOF 7375cat confdefs.h >>conftest.$ac_ext 7376cat >>conftest.$ac_ext <<_ACEOF 7377/* end confdefs.h. */ 7378#include <sys/statvfs.h> 7379 7380int 7381main () 7382{ 7383static struct statvfs ac_aggr; 7384if (ac_aggr.f_iosize) 7385return 0; 7386 ; 7387 return 0; 7388} 7389_ACEOF 7390rm -f conftest.$ac_objext 7391if { (ac_try="$ac_compile" 7392case "(($ac_try" in 7393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7394 *) ac_try_echo=$ac_try;; 7395esac 7396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7397 (eval "$ac_compile") 2>conftest.er1 7398 ac_status=$? 7399 grep -v '^ *+' conftest.er1 >conftest.err 7400 rm -f conftest.er1 7401 cat conftest.err >&5 7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7403 (exit $ac_status); } && { 7404 test -z "$ac_c_werror_flag" || 7405 test ! -s conftest.err 7406 } && test -s conftest.$ac_objext; then 7407 ac_cv_member_struct_statvfs_f_iosize=yes 7408else 7409 echo "$as_me: failed program was:" >&5 7410sed 's/^/| /' conftest.$ac_ext >&5 7411 7412 cat >conftest.$ac_ext <<_ACEOF 7413/* confdefs.h. */ 7414_ACEOF 7415cat confdefs.h >>conftest.$ac_ext 7416cat >>conftest.$ac_ext <<_ACEOF 7417/* end confdefs.h. */ 7418#include <sys/statvfs.h> 7419 7420int 7421main () 7422{ 7423static struct statvfs ac_aggr; 7424if (sizeof ac_aggr.f_iosize) 7425return 0; 7426 ; 7427 return 0; 7428} 7429_ACEOF 7430rm -f conftest.$ac_objext 7431if { (ac_try="$ac_compile" 7432case "(($ac_try" in 7433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7434 *) ac_try_echo=$ac_try;; 7435esac 7436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7437 (eval "$ac_compile") 2>conftest.er1 7438 ac_status=$? 7439 grep -v '^ *+' conftest.er1 >conftest.err 7440 rm -f conftest.er1 7441 cat conftest.err >&5 7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7443 (exit $ac_status); } && { 7444 test -z "$ac_c_werror_flag" || 7445 test ! -s conftest.err 7446 } && test -s conftest.$ac_objext; then 7447 ac_cv_member_struct_statvfs_f_iosize=yes 7448else 7449 echo "$as_me: failed program was:" >&5 7450sed 's/^/| /' conftest.$ac_ext >&5 7451 7452 ac_cv_member_struct_statvfs_f_iosize=no 7453fi 7454 7455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7456fi 7457 7458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7459fi 7460{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_iosize" >&5 7461echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_iosize" >&6; } 7462if test $ac_cv_member_struct_statvfs_f_iosize = yes; then 7463 7464cat >>confdefs.h <<_ACEOF 7465#define HAVE_STRUCT_STATVFS_F_IOSIZE 1 7466_ACEOF 7467 7468 7469fi 7470 7471 7472# Global variable decls. 7473{ echo "$as_me:$LINENO: checking whether optind is declared" >&5 7474echo $ECHO_N "checking whether optind is declared... $ECHO_C" >&6; } 7475if test "${ac_cv_have_decl_optind+set}" = set; then 7476 echo $ECHO_N "(cached) $ECHO_C" >&6 7477else 7478 cat >conftest.$ac_ext <<_ACEOF 7479/* confdefs.h. */ 7480_ACEOF 7481cat confdefs.h >>conftest.$ac_ext 7482cat >>conftest.$ac_ext <<_ACEOF 7483/* end confdefs.h. */ 7484 7485#include <stdio.h> 7486#include <stdlib.h> 7487#include <unistd.h> 7488 7489 7490int 7491main () 7492{ 7493#ifndef optind 7494 (void) optind; 7495#endif 7496 7497 ; 7498 return 0; 7499} 7500_ACEOF 7501rm -f conftest.$ac_objext 7502if { (ac_try="$ac_compile" 7503case "(($ac_try" in 7504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7505 *) ac_try_echo=$ac_try;; 7506esac 7507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7508 (eval "$ac_compile") 2>conftest.er1 7509 ac_status=$? 7510 grep -v '^ *+' conftest.er1 >conftest.err 7511 rm -f conftest.er1 7512 cat conftest.err >&5 7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7514 (exit $ac_status); } && { 7515 test -z "$ac_c_werror_flag" || 7516 test ! -s conftest.err 7517 } && test -s conftest.$ac_objext; then 7518 ac_cv_have_decl_optind=yes 7519else 7520 echo "$as_me: failed program was:" >&5 7521sed 's/^/| /' conftest.$ac_ext >&5 7522 7523 ac_cv_have_decl_optind=no 7524fi 7525 7526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7527fi 7528{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_optind" >&5 7529echo "${ECHO_T}$ac_cv_have_decl_optind" >&6; } 7530if test $ac_cv_have_decl_optind = yes; then 7531 7532cat >>confdefs.h <<_ACEOF 7533#define HAVE_DECL_OPTIND 1 7534_ACEOF 7535 7536 7537else 7538 cat >>confdefs.h <<_ACEOF 7539#define HAVE_DECL_OPTIND 0 7540_ACEOF 7541 7542 7543fi 7544{ echo "$as_me:$LINENO: checking whether optreset is declared" >&5 7545echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; } 7546if test "${ac_cv_have_decl_optreset+set}" = set; then 7547 echo $ECHO_N "(cached) $ECHO_C" >&6 7548else 7549 cat >conftest.$ac_ext <<_ACEOF 7550/* confdefs.h. */ 7551_ACEOF 7552cat confdefs.h >>conftest.$ac_ext 7553cat >>conftest.$ac_ext <<_ACEOF 7554/* end confdefs.h. */ 7555 7556#include <stdio.h> 7557#include <stdlib.h> 7558#include <unistd.h> 7559 7560 7561int 7562main () 7563{ 7564#ifndef optreset 7565 (void) optreset; 7566#endif 7567 7568 ; 7569 return 0; 7570} 7571_ACEOF 7572rm -f conftest.$ac_objext 7573if { (ac_try="$ac_compile" 7574case "(($ac_try" in 7575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7576 *) ac_try_echo=$ac_try;; 7577esac 7578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7579 (eval "$ac_compile") 2>conftest.er1 7580 ac_status=$? 7581 grep -v '^ *+' conftest.er1 >conftest.err 7582 rm -f conftest.er1 7583 cat conftest.err >&5 7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7585 (exit $ac_status); } && { 7586 test -z "$ac_c_werror_flag" || 7587 test ! -s conftest.err 7588 } && test -s conftest.$ac_objext; then 7589 ac_cv_have_decl_optreset=yes 7590else 7591 echo "$as_me: failed program was:" >&5 7592sed 's/^/| /' conftest.$ac_ext >&5 7593 7594 ac_cv_have_decl_optreset=no 7595fi 7596 7597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7598fi 7599{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5 7600echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; } 7601if test $ac_cv_have_decl_optreset = yes; then 7602 7603cat >>confdefs.h <<_ACEOF 7604#define HAVE_DECL_OPTRESET 1 7605_ACEOF 7606 7607 7608else 7609 cat >>confdefs.h <<_ACEOF 7610#define HAVE_DECL_OPTRESET 0 7611_ACEOF 7612 7613 7614fi 7615 7616 7617{ echo "$as_me:$LINENO: checking whether sys_signame is declared" >&5 7618echo $ECHO_N "checking whether sys_signame is declared... $ECHO_C" >&6; } 7619if test "${ac_cv_have_decl_sys_signame+set}" = set; then 7620 echo $ECHO_N "(cached) $ECHO_C" >&6 7621else 7622 cat >conftest.$ac_ext <<_ACEOF 7623/* confdefs.h. */ 7624_ACEOF 7625cat confdefs.h >>conftest.$ac_ext 7626cat >>conftest.$ac_ext <<_ACEOF 7627/* end confdefs.h. */ 7628#include <signal.h> 7629 7630int 7631main () 7632{ 7633#ifndef sys_signame 7634 (void) sys_signame; 7635#endif 7636 7637 ; 7638 return 0; 7639} 7640_ACEOF 7641rm -f conftest.$ac_objext 7642if { (ac_try="$ac_compile" 7643case "(($ac_try" in 7644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7645 *) ac_try_echo=$ac_try;; 7646esac 7647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7648 (eval "$ac_compile") 2>conftest.er1 7649 ac_status=$? 7650 grep -v '^ *+' conftest.er1 >conftest.err 7651 rm -f conftest.er1 7652 cat conftest.err >&5 7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7654 (exit $ac_status); } && { 7655 test -z "$ac_c_werror_flag" || 7656 test ! -s conftest.err 7657 } && test -s conftest.$ac_objext; then 7658 ac_cv_have_decl_sys_signame=yes 7659else 7660 echo "$as_me: failed program was:" >&5 7661sed 's/^/| /' conftest.$ac_ext >&5 7662 7663 ac_cv_have_decl_sys_signame=no 7664fi 7665 7666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7667fi 7668{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_signame" >&5 7669echo "${ECHO_T}$ac_cv_have_decl_sys_signame" >&6; } 7670if test $ac_cv_have_decl_sys_signame = yes; then 7671 7672cat >>confdefs.h <<_ACEOF 7673#define HAVE_DECL_SYS_SIGNAME 1 7674_ACEOF 7675 7676 7677else 7678 cat >>confdefs.h <<_ACEOF 7679#define HAVE_DECL_SYS_SIGNAME 0 7680_ACEOF 7681 7682 7683fi 7684 7685 7686 7687# Library functions (where a .h check isn't enough). 7688# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 7689# for constant arguments. Useless! 7690{ echo "$as_me:$LINENO: checking for working alloca.h" >&5 7691echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } 7692if test "${ac_cv_working_alloca_h+set}" = set; then 7693 echo $ECHO_N "(cached) $ECHO_C" >&6 7694else 7695 cat >conftest.$ac_ext <<_ACEOF 7696/* confdefs.h. */ 7697_ACEOF 7698cat confdefs.h >>conftest.$ac_ext 7699cat >>conftest.$ac_ext <<_ACEOF 7700/* end confdefs.h. */ 7701#include <alloca.h> 7702int 7703main () 7704{ 7705char *p = (char *) alloca (2 * sizeof (int)); 7706 if (p) return 0; 7707 ; 7708 return 0; 7709} 7710_ACEOF 7711rm -f conftest.$ac_objext conftest$ac_exeext 7712if { (ac_try="$ac_link" 7713case "(($ac_try" in 7714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7715 *) ac_try_echo=$ac_try;; 7716esac 7717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7718 (eval "$ac_link") 2>conftest.er1 7719 ac_status=$? 7720 grep -v '^ *+' conftest.er1 >conftest.err 7721 rm -f conftest.er1 7722 cat conftest.err >&5 7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7724 (exit $ac_status); } && { 7725 test -z "$ac_c_werror_flag" || 7726 test ! -s conftest.err 7727 } && test -s conftest$ac_exeext && 7728 $as_test_x conftest$ac_exeext; then 7729 ac_cv_working_alloca_h=yes 7730else 7731 echo "$as_me: failed program was:" >&5 7732sed 's/^/| /' conftest.$ac_ext >&5 7733 7734 ac_cv_working_alloca_h=no 7735fi 7736 7737rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7738 conftest$ac_exeext conftest.$ac_ext 7739fi 7740{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 7741echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } 7742if test $ac_cv_working_alloca_h = yes; then 7743 7744cat >>confdefs.h <<\_ACEOF 7745#define HAVE_ALLOCA_H 1 7746_ACEOF 7747 7748fi 7749 7750{ echo "$as_me:$LINENO: checking for alloca" >&5 7751echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } 7752if test "${ac_cv_func_alloca_works+set}" = set; then 7753 echo $ECHO_N "(cached) $ECHO_C" >&6 7754else 7755 cat >conftest.$ac_ext <<_ACEOF 7756/* confdefs.h. */ 7757_ACEOF 7758cat confdefs.h >>conftest.$ac_ext 7759cat >>conftest.$ac_ext <<_ACEOF 7760/* end confdefs.h. */ 7761#ifdef __GNUC__ 7762# define alloca __builtin_alloca 7763#else 7764# ifdef _MSC_VER 7765# include <malloc.h> 7766# define alloca _alloca 7767# else 7768# ifdef HAVE_ALLOCA_H 7769# include <alloca.h> 7770# else 7771# ifdef _AIX 7772 #pragma alloca 7773# else 7774# ifndef alloca /* predefined by HP cc +Olibcalls */ 7775char *alloca (); 7776# endif 7777# endif 7778# endif 7779# endif 7780#endif 7781 7782int 7783main () 7784{ 7785char *p = (char *) alloca (1); 7786 if (p) return 0; 7787 ; 7788 return 0; 7789} 7790_ACEOF 7791rm -f conftest.$ac_objext conftest$ac_exeext 7792if { (ac_try="$ac_link" 7793case "(($ac_try" in 7794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7795 *) ac_try_echo=$ac_try;; 7796esac 7797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7798 (eval "$ac_link") 2>conftest.er1 7799 ac_status=$? 7800 grep -v '^ *+' conftest.er1 >conftest.err 7801 rm -f conftest.er1 7802 cat conftest.err >&5 7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7804 (exit $ac_status); } && { 7805 test -z "$ac_c_werror_flag" || 7806 test ! -s conftest.err 7807 } && test -s conftest$ac_exeext && 7808 $as_test_x conftest$ac_exeext; then 7809 ac_cv_func_alloca_works=yes 7810else 7811 echo "$as_me: failed program was:" >&5 7812sed 's/^/| /' conftest.$ac_ext >&5 7813 7814 ac_cv_func_alloca_works=no 7815fi 7816 7817rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7818 conftest$ac_exeext conftest.$ac_ext 7819fi 7820{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 7821echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } 7822 7823if test $ac_cv_func_alloca_works = yes; then 7824 7825cat >>confdefs.h <<\_ACEOF 7826#define HAVE_ALLOCA 1 7827_ACEOF 7828 7829else 7830 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 7831# that cause trouble. Some versions do not even contain alloca or 7832# contain a buggy version. If you still want to use their alloca, 7833# use ar to extract alloca.o from them instead of compiling alloca.c. 7834 7835ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 7836 7837cat >>confdefs.h <<\_ACEOF 7838#define C_ALLOCA 1 7839_ACEOF 7840 7841 7842{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 7843echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } 7844if test "${ac_cv_os_cray+set}" = set; then 7845 echo $ECHO_N "(cached) $ECHO_C" >&6 7846else 7847 cat >conftest.$ac_ext <<_ACEOF 7848/* confdefs.h. */ 7849_ACEOF 7850cat confdefs.h >>conftest.$ac_ext 7851cat >>conftest.$ac_ext <<_ACEOF 7852/* end confdefs.h. */ 7853#if defined CRAY && ! defined CRAY2 7854webecray 7855#else 7856wenotbecray 7857#endif 7858 7859_ACEOF 7860if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7861 $EGREP "webecray" >/dev/null 2>&1; then 7862 ac_cv_os_cray=yes 7863else 7864 ac_cv_os_cray=no 7865fi 7866rm -f conftest* 7867 7868fi 7869{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 7870echo "${ECHO_T}$ac_cv_os_cray" >&6; } 7871if test $ac_cv_os_cray = yes; then 7872 for ac_func in _getb67 GETB67 getb67; do 7873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7874{ echo "$as_me:$LINENO: checking for $ac_func" >&5 7875echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 7876if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 7877 echo $ECHO_N "(cached) $ECHO_C" >&6 7878else 7879 cat >conftest.$ac_ext <<_ACEOF 7880/* confdefs.h. */ 7881_ACEOF 7882cat confdefs.h >>conftest.$ac_ext 7883cat >>conftest.$ac_ext <<_ACEOF 7884/* end confdefs.h. */ 7885/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7886 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7887#define $ac_func innocuous_$ac_func 7888 7889/* System header to define __stub macros and hopefully few prototypes, 7890 which can conflict with char $ac_func (); below. 7891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7892 <limits.h> exists even on freestanding compilers. */ 7893 7894#ifdef __STDC__ 7895# include <limits.h> 7896#else 7897# include <assert.h> 7898#endif 7899 7900#undef $ac_func 7901 7902/* Override any GCC internal prototype to avoid an error. 7903 Use char because int might match the return type of a GCC 7904 builtin and then its argument prototype would still apply. */ 7905#ifdef __cplusplus 7906extern "C" 7907#endif 7908char $ac_func (); 7909/* The GNU C library defines this for functions which it implements 7910 to always fail with ENOSYS. Some functions are actually named 7911 something starting with __ and the normal name is an alias. */ 7912#if defined __stub_$ac_func || defined __stub___$ac_func 7913choke me 7914#endif 7915 7916int 7917main () 7918{ 7919return $ac_func (); 7920 ; 7921 return 0; 7922} 7923_ACEOF 7924rm -f conftest.$ac_objext conftest$ac_exeext 7925if { (ac_try="$ac_link" 7926case "(($ac_try" in 7927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7928 *) ac_try_echo=$ac_try;; 7929esac 7930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7931 (eval "$ac_link") 2>conftest.er1 7932 ac_status=$? 7933 grep -v '^ *+' conftest.er1 >conftest.err 7934 rm -f conftest.er1 7935 cat conftest.err >&5 7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7937 (exit $ac_status); } && { 7938 test -z "$ac_c_werror_flag" || 7939 test ! -s conftest.err 7940 } && test -s conftest$ac_exeext && 7941 $as_test_x conftest$ac_exeext; then 7942 eval "$as_ac_var=yes" 7943else 7944 echo "$as_me: failed program was:" >&5 7945sed 's/^/| /' conftest.$ac_ext >&5 7946 7947 eval "$as_ac_var=no" 7948fi 7949 7950rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7951 conftest$ac_exeext conftest.$ac_ext 7952fi 7953ac_res=`eval echo '${'$as_ac_var'}'` 7954 { echo "$as_me:$LINENO: result: $ac_res" >&5 7955echo "${ECHO_T}$ac_res" >&6; } 7956if test `eval echo '${'$as_ac_var'}'` = yes; then 7957 7958cat >>confdefs.h <<_ACEOF 7959#define CRAY_STACKSEG_END $ac_func 7960_ACEOF 7961 7962 break 7963fi 7964 7965 done 7966fi 7967 7968{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 7969echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } 7970if test "${ac_cv_c_stack_direction+set}" = set; then 7971 echo $ECHO_N "(cached) $ECHO_C" >&6 7972else 7973 if test "$cross_compiling" = yes; then 7974 ac_cv_c_stack_direction=0 7975else 7976 cat >conftest.$ac_ext <<_ACEOF 7977/* confdefs.h. */ 7978_ACEOF 7979cat confdefs.h >>conftest.$ac_ext 7980cat >>conftest.$ac_ext <<_ACEOF 7981/* end confdefs.h. */ 7982$ac_includes_default 7983int 7984find_stack_direction () 7985{ 7986 static char *addr = 0; 7987 auto char dummy; 7988 if (addr == 0) 7989 { 7990 addr = &dummy; 7991 return find_stack_direction (); 7992 } 7993 else 7994 return (&dummy > addr) ? 1 : -1; 7995} 7996 7997int 7998main () 7999{ 8000 return find_stack_direction () < 0; 8001} 8002_ACEOF 8003rm -f conftest$ac_exeext 8004if { (ac_try="$ac_link" 8005case "(($ac_try" in 8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8007 *) ac_try_echo=$ac_try;; 8008esac 8009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8010 (eval "$ac_link") 2>&5 8011 ac_status=$? 8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8014 { (case "(($ac_try" in 8015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8016 *) ac_try_echo=$ac_try;; 8017esac 8018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8019 (eval "$ac_try") 2>&5 8020 ac_status=$? 8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8022 (exit $ac_status); }; }; then 8023 ac_cv_c_stack_direction=1 8024else 8025 echo "$as_me: program exited with status $ac_status" >&5 8026echo "$as_me: failed program was:" >&5 8027sed 's/^/| /' conftest.$ac_ext >&5 8028 8029( exit $ac_status ) 8030ac_cv_c_stack_direction=-1 8031fi 8032rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8033fi 8034 8035 8036fi 8037{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 8038echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } 8039 8040cat >>confdefs.h <<_ACEOF 8041#define STACK_DIRECTION $ac_cv_c_stack_direction 8042_ACEOF 8043 8044 8045fi 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097for ac_func in atoll asprintf asnprintf basename devname dirfd dirname \ 8098 esetfunc fgetln flock fparseln futimes getopt getopt_long \ 8099 group_from_gid gid_from_group \ 8100 heapsort isblank issetugid lchflags lchmod lchown lutimes mkstemp \ 8101 mkdtemp poll pread putc_unlocked pwcache_userdb pwcache_groupdb pwrite \ 8102 raise_default_signal random setenv \ 8103 setgroupent setprogname setpassent snprintf strlcat strlcpy strmode \ 8104 strndup strsep strsuftoll strtoll \ 8105 user_from_uid uid_from_user vasprintf vasnprintf vsnprintf 8106do 8107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8108{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8110if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8111 echo $ECHO_N "(cached) $ECHO_C" >&6 8112else 8113 cat >conftest.$ac_ext <<_ACEOF 8114/* confdefs.h. */ 8115_ACEOF 8116cat confdefs.h >>conftest.$ac_ext 8117cat >>conftest.$ac_ext <<_ACEOF 8118/* end confdefs.h. */ 8119/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8120 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8121#define $ac_func innocuous_$ac_func 8122 8123/* System header to define __stub macros and hopefully few prototypes, 8124 which can conflict with char $ac_func (); below. 8125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8126 <limits.h> exists even on freestanding compilers. */ 8127 8128#ifdef __STDC__ 8129# include <limits.h> 8130#else 8131# include <assert.h> 8132#endif 8133 8134#undef $ac_func 8135 8136/* Override any GCC internal prototype to avoid an error. 8137 Use char because int might match the return type of a GCC 8138 builtin and then its argument prototype would still apply. */ 8139#ifdef __cplusplus 8140extern "C" 8141#endif 8142char $ac_func (); 8143/* The GNU C library defines this for functions which it implements 8144 to always fail with ENOSYS. Some functions are actually named 8145 something starting with __ and the normal name is an alias. */ 8146#if defined __stub_$ac_func || defined __stub___$ac_func 8147choke me 8148#endif 8149 8150int 8151main () 8152{ 8153return $ac_func (); 8154 ; 8155 return 0; 8156} 8157_ACEOF 8158rm -f conftest.$ac_objext conftest$ac_exeext 8159if { (ac_try="$ac_link" 8160case "(($ac_try" in 8161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8162 *) ac_try_echo=$ac_try;; 8163esac 8164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8165 (eval "$ac_link") 2>conftest.er1 8166 ac_status=$? 8167 grep -v '^ *+' conftest.er1 >conftest.err 8168 rm -f conftest.er1 8169 cat conftest.err >&5 8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8171 (exit $ac_status); } && { 8172 test -z "$ac_c_werror_flag" || 8173 test ! -s conftest.err 8174 } && test -s conftest$ac_exeext && 8175 $as_test_x conftest$ac_exeext; then 8176 eval "$as_ac_var=yes" 8177else 8178 echo "$as_me: failed program was:" >&5 8179sed 's/^/| /' conftest.$ac_ext >&5 8180 8181 eval "$as_ac_var=no" 8182fi 8183 8184rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8185 conftest$ac_exeext conftest.$ac_ext 8186fi 8187ac_res=`eval echo '${'$as_ac_var'}'` 8188 { echo "$as_me:$LINENO: result: $ac_res" >&5 8189echo "${ECHO_T}$ac_res" >&6; } 8190if test `eval echo '${'$as_ac_var'}'` = yes; then 8191 cat >>confdefs.h <<_ACEOF 8192#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8193_ACEOF 8194 8195fi 8196done 8197 8198 8199{ echo "$as_me:$LINENO: checking whether user_from_uid is declared" >&5 8200echo $ECHO_N "checking whether user_from_uid is declared... $ECHO_C" >&6; } 8201if test "${ac_cv_have_decl_user_from_uid+set}" = set; then 8202 echo $ECHO_N "(cached) $ECHO_C" >&6 8203else 8204 cat >conftest.$ac_ext <<_ACEOF 8205/* confdefs.h. */ 8206_ACEOF 8207cat confdefs.h >>conftest.$ac_ext 8208cat >>conftest.$ac_ext <<_ACEOF 8209/* end confdefs.h. */ 8210 8211#include <pwd.h> 8212 8213 8214int 8215main () 8216{ 8217#ifndef user_from_uid 8218 (void) user_from_uid; 8219#endif 8220 8221 ; 8222 return 0; 8223} 8224_ACEOF 8225rm -f conftest.$ac_objext 8226if { (ac_try="$ac_compile" 8227case "(($ac_try" in 8228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8229 *) ac_try_echo=$ac_try;; 8230esac 8231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8232 (eval "$ac_compile") 2>conftest.er1 8233 ac_status=$? 8234 grep -v '^ *+' conftest.er1 >conftest.err 8235 rm -f conftest.er1 8236 cat conftest.err >&5 8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8238 (exit $ac_status); } && { 8239 test -z "$ac_c_werror_flag" || 8240 test ! -s conftest.err 8241 } && test -s conftest.$ac_objext; then 8242 ac_cv_have_decl_user_from_uid=yes 8243else 8244 echo "$as_me: failed program was:" >&5 8245sed 's/^/| /' conftest.$ac_ext >&5 8246 8247 ac_cv_have_decl_user_from_uid=no 8248fi 8249 8250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8251fi 8252{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_user_from_uid" >&5 8253echo "${ECHO_T}$ac_cv_have_decl_user_from_uid" >&6; } 8254if test $ac_cv_have_decl_user_from_uid = yes; then 8255 8256cat >>confdefs.h <<_ACEOF 8257#define HAVE_DECL_USER_FROM_UID 1 8258_ACEOF 8259 8260 8261else 8262 cat >>confdefs.h <<_ACEOF 8263#define HAVE_DECL_USER_FROM_UID 0 8264_ACEOF 8265 8266 8267fi 8268{ echo "$as_me:$LINENO: checking whether uid_from_user is declared" >&5 8269echo $ECHO_N "checking whether uid_from_user is declared... $ECHO_C" >&6; } 8270if test "${ac_cv_have_decl_uid_from_user+set}" = set; then 8271 echo $ECHO_N "(cached) $ECHO_C" >&6 8272else 8273 cat >conftest.$ac_ext <<_ACEOF 8274/* confdefs.h. */ 8275_ACEOF 8276cat confdefs.h >>conftest.$ac_ext 8277cat >>conftest.$ac_ext <<_ACEOF 8278/* end confdefs.h. */ 8279 8280#include <pwd.h> 8281 8282 8283int 8284main () 8285{ 8286#ifndef uid_from_user 8287 (void) uid_from_user; 8288#endif 8289 8290 ; 8291 return 0; 8292} 8293_ACEOF 8294rm -f conftest.$ac_objext 8295if { (ac_try="$ac_compile" 8296case "(($ac_try" in 8297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8298 *) ac_try_echo=$ac_try;; 8299esac 8300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8301 (eval "$ac_compile") 2>conftest.er1 8302 ac_status=$? 8303 grep -v '^ *+' conftest.er1 >conftest.err 8304 rm -f conftest.er1 8305 cat conftest.err >&5 8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8307 (exit $ac_status); } && { 8308 test -z "$ac_c_werror_flag" || 8309 test ! -s conftest.err 8310 } && test -s conftest.$ac_objext; then 8311 ac_cv_have_decl_uid_from_user=yes 8312else 8313 echo "$as_me: failed program was:" >&5 8314sed 's/^/| /' conftest.$ac_ext >&5 8315 8316 ac_cv_have_decl_uid_from_user=no 8317fi 8318 8319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8320fi 8321{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_uid_from_user" >&5 8322echo "${ECHO_T}$ac_cv_have_decl_uid_from_user" >&6; } 8323if test $ac_cv_have_decl_uid_from_user = yes; then 8324 8325cat >>confdefs.h <<_ACEOF 8326#define HAVE_DECL_UID_FROM_USER 1 8327_ACEOF 8328 8329 8330else 8331 cat >>confdefs.h <<_ACEOF 8332#define HAVE_DECL_UID_FROM_USER 0 8333_ACEOF 8334 8335 8336fi 8337{ echo "$as_me:$LINENO: checking whether pwcache_userdb is declared" >&5 8338echo $ECHO_N "checking whether pwcache_userdb is declared... $ECHO_C" >&6; } 8339if test "${ac_cv_have_decl_pwcache_userdb+set}" = set; then 8340 echo $ECHO_N "(cached) $ECHO_C" >&6 8341else 8342 cat >conftest.$ac_ext <<_ACEOF 8343/* confdefs.h. */ 8344_ACEOF 8345cat confdefs.h >>conftest.$ac_ext 8346cat >>conftest.$ac_ext <<_ACEOF 8347/* end confdefs.h. */ 8348 8349#include <pwd.h> 8350 8351 8352int 8353main () 8354{ 8355#ifndef pwcache_userdb 8356 (void) pwcache_userdb; 8357#endif 8358 8359 ; 8360 return 0; 8361} 8362_ACEOF 8363rm -f conftest.$ac_objext 8364if { (ac_try="$ac_compile" 8365case "(($ac_try" in 8366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8367 *) ac_try_echo=$ac_try;; 8368esac 8369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8370 (eval "$ac_compile") 2>conftest.er1 8371 ac_status=$? 8372 grep -v '^ *+' conftest.er1 >conftest.err 8373 rm -f conftest.er1 8374 cat conftest.err >&5 8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8376 (exit $ac_status); } && { 8377 test -z "$ac_c_werror_flag" || 8378 test ! -s conftest.err 8379 } && test -s conftest.$ac_objext; then 8380 ac_cv_have_decl_pwcache_userdb=yes 8381else 8382 echo "$as_me: failed program was:" >&5 8383sed 's/^/| /' conftest.$ac_ext >&5 8384 8385 ac_cv_have_decl_pwcache_userdb=no 8386fi 8387 8388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8389fi 8390{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_pwcache_userdb" >&5 8391echo "${ECHO_T}$ac_cv_have_decl_pwcache_userdb" >&6; } 8392if test $ac_cv_have_decl_pwcache_userdb = yes; then 8393 8394cat >>confdefs.h <<_ACEOF 8395#define HAVE_DECL_PWCACHE_USERDB 1 8396_ACEOF 8397 8398 8399else 8400 cat >>confdefs.h <<_ACEOF 8401#define HAVE_DECL_PWCACHE_USERDB 0 8402_ACEOF 8403 8404 8405fi 8406 8407 8408{ echo "$as_me:$LINENO: checking whether group_from_gid is declared" >&5 8409echo $ECHO_N "checking whether group_from_gid is declared... $ECHO_C" >&6; } 8410if test "${ac_cv_have_decl_group_from_gid+set}" = set; then 8411 echo $ECHO_N "(cached) $ECHO_C" >&6 8412else 8413 cat >conftest.$ac_ext <<_ACEOF 8414/* confdefs.h. */ 8415_ACEOF 8416cat confdefs.h >>conftest.$ac_ext 8417cat >>conftest.$ac_ext <<_ACEOF 8418/* end confdefs.h. */ 8419 8420#include <grp.h> 8421 8422 8423int 8424main () 8425{ 8426#ifndef group_from_gid 8427 (void) group_from_gid; 8428#endif 8429 8430 ; 8431 return 0; 8432} 8433_ACEOF 8434rm -f conftest.$ac_objext 8435if { (ac_try="$ac_compile" 8436case "(($ac_try" in 8437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8438 *) ac_try_echo=$ac_try;; 8439esac 8440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8441 (eval "$ac_compile") 2>conftest.er1 8442 ac_status=$? 8443 grep -v '^ *+' conftest.er1 >conftest.err 8444 rm -f conftest.er1 8445 cat conftest.err >&5 8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8447 (exit $ac_status); } && { 8448 test -z "$ac_c_werror_flag" || 8449 test ! -s conftest.err 8450 } && test -s conftest.$ac_objext; then 8451 ac_cv_have_decl_group_from_gid=yes 8452else 8453 echo "$as_me: failed program was:" >&5 8454sed 's/^/| /' conftest.$ac_ext >&5 8455 8456 ac_cv_have_decl_group_from_gid=no 8457fi 8458 8459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8460fi 8461{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_group_from_gid" >&5 8462echo "${ECHO_T}$ac_cv_have_decl_group_from_gid" >&6; } 8463if test $ac_cv_have_decl_group_from_gid = yes; then 8464 8465cat >>confdefs.h <<_ACEOF 8466#define HAVE_DECL_GROUP_FROM_GID 1 8467_ACEOF 8468 8469 8470else 8471 cat >>confdefs.h <<_ACEOF 8472#define HAVE_DECL_GROUP_FROM_GID 0 8473_ACEOF 8474 8475 8476fi 8477{ echo "$as_me:$LINENO: checking whether gid_from_group is declared" >&5 8478echo $ECHO_N "checking whether gid_from_group is declared... $ECHO_C" >&6; } 8479if test "${ac_cv_have_decl_gid_from_group+set}" = set; then 8480 echo $ECHO_N "(cached) $ECHO_C" >&6 8481else 8482 cat >conftest.$ac_ext <<_ACEOF 8483/* confdefs.h. */ 8484_ACEOF 8485cat confdefs.h >>conftest.$ac_ext 8486cat >>conftest.$ac_ext <<_ACEOF 8487/* end confdefs.h. */ 8488 8489#include <grp.h> 8490 8491 8492int 8493main () 8494{ 8495#ifndef gid_from_group 8496 (void) gid_from_group; 8497#endif 8498 8499 ; 8500 return 0; 8501} 8502_ACEOF 8503rm -f conftest.$ac_objext 8504if { (ac_try="$ac_compile" 8505case "(($ac_try" in 8506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8507 *) ac_try_echo=$ac_try;; 8508esac 8509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8510 (eval "$ac_compile") 2>conftest.er1 8511 ac_status=$? 8512 grep -v '^ *+' conftest.er1 >conftest.err 8513 rm -f conftest.er1 8514 cat conftest.err >&5 8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8516 (exit $ac_status); } && { 8517 test -z "$ac_c_werror_flag" || 8518 test ! -s conftest.err 8519 } && test -s conftest.$ac_objext; then 8520 ac_cv_have_decl_gid_from_group=yes 8521else 8522 echo "$as_me: failed program was:" >&5 8523sed 's/^/| /' conftest.$ac_ext >&5 8524 8525 ac_cv_have_decl_gid_from_group=no 8526fi 8527 8528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8529fi 8530{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_gid_from_group" >&5 8531echo "${ECHO_T}$ac_cv_have_decl_gid_from_group" >&6; } 8532if test $ac_cv_have_decl_gid_from_group = yes; then 8533 8534cat >>confdefs.h <<_ACEOF 8535#define HAVE_DECL_GID_FROM_GROUP 1 8536_ACEOF 8537 8538 8539else 8540 cat >>confdefs.h <<_ACEOF 8541#define HAVE_DECL_GID_FROM_GROUP 0 8542_ACEOF 8543 8544 8545fi 8546{ echo "$as_me:$LINENO: checking whether pwcache_groupdb is declared" >&5 8547echo $ECHO_N "checking whether pwcache_groupdb is declared... $ECHO_C" >&6; } 8548if test "${ac_cv_have_decl_pwcache_groupdb+set}" = set; then 8549 echo $ECHO_N "(cached) $ECHO_C" >&6 8550else 8551 cat >conftest.$ac_ext <<_ACEOF 8552/* confdefs.h. */ 8553_ACEOF 8554cat confdefs.h >>conftest.$ac_ext 8555cat >>conftest.$ac_ext <<_ACEOF 8556/* end confdefs.h. */ 8557 8558#include <grp.h> 8559 8560 8561int 8562main () 8563{ 8564#ifndef pwcache_groupdb 8565 (void) pwcache_groupdb; 8566#endif 8567 8568 ; 8569 return 0; 8570} 8571_ACEOF 8572rm -f conftest.$ac_objext 8573if { (ac_try="$ac_compile" 8574case "(($ac_try" in 8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8576 *) ac_try_echo=$ac_try;; 8577esac 8578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8579 (eval "$ac_compile") 2>conftest.er1 8580 ac_status=$? 8581 grep -v '^ *+' conftest.er1 >conftest.err 8582 rm -f conftest.er1 8583 cat conftest.err >&5 8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8585 (exit $ac_status); } && { 8586 test -z "$ac_c_werror_flag" || 8587 test ! -s conftest.err 8588 } && test -s conftest.$ac_objext; then 8589 ac_cv_have_decl_pwcache_groupdb=yes 8590else 8591 echo "$as_me: failed program was:" >&5 8592sed 's/^/| /' conftest.$ac_ext >&5 8593 8594 ac_cv_have_decl_pwcache_groupdb=no 8595fi 8596 8597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8598fi 8599{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_pwcache_groupdb" >&5 8600echo "${ECHO_T}$ac_cv_have_decl_pwcache_groupdb" >&6; } 8601if test $ac_cv_have_decl_pwcache_groupdb = yes; then 8602 8603cat >>confdefs.h <<_ACEOF 8604#define HAVE_DECL_PWCACHE_GROUPDB 1 8605_ACEOF 8606 8607 8608else 8609 cat >>confdefs.h <<_ACEOF 8610#define HAVE_DECL_PWCACHE_GROUPDB 0 8611_ACEOF 8612 8613 8614fi 8615 8616 8617{ echo "$as_me:$LINENO: checking whether strndup is declared" >&5 8618echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6; } 8619if test "${ac_cv_have_decl_strndup+set}" = set; then 8620 echo $ECHO_N "(cached) $ECHO_C" >&6 8621else 8622 cat >conftest.$ac_ext <<_ACEOF 8623/* confdefs.h. */ 8624_ACEOF 8625cat confdefs.h >>conftest.$ac_ext 8626cat >>conftest.$ac_ext <<_ACEOF 8627/* end confdefs.h. */ 8628#include <string.h> 8629 8630int 8631main () 8632{ 8633#ifndef strndup 8634 (void) strndup; 8635#endif 8636 8637 ; 8638 return 0; 8639} 8640_ACEOF 8641rm -f conftest.$ac_objext 8642if { (ac_try="$ac_compile" 8643case "(($ac_try" in 8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8645 *) ac_try_echo=$ac_try;; 8646esac 8647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8648 (eval "$ac_compile") 2>conftest.er1 8649 ac_status=$? 8650 grep -v '^ *+' conftest.er1 >conftest.err 8651 rm -f conftest.er1 8652 cat conftest.err >&5 8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8654 (exit $ac_status); } && { 8655 test -z "$ac_c_werror_flag" || 8656 test ! -s conftest.err 8657 } && test -s conftest.$ac_objext; then 8658 ac_cv_have_decl_strndup=yes 8659else 8660 echo "$as_me: failed program was:" >&5 8661sed 's/^/| /' conftest.$ac_ext >&5 8662 8663 ac_cv_have_decl_strndup=no 8664fi 8665 8666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8667fi 8668{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5 8669echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6; } 8670if test $ac_cv_have_decl_strndup = yes; then 8671 8672cat >>confdefs.h <<_ACEOF 8673#define HAVE_DECL_STRNDUP 1 8674_ACEOF 8675 8676 8677else 8678 cat >>confdefs.h <<_ACEOF 8679#define HAVE_DECL_STRNDUP 0 8680_ACEOF 8681 8682 8683fi 8684 8685 8686{ echo "$as_me:$LINENO: checking whether strsuftoll is declared" >&5 8687echo $ECHO_N "checking whether strsuftoll is declared... $ECHO_C" >&6; } 8688if test "${ac_cv_have_decl_strsuftoll+set}" = set; then 8689 echo $ECHO_N "(cached) $ECHO_C" >&6 8690else 8691 cat >conftest.$ac_ext <<_ACEOF 8692/* confdefs.h. */ 8693_ACEOF 8694cat confdefs.h >>conftest.$ac_ext 8695cat >>conftest.$ac_ext <<_ACEOF 8696/* end confdefs.h. */ 8697#include <stdlib.h> 8698 8699int 8700main () 8701{ 8702#ifndef strsuftoll 8703 (void) strsuftoll; 8704#endif 8705 8706 ; 8707 return 0; 8708} 8709_ACEOF 8710rm -f conftest.$ac_objext 8711if { (ac_try="$ac_compile" 8712case "(($ac_try" in 8713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8714 *) ac_try_echo=$ac_try;; 8715esac 8716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8717 (eval "$ac_compile") 2>conftest.er1 8718 ac_status=$? 8719 grep -v '^ *+' conftest.er1 >conftest.err 8720 rm -f conftest.er1 8721 cat conftest.err >&5 8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8723 (exit $ac_status); } && { 8724 test -z "$ac_c_werror_flag" || 8725 test ! -s conftest.err 8726 } && test -s conftest.$ac_objext; then 8727 ac_cv_have_decl_strsuftoll=yes 8728else 8729 echo "$as_me: failed program was:" >&5 8730sed 's/^/| /' conftest.$ac_ext >&5 8731 8732 ac_cv_have_decl_strsuftoll=no 8733fi 8734 8735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8736fi 8737{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsuftoll" >&5 8738echo "${ECHO_T}$ac_cv_have_decl_strsuftoll" >&6; } 8739if test $ac_cv_have_decl_strsuftoll = yes; then 8740 8741cat >>confdefs.h <<_ACEOF 8742#define HAVE_DECL_STRSUFTOLL 1 8743_ACEOF 8744 8745 8746else 8747 cat >>confdefs.h <<_ACEOF 8748#define HAVE_DECL_STRSUFTOLL 0 8749_ACEOF 8750 8751 8752fi 8753 8754 8755{ echo "$as_me:$LINENO: checking whether lchflags is declared" >&5 8756echo $ECHO_N "checking whether lchflags is declared... $ECHO_C" >&6; } 8757if test "${ac_cv_have_decl_lchflags+set}" = set; then 8758 echo $ECHO_N "(cached) $ECHO_C" >&6 8759else 8760 cat >conftest.$ac_ext <<_ACEOF 8761/* confdefs.h. */ 8762_ACEOF 8763cat confdefs.h >>conftest.$ac_ext 8764cat >>conftest.$ac_ext <<_ACEOF 8765/* end confdefs.h. */ 8766 8767#include <sys/stat.h> 8768#include <unistd.h> 8769 8770 8771int 8772main () 8773{ 8774#ifndef lchflags 8775 (void) lchflags; 8776#endif 8777 8778 ; 8779 return 0; 8780} 8781_ACEOF 8782rm -f conftest.$ac_objext 8783if { (ac_try="$ac_compile" 8784case "(($ac_try" in 8785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8786 *) ac_try_echo=$ac_try;; 8787esac 8788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8789 (eval "$ac_compile") 2>conftest.er1 8790 ac_status=$? 8791 grep -v '^ *+' conftest.er1 >conftest.err 8792 rm -f conftest.er1 8793 cat conftest.err >&5 8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8795 (exit $ac_status); } && { 8796 test -z "$ac_c_werror_flag" || 8797 test ! -s conftest.err 8798 } && test -s conftest.$ac_objext; then 8799 ac_cv_have_decl_lchflags=yes 8800else 8801 echo "$as_me: failed program was:" >&5 8802sed 's/^/| /' conftest.$ac_ext >&5 8803 8804 ac_cv_have_decl_lchflags=no 8805fi 8806 8807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8808fi 8809{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lchflags" >&5 8810echo "${ECHO_T}$ac_cv_have_decl_lchflags" >&6; } 8811if test $ac_cv_have_decl_lchflags = yes; then 8812 8813cat >>confdefs.h <<_ACEOF 8814#define HAVE_DECL_LCHFLAGS 1 8815_ACEOF 8816 8817 8818else 8819 cat >>confdefs.h <<_ACEOF 8820#define HAVE_DECL_LCHFLAGS 0 8821_ACEOF 8822 8823 8824fi 8825{ echo "$as_me:$LINENO: checking whether lchmod is declared" >&5 8826echo $ECHO_N "checking whether lchmod is declared... $ECHO_C" >&6; } 8827if test "${ac_cv_have_decl_lchmod+set}" = set; then 8828 echo $ECHO_N "(cached) $ECHO_C" >&6 8829else 8830 cat >conftest.$ac_ext <<_ACEOF 8831/* confdefs.h. */ 8832_ACEOF 8833cat confdefs.h >>conftest.$ac_ext 8834cat >>conftest.$ac_ext <<_ACEOF 8835/* end confdefs.h. */ 8836 8837#include <sys/stat.h> 8838#include <unistd.h> 8839 8840 8841int 8842main () 8843{ 8844#ifndef lchmod 8845 (void) lchmod; 8846#endif 8847 8848 ; 8849 return 0; 8850} 8851_ACEOF 8852rm -f conftest.$ac_objext 8853if { (ac_try="$ac_compile" 8854case "(($ac_try" in 8855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8856 *) ac_try_echo=$ac_try;; 8857esac 8858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8859 (eval "$ac_compile") 2>conftest.er1 8860 ac_status=$? 8861 grep -v '^ *+' conftest.er1 >conftest.err 8862 rm -f conftest.er1 8863 cat conftest.err >&5 8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8865 (exit $ac_status); } && { 8866 test -z "$ac_c_werror_flag" || 8867 test ! -s conftest.err 8868 } && test -s conftest.$ac_objext; then 8869 ac_cv_have_decl_lchmod=yes 8870else 8871 echo "$as_me: failed program was:" >&5 8872sed 's/^/| /' conftest.$ac_ext >&5 8873 8874 ac_cv_have_decl_lchmod=no 8875fi 8876 8877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8878fi 8879{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lchmod" >&5 8880echo "${ECHO_T}$ac_cv_have_decl_lchmod" >&6; } 8881if test $ac_cv_have_decl_lchmod = yes; then 8882 8883cat >>confdefs.h <<_ACEOF 8884#define HAVE_DECL_LCHMOD 1 8885_ACEOF 8886 8887 8888else 8889 cat >>confdefs.h <<_ACEOF 8890#define HAVE_DECL_LCHMOD 0 8891_ACEOF 8892 8893 8894fi 8895{ echo "$as_me:$LINENO: checking whether lchown is declared" >&5 8896echo $ECHO_N "checking whether lchown is declared... $ECHO_C" >&6; } 8897if test "${ac_cv_have_decl_lchown+set}" = set; then 8898 echo $ECHO_N "(cached) $ECHO_C" >&6 8899else 8900 cat >conftest.$ac_ext <<_ACEOF 8901/* confdefs.h. */ 8902_ACEOF 8903cat confdefs.h >>conftest.$ac_ext 8904cat >>conftest.$ac_ext <<_ACEOF 8905/* end confdefs.h. */ 8906 8907#include <sys/stat.h> 8908#include <unistd.h> 8909 8910 8911int 8912main () 8913{ 8914#ifndef lchown 8915 (void) lchown; 8916#endif 8917 8918 ; 8919 return 0; 8920} 8921_ACEOF 8922rm -f conftest.$ac_objext 8923if { (ac_try="$ac_compile" 8924case "(($ac_try" in 8925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8926 *) ac_try_echo=$ac_try;; 8927esac 8928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8929 (eval "$ac_compile") 2>conftest.er1 8930 ac_status=$? 8931 grep -v '^ *+' conftest.er1 >conftest.err 8932 rm -f conftest.er1 8933 cat conftest.err >&5 8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8935 (exit $ac_status); } && { 8936 test -z "$ac_c_werror_flag" || 8937 test ! -s conftest.err 8938 } && test -s conftest.$ac_objext; then 8939 ac_cv_have_decl_lchown=yes 8940else 8941 echo "$as_me: failed program was:" >&5 8942sed 's/^/| /' conftest.$ac_ext >&5 8943 8944 ac_cv_have_decl_lchown=no 8945fi 8946 8947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8948fi 8949{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lchown" >&5 8950echo "${ECHO_T}$ac_cv_have_decl_lchown" >&6; } 8951if test $ac_cv_have_decl_lchown = yes; then 8952 8953cat >>confdefs.h <<_ACEOF 8954#define HAVE_DECL_LCHOWN 1 8955_ACEOF 8956 8957 8958else 8959 cat >>confdefs.h <<_ACEOF 8960#define HAVE_DECL_LCHOWN 0 8961_ACEOF 8962 8963 8964fi 8965 8966 8967 8968{ echo "$as_me:$LINENO: checking whether htobe16 is declared" >&5 8969echo $ECHO_N "checking whether htobe16 is declared... $ECHO_C" >&6; } 8970if test "${ac_cv_have_decl_htobe16+set}" = set; then 8971 echo $ECHO_N "(cached) $ECHO_C" >&6 8972else 8973 cat >conftest.$ac_ext <<_ACEOF 8974/* confdefs.h. */ 8975_ACEOF 8976cat confdefs.h >>conftest.$ac_ext 8977cat >>conftest.$ac_ext <<_ACEOF 8978/* end confdefs.h. */ 8979#include <sys/types.h> 8980 8981int 8982main () 8983{ 8984#ifndef htobe16 8985 (void) htobe16; 8986#endif 8987 8988 ; 8989 return 0; 8990} 8991_ACEOF 8992rm -f conftest.$ac_objext 8993if { (ac_try="$ac_compile" 8994case "(($ac_try" in 8995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8996 *) ac_try_echo=$ac_try;; 8997esac 8998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8999 (eval "$ac_compile") 2>conftest.er1 9000 ac_status=$? 9001 grep -v '^ *+' conftest.er1 >conftest.err 9002 rm -f conftest.er1 9003 cat conftest.err >&5 9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9005 (exit $ac_status); } && { 9006 test -z "$ac_c_werror_flag" || 9007 test ! -s conftest.err 9008 } && test -s conftest.$ac_objext; then 9009 ac_cv_have_decl_htobe16=yes 9010else 9011 echo "$as_me: failed program was:" >&5 9012sed 's/^/| /' conftest.$ac_ext >&5 9013 9014 ac_cv_have_decl_htobe16=no 9015fi 9016 9017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9018fi 9019{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_htobe16" >&5 9020echo "${ECHO_T}$ac_cv_have_decl_htobe16" >&6; } 9021if test $ac_cv_have_decl_htobe16 = yes; then 9022 9023cat >>confdefs.h <<_ACEOF 9024#define HAVE_DECL_HTOBE16 1 9025_ACEOF 9026 9027 9028else 9029 cat >>confdefs.h <<_ACEOF 9030#define HAVE_DECL_HTOBE16 0 9031_ACEOF 9032 9033 9034fi 9035{ echo "$as_me:$LINENO: checking whether htobe32 is declared" >&5 9036echo $ECHO_N "checking whether htobe32 is declared... $ECHO_C" >&6; } 9037if test "${ac_cv_have_decl_htobe32+set}" = set; then 9038 echo $ECHO_N "(cached) $ECHO_C" >&6 9039else 9040 cat >conftest.$ac_ext <<_ACEOF 9041/* confdefs.h. */ 9042_ACEOF 9043cat confdefs.h >>conftest.$ac_ext 9044cat >>conftest.$ac_ext <<_ACEOF 9045/* end confdefs.h. */ 9046#include <sys/types.h> 9047 9048int 9049main () 9050{ 9051#ifndef htobe32 9052 (void) htobe32; 9053#endif 9054 9055 ; 9056 return 0; 9057} 9058_ACEOF 9059rm -f conftest.$ac_objext 9060if { (ac_try="$ac_compile" 9061case "(($ac_try" in 9062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9063 *) ac_try_echo=$ac_try;; 9064esac 9065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9066 (eval "$ac_compile") 2>conftest.er1 9067 ac_status=$? 9068 grep -v '^ *+' conftest.er1 >conftest.err 9069 rm -f conftest.er1 9070 cat conftest.err >&5 9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9072 (exit $ac_status); } && { 9073 test -z "$ac_c_werror_flag" || 9074 test ! -s conftest.err 9075 } && test -s conftest.$ac_objext; then 9076 ac_cv_have_decl_htobe32=yes 9077else 9078 echo "$as_me: failed program was:" >&5 9079sed 's/^/| /' conftest.$ac_ext >&5 9080 9081 ac_cv_have_decl_htobe32=no 9082fi 9083 9084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9085fi 9086{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_htobe32" >&5 9087echo "${ECHO_T}$ac_cv_have_decl_htobe32" >&6; } 9088if test $ac_cv_have_decl_htobe32 = yes; then 9089 9090cat >>confdefs.h <<_ACEOF 9091#define HAVE_DECL_HTOBE32 1 9092_ACEOF 9093 9094 9095else 9096 cat >>confdefs.h <<_ACEOF 9097#define HAVE_DECL_HTOBE32 0 9098_ACEOF 9099 9100 9101fi 9102{ echo "$as_me:$LINENO: checking whether htobe64 is declared" >&5 9103echo $ECHO_N "checking whether htobe64 is declared... $ECHO_C" >&6; } 9104if test "${ac_cv_have_decl_htobe64+set}" = set; then 9105 echo $ECHO_N "(cached) $ECHO_C" >&6 9106else 9107 cat >conftest.$ac_ext <<_ACEOF 9108/* confdefs.h. */ 9109_ACEOF 9110cat confdefs.h >>conftest.$ac_ext 9111cat >>conftest.$ac_ext <<_ACEOF 9112/* end confdefs.h. */ 9113#include <sys/types.h> 9114 9115int 9116main () 9117{ 9118#ifndef htobe64 9119 (void) htobe64; 9120#endif 9121 9122 ; 9123 return 0; 9124} 9125_ACEOF 9126rm -f conftest.$ac_objext 9127if { (ac_try="$ac_compile" 9128case "(($ac_try" in 9129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9130 *) ac_try_echo=$ac_try;; 9131esac 9132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9133 (eval "$ac_compile") 2>conftest.er1 9134 ac_status=$? 9135 grep -v '^ *+' conftest.er1 >conftest.err 9136 rm -f conftest.er1 9137 cat conftest.err >&5 9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9139 (exit $ac_status); } && { 9140 test -z "$ac_c_werror_flag" || 9141 test ! -s conftest.err 9142 } && test -s conftest.$ac_objext; then 9143 ac_cv_have_decl_htobe64=yes 9144else 9145 echo "$as_me: failed program was:" >&5 9146sed 's/^/| /' conftest.$ac_ext >&5 9147 9148 ac_cv_have_decl_htobe64=no 9149fi 9150 9151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9152fi 9153{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_htobe64" >&5 9154echo "${ECHO_T}$ac_cv_have_decl_htobe64" >&6; } 9155if test $ac_cv_have_decl_htobe64 = yes; then 9156 9157cat >>confdefs.h <<_ACEOF 9158#define HAVE_DECL_HTOBE64 1 9159_ACEOF 9160 9161 9162else 9163 cat >>confdefs.h <<_ACEOF 9164#define HAVE_DECL_HTOBE64 0 9165_ACEOF 9166 9167 9168fi 9169{ echo "$as_me:$LINENO: checking whether htole16 is declared" >&5 9170echo $ECHO_N "checking whether htole16 is declared... $ECHO_C" >&6; } 9171if test "${ac_cv_have_decl_htole16+set}" = set; then 9172 echo $ECHO_N "(cached) $ECHO_C" >&6 9173else 9174 cat >conftest.$ac_ext <<_ACEOF 9175/* confdefs.h. */ 9176_ACEOF 9177cat confdefs.h >>conftest.$ac_ext 9178cat >>conftest.$ac_ext <<_ACEOF 9179/* end confdefs.h. */ 9180#include <sys/types.h> 9181 9182int 9183main () 9184{ 9185#ifndef htole16 9186 (void) htole16; 9187#endif 9188 9189 ; 9190 return 0; 9191} 9192_ACEOF 9193rm -f conftest.$ac_objext 9194if { (ac_try="$ac_compile" 9195case "(($ac_try" in 9196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9197 *) ac_try_echo=$ac_try;; 9198esac 9199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9200 (eval "$ac_compile") 2>conftest.er1 9201 ac_status=$? 9202 grep -v '^ *+' conftest.er1 >conftest.err 9203 rm -f conftest.er1 9204 cat conftest.err >&5 9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9206 (exit $ac_status); } && { 9207 test -z "$ac_c_werror_flag" || 9208 test ! -s conftest.err 9209 } && test -s conftest.$ac_objext; then 9210 ac_cv_have_decl_htole16=yes 9211else 9212 echo "$as_me: failed program was:" >&5 9213sed 's/^/| /' conftest.$ac_ext >&5 9214 9215 ac_cv_have_decl_htole16=no 9216fi 9217 9218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9219fi 9220{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_htole16" >&5 9221echo "${ECHO_T}$ac_cv_have_decl_htole16" >&6; } 9222if test $ac_cv_have_decl_htole16 = yes; then 9223 9224cat >>confdefs.h <<_ACEOF 9225#define HAVE_DECL_HTOLE16 1 9226_ACEOF 9227 9228 9229else 9230 cat >>confdefs.h <<_ACEOF 9231#define HAVE_DECL_HTOLE16 0 9232_ACEOF 9233 9234 9235fi 9236{ echo "$as_me:$LINENO: checking whether htole32 is declared" >&5 9237echo $ECHO_N "checking whether htole32 is declared... $ECHO_C" >&6; } 9238if test "${ac_cv_have_decl_htole32+set}" = set; then 9239 echo $ECHO_N "(cached) $ECHO_C" >&6 9240else 9241 cat >conftest.$ac_ext <<_ACEOF 9242/* confdefs.h. */ 9243_ACEOF 9244cat confdefs.h >>conftest.$ac_ext 9245cat >>conftest.$ac_ext <<_ACEOF 9246/* end confdefs.h. */ 9247#include <sys/types.h> 9248 9249int 9250main () 9251{ 9252#ifndef htole32 9253 (void) htole32; 9254#endif 9255 9256 ; 9257 return 0; 9258} 9259_ACEOF 9260rm -f conftest.$ac_objext 9261if { (ac_try="$ac_compile" 9262case "(($ac_try" in 9263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9264 *) ac_try_echo=$ac_try;; 9265esac 9266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9267 (eval "$ac_compile") 2>conftest.er1 9268 ac_status=$? 9269 grep -v '^ *+' conftest.er1 >conftest.err 9270 rm -f conftest.er1 9271 cat conftest.err >&5 9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9273 (exit $ac_status); } && { 9274 test -z "$ac_c_werror_flag" || 9275 test ! -s conftest.err 9276 } && test -s conftest.$ac_objext; then 9277 ac_cv_have_decl_htole32=yes 9278else 9279 echo "$as_me: failed program was:" >&5 9280sed 's/^/| /' conftest.$ac_ext >&5 9281 9282 ac_cv_have_decl_htole32=no 9283fi 9284 9285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9286fi 9287{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_htole32" >&5 9288echo "${ECHO_T}$ac_cv_have_decl_htole32" >&6; } 9289if test $ac_cv_have_decl_htole32 = yes; then 9290 9291cat >>confdefs.h <<_ACEOF 9292#define HAVE_DECL_HTOLE32 1 9293_ACEOF 9294 9295 9296else 9297 cat >>confdefs.h <<_ACEOF 9298#define HAVE_DECL_HTOLE32 0 9299_ACEOF 9300 9301 9302fi 9303{ echo "$as_me:$LINENO: checking whether htole64 is declared" >&5 9304echo $ECHO_N "checking whether htole64 is declared... $ECHO_C" >&6; } 9305if test "${ac_cv_have_decl_htole64+set}" = set; then 9306 echo $ECHO_N "(cached) $ECHO_C" >&6 9307else 9308 cat >conftest.$ac_ext <<_ACEOF 9309/* confdefs.h. */ 9310_ACEOF 9311cat confdefs.h >>conftest.$ac_ext 9312cat >>conftest.$ac_ext <<_ACEOF 9313/* end confdefs.h. */ 9314#include <sys/types.h> 9315 9316int 9317main () 9318{ 9319#ifndef htole64 9320 (void) htole64; 9321#endif 9322 9323 ; 9324 return 0; 9325} 9326_ACEOF 9327rm -f conftest.$ac_objext 9328if { (ac_try="$ac_compile" 9329case "(($ac_try" in 9330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9331 *) ac_try_echo=$ac_try;; 9332esac 9333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9334 (eval "$ac_compile") 2>conftest.er1 9335 ac_status=$? 9336 grep -v '^ *+' conftest.er1 >conftest.err 9337 rm -f conftest.er1 9338 cat conftest.err >&5 9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9340 (exit $ac_status); } && { 9341 test -z "$ac_c_werror_flag" || 9342 test ! -s conftest.err 9343 } && test -s conftest.$ac_objext; then 9344 ac_cv_have_decl_htole64=yes 9345else 9346 echo "$as_me: failed program was:" >&5 9347sed 's/^/| /' conftest.$ac_ext >&5 9348 9349 ac_cv_have_decl_htole64=no 9350fi 9351 9352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9353fi 9354{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_htole64" >&5 9355echo "${ECHO_T}$ac_cv_have_decl_htole64" >&6; } 9356if test $ac_cv_have_decl_htole64 = yes; then 9357 9358cat >>confdefs.h <<_ACEOF 9359#define HAVE_DECL_HTOLE64 1 9360_ACEOF 9361 9362 9363else 9364 cat >>confdefs.h <<_ACEOF 9365#define HAVE_DECL_HTOLE64 0 9366_ACEOF 9367 9368 9369fi 9370{ echo "$as_me:$LINENO: checking whether be16toh is declared" >&5 9371echo $ECHO_N "checking whether be16toh is declared... $ECHO_C" >&6; } 9372if test "${ac_cv_have_decl_be16toh+set}" = set; then 9373 echo $ECHO_N "(cached) $ECHO_C" >&6 9374else 9375 cat >conftest.$ac_ext <<_ACEOF 9376/* confdefs.h. */ 9377_ACEOF 9378cat confdefs.h >>conftest.$ac_ext 9379cat >>conftest.$ac_ext <<_ACEOF 9380/* end confdefs.h. */ 9381#include <sys/types.h> 9382 9383int 9384main () 9385{ 9386#ifndef be16toh 9387 (void) be16toh; 9388#endif 9389 9390 ; 9391 return 0; 9392} 9393_ACEOF 9394rm -f conftest.$ac_objext 9395if { (ac_try="$ac_compile" 9396case "(($ac_try" in 9397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9398 *) ac_try_echo=$ac_try;; 9399esac 9400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9401 (eval "$ac_compile") 2>conftest.er1 9402 ac_status=$? 9403 grep -v '^ *+' conftest.er1 >conftest.err 9404 rm -f conftest.er1 9405 cat conftest.err >&5 9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9407 (exit $ac_status); } && { 9408 test -z "$ac_c_werror_flag" || 9409 test ! -s conftest.err 9410 } && test -s conftest.$ac_objext; then 9411 ac_cv_have_decl_be16toh=yes 9412else 9413 echo "$as_me: failed program was:" >&5 9414sed 's/^/| /' conftest.$ac_ext >&5 9415 9416 ac_cv_have_decl_be16toh=no 9417fi 9418 9419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9420fi 9421{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_be16toh" >&5 9422echo "${ECHO_T}$ac_cv_have_decl_be16toh" >&6; } 9423if test $ac_cv_have_decl_be16toh = yes; then 9424 9425cat >>confdefs.h <<_ACEOF 9426#define HAVE_DECL_BE16TOH 1 9427_ACEOF 9428 9429 9430else 9431 cat >>confdefs.h <<_ACEOF 9432#define HAVE_DECL_BE16TOH 0 9433_ACEOF 9434 9435 9436fi 9437{ echo "$as_me:$LINENO: checking whether be32toh is declared" >&5 9438echo $ECHO_N "checking whether be32toh is declared... $ECHO_C" >&6; } 9439if test "${ac_cv_have_decl_be32toh+set}" = set; then 9440 echo $ECHO_N "(cached) $ECHO_C" >&6 9441else 9442 cat >conftest.$ac_ext <<_ACEOF 9443/* confdefs.h. */ 9444_ACEOF 9445cat confdefs.h >>conftest.$ac_ext 9446cat >>conftest.$ac_ext <<_ACEOF 9447/* end confdefs.h. */ 9448#include <sys/types.h> 9449 9450int 9451main () 9452{ 9453#ifndef be32toh 9454 (void) be32toh; 9455#endif 9456 9457 ; 9458 return 0; 9459} 9460_ACEOF 9461rm -f conftest.$ac_objext 9462if { (ac_try="$ac_compile" 9463case "(($ac_try" in 9464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9465 *) ac_try_echo=$ac_try;; 9466esac 9467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9468 (eval "$ac_compile") 2>conftest.er1 9469 ac_status=$? 9470 grep -v '^ *+' conftest.er1 >conftest.err 9471 rm -f conftest.er1 9472 cat conftest.err >&5 9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9474 (exit $ac_status); } && { 9475 test -z "$ac_c_werror_flag" || 9476 test ! -s conftest.err 9477 } && test -s conftest.$ac_objext; then 9478 ac_cv_have_decl_be32toh=yes 9479else 9480 echo "$as_me: failed program was:" >&5 9481sed 's/^/| /' conftest.$ac_ext >&5 9482 9483 ac_cv_have_decl_be32toh=no 9484fi 9485 9486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9487fi 9488{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_be32toh" >&5 9489echo "${ECHO_T}$ac_cv_have_decl_be32toh" >&6; } 9490if test $ac_cv_have_decl_be32toh = yes; then 9491 9492cat >>confdefs.h <<_ACEOF 9493#define HAVE_DECL_BE32TOH 1 9494_ACEOF 9495 9496 9497else 9498 cat >>confdefs.h <<_ACEOF 9499#define HAVE_DECL_BE32TOH 0 9500_ACEOF 9501 9502 9503fi 9504{ echo "$as_me:$LINENO: checking whether be64toh is declared" >&5 9505echo $ECHO_N "checking whether be64toh is declared... $ECHO_C" >&6; } 9506if test "${ac_cv_have_decl_be64toh+set}" = set; then 9507 echo $ECHO_N "(cached) $ECHO_C" >&6 9508else 9509 cat >conftest.$ac_ext <<_ACEOF 9510/* confdefs.h. */ 9511_ACEOF 9512cat confdefs.h >>conftest.$ac_ext 9513cat >>conftest.$ac_ext <<_ACEOF 9514/* end confdefs.h. */ 9515#include <sys/types.h> 9516 9517int 9518main () 9519{ 9520#ifndef be64toh 9521 (void) be64toh; 9522#endif 9523 9524 ; 9525 return 0; 9526} 9527_ACEOF 9528rm -f conftest.$ac_objext 9529if { (ac_try="$ac_compile" 9530case "(($ac_try" in 9531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9532 *) ac_try_echo=$ac_try;; 9533esac 9534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9535 (eval "$ac_compile") 2>conftest.er1 9536 ac_status=$? 9537 grep -v '^ *+' conftest.er1 >conftest.err 9538 rm -f conftest.er1 9539 cat conftest.err >&5 9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9541 (exit $ac_status); } && { 9542 test -z "$ac_c_werror_flag" || 9543 test ! -s conftest.err 9544 } && test -s conftest.$ac_objext; then 9545 ac_cv_have_decl_be64toh=yes 9546else 9547 echo "$as_me: failed program was:" >&5 9548sed 's/^/| /' conftest.$ac_ext >&5 9549 9550 ac_cv_have_decl_be64toh=no 9551fi 9552 9553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9554fi 9555{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_be64toh" >&5 9556echo "${ECHO_T}$ac_cv_have_decl_be64toh" >&6; } 9557if test $ac_cv_have_decl_be64toh = yes; then 9558 9559cat >>confdefs.h <<_ACEOF 9560#define HAVE_DECL_BE64TOH 1 9561_ACEOF 9562 9563 9564else 9565 cat >>confdefs.h <<_ACEOF 9566#define HAVE_DECL_BE64TOH 0 9567_ACEOF 9568 9569 9570fi 9571{ echo "$as_me:$LINENO: checking whether le16toh is declared" >&5 9572echo $ECHO_N "checking whether le16toh is declared... $ECHO_C" >&6; } 9573if test "${ac_cv_have_decl_le16toh+set}" = set; then 9574 echo $ECHO_N "(cached) $ECHO_C" >&6 9575else 9576 cat >conftest.$ac_ext <<_ACEOF 9577/* confdefs.h. */ 9578_ACEOF 9579cat confdefs.h >>conftest.$ac_ext 9580cat >>conftest.$ac_ext <<_ACEOF 9581/* end confdefs.h. */ 9582#include <sys/types.h> 9583 9584int 9585main () 9586{ 9587#ifndef le16toh 9588 (void) le16toh; 9589#endif 9590 9591 ; 9592 return 0; 9593} 9594_ACEOF 9595rm -f conftest.$ac_objext 9596if { (ac_try="$ac_compile" 9597case "(($ac_try" in 9598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9599 *) ac_try_echo=$ac_try;; 9600esac 9601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9602 (eval "$ac_compile") 2>conftest.er1 9603 ac_status=$? 9604 grep -v '^ *+' conftest.er1 >conftest.err 9605 rm -f conftest.er1 9606 cat conftest.err >&5 9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9608 (exit $ac_status); } && { 9609 test -z "$ac_c_werror_flag" || 9610 test ! -s conftest.err 9611 } && test -s conftest.$ac_objext; then 9612 ac_cv_have_decl_le16toh=yes 9613else 9614 echo "$as_me: failed program was:" >&5 9615sed 's/^/| /' conftest.$ac_ext >&5 9616 9617 ac_cv_have_decl_le16toh=no 9618fi 9619 9620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9621fi 9622{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_le16toh" >&5 9623echo "${ECHO_T}$ac_cv_have_decl_le16toh" >&6; } 9624if test $ac_cv_have_decl_le16toh = yes; then 9625 9626cat >>confdefs.h <<_ACEOF 9627#define HAVE_DECL_LE16TOH 1 9628_ACEOF 9629 9630 9631else 9632 cat >>confdefs.h <<_ACEOF 9633#define HAVE_DECL_LE16TOH 0 9634_ACEOF 9635 9636 9637fi 9638{ echo "$as_me:$LINENO: checking whether le32toh is declared" >&5 9639echo $ECHO_N "checking whether le32toh is declared... $ECHO_C" >&6; } 9640if test "${ac_cv_have_decl_le32toh+set}" = set; then 9641 echo $ECHO_N "(cached) $ECHO_C" >&6 9642else 9643 cat >conftest.$ac_ext <<_ACEOF 9644/* confdefs.h. */ 9645_ACEOF 9646cat confdefs.h >>conftest.$ac_ext 9647cat >>conftest.$ac_ext <<_ACEOF 9648/* end confdefs.h. */ 9649#include <sys/types.h> 9650 9651int 9652main () 9653{ 9654#ifndef le32toh 9655 (void) le32toh; 9656#endif 9657 9658 ; 9659 return 0; 9660} 9661_ACEOF 9662rm -f conftest.$ac_objext 9663if { (ac_try="$ac_compile" 9664case "(($ac_try" in 9665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9666 *) ac_try_echo=$ac_try;; 9667esac 9668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9669 (eval "$ac_compile") 2>conftest.er1 9670 ac_status=$? 9671 grep -v '^ *+' conftest.er1 >conftest.err 9672 rm -f conftest.er1 9673 cat conftest.err >&5 9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9675 (exit $ac_status); } && { 9676 test -z "$ac_c_werror_flag" || 9677 test ! -s conftest.err 9678 } && test -s conftest.$ac_objext; then 9679 ac_cv_have_decl_le32toh=yes 9680else 9681 echo "$as_me: failed program was:" >&5 9682sed 's/^/| /' conftest.$ac_ext >&5 9683 9684 ac_cv_have_decl_le32toh=no 9685fi 9686 9687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9688fi 9689{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_le32toh" >&5 9690echo "${ECHO_T}$ac_cv_have_decl_le32toh" >&6; } 9691if test $ac_cv_have_decl_le32toh = yes; then 9692 9693cat >>confdefs.h <<_ACEOF 9694#define HAVE_DECL_LE32TOH 1 9695_ACEOF 9696 9697 9698else 9699 cat >>confdefs.h <<_ACEOF 9700#define HAVE_DECL_LE32TOH 0 9701_ACEOF 9702 9703 9704fi 9705{ echo "$as_me:$LINENO: checking whether le64toh is declared" >&5 9706echo $ECHO_N "checking whether le64toh is declared... $ECHO_C" >&6; } 9707if test "${ac_cv_have_decl_le64toh+set}" = set; then 9708 echo $ECHO_N "(cached) $ECHO_C" >&6 9709else 9710 cat >conftest.$ac_ext <<_ACEOF 9711/* confdefs.h. */ 9712_ACEOF 9713cat confdefs.h >>conftest.$ac_ext 9714cat >>conftest.$ac_ext <<_ACEOF 9715/* end confdefs.h. */ 9716#include <sys/types.h> 9717 9718int 9719main () 9720{ 9721#ifndef le64toh 9722 (void) le64toh; 9723#endif 9724 9725 ; 9726 return 0; 9727} 9728_ACEOF 9729rm -f conftest.$ac_objext 9730if { (ac_try="$ac_compile" 9731case "(($ac_try" in 9732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9733 *) ac_try_echo=$ac_try;; 9734esac 9735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9736 (eval "$ac_compile") 2>conftest.er1 9737 ac_status=$? 9738 grep -v '^ *+' conftest.er1 >conftest.err 9739 rm -f conftest.er1 9740 cat conftest.err >&5 9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9742 (exit $ac_status); } && { 9743 test -z "$ac_c_werror_flag" || 9744 test ! -s conftest.err 9745 } && test -s conftest.$ac_objext; then 9746 ac_cv_have_decl_le64toh=yes 9747else 9748 echo "$as_me: failed program was:" >&5 9749sed 's/^/| /' conftest.$ac_ext >&5 9750 9751 ac_cv_have_decl_le64toh=no 9752fi 9753 9754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9755fi 9756{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_le64toh" >&5 9757echo "${ECHO_T}$ac_cv_have_decl_le64toh" >&6; } 9758if test $ac_cv_have_decl_le64toh = yes; then 9759 9760cat >>confdefs.h <<_ACEOF 9761#define HAVE_DECL_LE64TOH 1 9762_ACEOF 9763 9764 9765else 9766 cat >>confdefs.h <<_ACEOF 9767#define HAVE_DECL_LE64TOH 0 9768_ACEOF 9769 9770 9771fi 9772 9773 9774 9775{ echo "$as_me:$LINENO: checking whether bswap16 is declared" >&5 9776echo $ECHO_N "checking whether bswap16 is declared... $ECHO_C" >&6; } 9777if test "${ac_cv_have_decl_bswap16+set}" = set; then 9778 echo $ECHO_N "(cached) $ECHO_C" >&6 9779else 9780 cat >conftest.$ac_ext <<_ACEOF 9781/* confdefs.h. */ 9782_ACEOF 9783cat confdefs.h >>conftest.$ac_ext 9784cat >>conftest.$ac_ext <<_ACEOF 9785/* end confdefs.h. */ 9786#include <machine/bswap.h> 9787 9788int 9789main () 9790{ 9791#ifndef bswap16 9792 (void) bswap16; 9793#endif 9794 9795 ; 9796 return 0; 9797} 9798_ACEOF 9799rm -f conftest.$ac_objext 9800if { (ac_try="$ac_compile" 9801case "(($ac_try" in 9802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9803 *) ac_try_echo=$ac_try;; 9804esac 9805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9806 (eval "$ac_compile") 2>conftest.er1 9807 ac_status=$? 9808 grep -v '^ *+' conftest.er1 >conftest.err 9809 rm -f conftest.er1 9810 cat conftest.err >&5 9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9812 (exit $ac_status); } && { 9813 test -z "$ac_c_werror_flag" || 9814 test ! -s conftest.err 9815 } && test -s conftest.$ac_objext; then 9816 ac_cv_have_decl_bswap16=yes 9817else 9818 echo "$as_me: failed program was:" >&5 9819sed 's/^/| /' conftest.$ac_ext >&5 9820 9821 ac_cv_have_decl_bswap16=no 9822fi 9823 9824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9825fi 9826{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_bswap16" >&5 9827echo "${ECHO_T}$ac_cv_have_decl_bswap16" >&6; } 9828if test $ac_cv_have_decl_bswap16 = yes; then 9829 9830cat >>confdefs.h <<_ACEOF 9831#define HAVE_DECL_BSWAP16 1 9832_ACEOF 9833 9834 9835else 9836 cat >>confdefs.h <<_ACEOF 9837#define HAVE_DECL_BSWAP16 0 9838_ACEOF 9839 9840 9841fi 9842{ echo "$as_me:$LINENO: checking whether bswap32 is declared" >&5 9843echo $ECHO_N "checking whether bswap32 is declared... $ECHO_C" >&6; } 9844if test "${ac_cv_have_decl_bswap32+set}" = set; then 9845 echo $ECHO_N "(cached) $ECHO_C" >&6 9846else 9847 cat >conftest.$ac_ext <<_ACEOF 9848/* confdefs.h. */ 9849_ACEOF 9850cat confdefs.h >>conftest.$ac_ext 9851cat >>conftest.$ac_ext <<_ACEOF 9852/* end confdefs.h. */ 9853#include <machine/bswap.h> 9854 9855int 9856main () 9857{ 9858#ifndef bswap32 9859 (void) bswap32; 9860#endif 9861 9862 ; 9863 return 0; 9864} 9865_ACEOF 9866rm -f conftest.$ac_objext 9867if { (ac_try="$ac_compile" 9868case "(($ac_try" in 9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9870 *) ac_try_echo=$ac_try;; 9871esac 9872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9873 (eval "$ac_compile") 2>conftest.er1 9874 ac_status=$? 9875 grep -v '^ *+' conftest.er1 >conftest.err 9876 rm -f conftest.er1 9877 cat conftest.err >&5 9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9879 (exit $ac_status); } && { 9880 test -z "$ac_c_werror_flag" || 9881 test ! -s conftest.err 9882 } && test -s conftest.$ac_objext; then 9883 ac_cv_have_decl_bswap32=yes 9884else 9885 echo "$as_me: failed program was:" >&5 9886sed 's/^/| /' conftest.$ac_ext >&5 9887 9888 ac_cv_have_decl_bswap32=no 9889fi 9890 9891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9892fi 9893{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_bswap32" >&5 9894echo "${ECHO_T}$ac_cv_have_decl_bswap32" >&6; } 9895if test $ac_cv_have_decl_bswap32 = yes; then 9896 9897cat >>confdefs.h <<_ACEOF 9898#define HAVE_DECL_BSWAP32 1 9899_ACEOF 9900 9901 9902else 9903 cat >>confdefs.h <<_ACEOF 9904#define HAVE_DECL_BSWAP32 0 9905_ACEOF 9906 9907 9908fi 9909{ echo "$as_me:$LINENO: checking whether bswap64 is declared" >&5 9910echo $ECHO_N "checking whether bswap64 is declared... $ECHO_C" >&6; } 9911if test "${ac_cv_have_decl_bswap64+set}" = set; then 9912 echo $ECHO_N "(cached) $ECHO_C" >&6 9913else 9914 cat >conftest.$ac_ext <<_ACEOF 9915/* confdefs.h. */ 9916_ACEOF 9917cat confdefs.h >>conftest.$ac_ext 9918cat >>conftest.$ac_ext <<_ACEOF 9919/* end confdefs.h. */ 9920#include <machine/bswap.h> 9921 9922int 9923main () 9924{ 9925#ifndef bswap64 9926 (void) bswap64; 9927#endif 9928 9929 ; 9930 return 0; 9931} 9932_ACEOF 9933rm -f conftest.$ac_objext 9934if { (ac_try="$ac_compile" 9935case "(($ac_try" in 9936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9937 *) ac_try_echo=$ac_try;; 9938esac 9939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9940 (eval "$ac_compile") 2>conftest.er1 9941 ac_status=$? 9942 grep -v '^ *+' conftest.er1 >conftest.err 9943 rm -f conftest.er1 9944 cat conftest.err >&5 9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9946 (exit $ac_status); } && { 9947 test -z "$ac_c_werror_flag" || 9948 test ! -s conftest.err 9949 } && test -s conftest.$ac_objext; then 9950 ac_cv_have_decl_bswap64=yes 9951else 9952 echo "$as_me: failed program was:" >&5 9953sed 's/^/| /' conftest.$ac_ext >&5 9954 9955 ac_cv_have_decl_bswap64=no 9956fi 9957 9958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9959fi 9960{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_bswap64" >&5 9961echo "${ECHO_T}$ac_cv_have_decl_bswap64" >&6; } 9962if test $ac_cv_have_decl_bswap64 = yes; then 9963 9964cat >>confdefs.h <<_ACEOF 9965#define HAVE_DECL_BSWAP64 1 9966_ACEOF 9967 9968 9969else 9970 cat >>confdefs.h <<_ACEOF 9971#define HAVE_DECL_BSWAP64 0 9972_ACEOF 9973 9974 9975fi 9976 9977 9978 9979{ echo "$as_me:$LINENO: checking whether be16enc is declared" >&5 9980echo $ECHO_N "checking whether be16enc is declared... $ECHO_C" >&6; } 9981if test "${ac_cv_have_decl_be16enc+set}" = set; then 9982 echo $ECHO_N "(cached) $ECHO_C" >&6 9983else 9984 cat >conftest.$ac_ext <<_ACEOF 9985/* confdefs.h. */ 9986_ACEOF 9987cat confdefs.h >>conftest.$ac_ext 9988cat >>conftest.$ac_ext <<_ACEOF 9989/* end confdefs.h. */ 9990#include <sys/endian.h> 9991 9992int 9993main () 9994{ 9995#ifndef be16enc 9996 (void) be16enc; 9997#endif 9998 9999 ; 10000 return 0; 10001} 10002_ACEOF 10003rm -f conftest.$ac_objext 10004if { (ac_try="$ac_compile" 10005case "(($ac_try" in 10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10007 *) ac_try_echo=$ac_try;; 10008esac 10009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10010 (eval "$ac_compile") 2>conftest.er1 10011 ac_status=$? 10012 grep -v '^ *+' conftest.er1 >conftest.err 10013 rm -f conftest.er1 10014 cat conftest.err >&5 10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10016 (exit $ac_status); } && { 10017 test -z "$ac_c_werror_flag" || 10018 test ! -s conftest.err 10019 } && test -s conftest.$ac_objext; then 10020 ac_cv_have_decl_be16enc=yes 10021else 10022 echo "$as_me: failed program was:" >&5 10023sed 's/^/| /' conftest.$ac_ext >&5 10024 10025 ac_cv_have_decl_be16enc=no 10026fi 10027 10028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10029fi 10030{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_be16enc" >&5 10031echo "${ECHO_T}$ac_cv_have_decl_be16enc" >&6; } 10032if test $ac_cv_have_decl_be16enc = yes; then 10033 10034cat >>confdefs.h <<_ACEOF 10035#define HAVE_DECL_BE16ENC 1 10036_ACEOF 10037 10038 10039else 10040 cat >>confdefs.h <<_ACEOF 10041#define HAVE_DECL_BE16ENC 0 10042_ACEOF 10043 10044 10045fi 10046{ echo "$as_me:$LINENO: checking whether le16enc is declared" >&5 10047echo $ECHO_N "checking whether le16enc is declared... $ECHO_C" >&6; } 10048if test "${ac_cv_have_decl_le16enc+set}" = set; then 10049 echo $ECHO_N "(cached) $ECHO_C" >&6 10050else 10051 cat >conftest.$ac_ext <<_ACEOF 10052/* confdefs.h. */ 10053_ACEOF 10054cat confdefs.h >>conftest.$ac_ext 10055cat >>conftest.$ac_ext <<_ACEOF 10056/* end confdefs.h. */ 10057#include <sys/endian.h> 10058 10059int 10060main () 10061{ 10062#ifndef le16enc 10063 (void) le16enc; 10064#endif 10065 10066 ; 10067 return 0; 10068} 10069_ACEOF 10070rm -f conftest.$ac_objext 10071if { (ac_try="$ac_compile" 10072case "(($ac_try" in 10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10074 *) ac_try_echo=$ac_try;; 10075esac 10076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10077 (eval "$ac_compile") 2>conftest.er1 10078 ac_status=$? 10079 grep -v '^ *+' conftest.er1 >conftest.err 10080 rm -f conftest.er1 10081 cat conftest.err >&5 10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10083 (exit $ac_status); } && { 10084 test -z "$ac_c_werror_flag" || 10085 test ! -s conftest.err 10086 } && test -s conftest.$ac_objext; then 10087 ac_cv_have_decl_le16enc=yes 10088else 10089 echo "$as_me: failed program was:" >&5 10090sed 's/^/| /' conftest.$ac_ext >&5 10091 10092 ac_cv_have_decl_le16enc=no 10093fi 10094 10095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10096fi 10097{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_le16enc" >&5 10098echo "${ECHO_T}$ac_cv_have_decl_le16enc" >&6; } 10099if test $ac_cv_have_decl_le16enc = yes; then 10100 10101cat >>confdefs.h <<_ACEOF 10102#define HAVE_DECL_LE16ENC 1 10103_ACEOF 10104 10105 10106else 10107 cat >>confdefs.h <<_ACEOF 10108#define HAVE_DECL_LE16ENC 0 10109_ACEOF 10110 10111 10112fi 10113{ echo "$as_me:$LINENO: checking whether be16dec is declared" >&5 10114echo $ECHO_N "checking whether be16dec is declared... $ECHO_C" >&6; } 10115if test "${ac_cv_have_decl_be16dec+set}" = set; then 10116 echo $ECHO_N "(cached) $ECHO_C" >&6 10117else 10118 cat >conftest.$ac_ext <<_ACEOF 10119/* confdefs.h. */ 10120_ACEOF 10121cat confdefs.h >>conftest.$ac_ext 10122cat >>conftest.$ac_ext <<_ACEOF 10123/* end confdefs.h. */ 10124#include <sys/endian.h> 10125 10126int 10127main () 10128{ 10129#ifndef be16dec 10130 (void) be16dec; 10131#endif 10132 10133 ; 10134 return 0; 10135} 10136_ACEOF 10137rm -f conftest.$ac_objext 10138if { (ac_try="$ac_compile" 10139case "(($ac_try" in 10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10141 *) ac_try_echo=$ac_try;; 10142esac 10143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10144 (eval "$ac_compile") 2>conftest.er1 10145 ac_status=$? 10146 grep -v '^ *+' conftest.er1 >conftest.err 10147 rm -f conftest.er1 10148 cat conftest.err >&5 10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10150 (exit $ac_status); } && { 10151 test -z "$ac_c_werror_flag" || 10152 test ! -s conftest.err 10153 } && test -s conftest.$ac_objext; then 10154 ac_cv_have_decl_be16dec=yes 10155else 10156 echo "$as_me: failed program was:" >&5 10157sed 's/^/| /' conftest.$ac_ext >&5 10158 10159 ac_cv_have_decl_be16dec=no 10160fi 10161 10162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10163fi 10164{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_be16dec" >&5 10165echo "${ECHO_T}$ac_cv_have_decl_be16dec" >&6; } 10166if test $ac_cv_have_decl_be16dec = yes; then 10167 10168cat >>confdefs.h <<_ACEOF 10169#define HAVE_DECL_BE16DEC 1 10170_ACEOF 10171 10172 10173else 10174 cat >>confdefs.h <<_ACEOF 10175#define HAVE_DECL_BE16DEC 0 10176_ACEOF 10177 10178 10179fi 10180{ echo "$as_me:$LINENO: checking whether le16dec is declared" >&5 10181echo $ECHO_N "checking whether le16dec is declared... $ECHO_C" >&6; } 10182if test "${ac_cv_have_decl_le16dec+set}" = set; then 10183 echo $ECHO_N "(cached) $ECHO_C" >&6 10184else 10185 cat >conftest.$ac_ext <<_ACEOF 10186/* confdefs.h. */ 10187_ACEOF 10188cat confdefs.h >>conftest.$ac_ext 10189cat >>conftest.$ac_ext <<_ACEOF 10190/* end confdefs.h. */ 10191#include <sys/endian.h> 10192 10193int 10194main () 10195{ 10196#ifndef le16dec 10197 (void) le16dec; 10198#endif 10199 10200 ; 10201 return 0; 10202} 10203_ACEOF 10204rm -f conftest.$ac_objext 10205if { (ac_try="$ac_compile" 10206case "(($ac_try" in 10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10208 *) ac_try_echo=$ac_try;; 10209esac 10210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10211 (eval "$ac_compile") 2>conftest.er1 10212 ac_status=$? 10213 grep -v '^ *+' conftest.er1 >conftest.err 10214 rm -f conftest.er1 10215 cat conftest.err >&5 10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10217 (exit $ac_status); } && { 10218 test -z "$ac_c_werror_flag" || 10219 test ! -s conftest.err 10220 } && test -s conftest.$ac_objext; then 10221 ac_cv_have_decl_le16dec=yes 10222else 10223 echo "$as_me: failed program was:" >&5 10224sed 's/^/| /' conftest.$ac_ext >&5 10225 10226 ac_cv_have_decl_le16dec=no 10227fi 10228 10229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10230fi 10231{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_le16dec" >&5 10232echo "${ECHO_T}$ac_cv_have_decl_le16dec" >&6; } 10233if test $ac_cv_have_decl_le16dec = yes; then 10234 10235cat >>confdefs.h <<_ACEOF 10236#define HAVE_DECL_LE16DEC 1 10237_ACEOF 10238 10239 10240else 10241 cat >>confdefs.h <<_ACEOF 10242#define HAVE_DECL_LE16DEC 0 10243_ACEOF 10244 10245 10246fi 10247{ echo "$as_me:$LINENO: checking whether be32enc is declared" >&5 10248echo $ECHO_N "checking whether be32enc is declared... $ECHO_C" >&6; } 10249if test "${ac_cv_have_decl_be32enc+set}" = set; then 10250 echo $ECHO_N "(cached) $ECHO_C" >&6 10251else 10252 cat >conftest.$ac_ext <<_ACEOF 10253/* confdefs.h. */ 10254_ACEOF 10255cat confdefs.h >>conftest.$ac_ext 10256cat >>conftest.$ac_ext <<_ACEOF 10257/* end confdefs.h. */ 10258#include <sys/endian.h> 10259 10260int 10261main () 10262{ 10263#ifndef be32enc 10264 (void) be32enc; 10265#endif 10266 10267 ; 10268 return 0; 10269} 10270_ACEOF 10271rm -f conftest.$ac_objext 10272if { (ac_try="$ac_compile" 10273case "(($ac_try" in 10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10275 *) ac_try_echo=$ac_try;; 10276esac 10277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10278 (eval "$ac_compile") 2>conftest.er1 10279 ac_status=$? 10280 grep -v '^ *+' conftest.er1 >conftest.err 10281 rm -f conftest.er1 10282 cat conftest.err >&5 10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10284 (exit $ac_status); } && { 10285 test -z "$ac_c_werror_flag" || 10286 test ! -s conftest.err 10287 } && test -s conftest.$ac_objext; then 10288 ac_cv_have_decl_be32enc=yes 10289else 10290 echo "$as_me: failed program was:" >&5 10291sed 's/^/| /' conftest.$ac_ext >&5 10292 10293 ac_cv_have_decl_be32enc=no 10294fi 10295 10296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10297fi 10298{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_be32enc" >&5 10299echo "${ECHO_T}$ac_cv_have_decl_be32enc" >&6; } 10300if test $ac_cv_have_decl_be32enc = yes; then 10301 10302cat >>confdefs.h <<_ACEOF 10303#define HAVE_DECL_BE32ENC 1 10304_ACEOF 10305 10306 10307else 10308 cat >>confdefs.h <<_ACEOF 10309#define HAVE_DECL_BE32ENC 0 10310_ACEOF 10311 10312 10313fi 10314{ echo "$as_me:$LINENO: checking whether le32enc is declared" >&5 10315echo $ECHO_N "checking whether le32enc is declared... $ECHO_C" >&6; } 10316if test "${ac_cv_have_decl_le32enc+set}" = set; then 10317 echo $ECHO_N "(cached) $ECHO_C" >&6 10318else 10319 cat >conftest.$ac_ext <<_ACEOF 10320/* confdefs.h. */ 10321_ACEOF 10322cat confdefs.h >>conftest.$ac_ext 10323cat >>conftest.$ac_ext <<_ACEOF 10324/* end confdefs.h. */ 10325#include <sys/endian.h> 10326 10327int 10328main () 10329{ 10330#ifndef le32enc 10331 (void) le32enc; 10332#endif 10333 10334 ; 10335 return 0; 10336} 10337_ACEOF 10338rm -f conftest.$ac_objext 10339if { (ac_try="$ac_compile" 10340case "(($ac_try" in 10341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10342 *) ac_try_echo=$ac_try;; 10343esac 10344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10345 (eval "$ac_compile") 2>conftest.er1 10346 ac_status=$? 10347 grep -v '^ *+' conftest.er1 >conftest.err 10348 rm -f conftest.er1 10349 cat conftest.err >&5 10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10351 (exit $ac_status); } && { 10352 test -z "$ac_c_werror_flag" || 10353 test ! -s conftest.err 10354 } && test -s conftest.$ac_objext; then 10355 ac_cv_have_decl_le32enc=yes 10356else 10357 echo "$as_me: failed program was:" >&5 10358sed 's/^/| /' conftest.$ac_ext >&5 10359 10360 ac_cv_have_decl_le32enc=no 10361fi 10362 10363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10364fi 10365{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_le32enc" >&5 10366echo "${ECHO_T}$ac_cv_have_decl_le32enc" >&6; } 10367if test $ac_cv_have_decl_le32enc = yes; then 10368 10369cat >>confdefs.h <<_ACEOF 10370#define HAVE_DECL_LE32ENC 1 10371_ACEOF 10372 10373 10374else 10375 cat >>confdefs.h <<_ACEOF 10376#define HAVE_DECL_LE32ENC 0 10377_ACEOF 10378 10379 10380fi 10381{ echo "$as_me:$LINENO: checking whether be32dec is declared" >&5 10382echo $ECHO_N "checking whether be32dec is declared... $ECHO_C" >&6; } 10383if test "${ac_cv_have_decl_be32dec+set}" = set; then 10384 echo $ECHO_N "(cached) $ECHO_C" >&6 10385else 10386 cat >conftest.$ac_ext <<_ACEOF 10387/* confdefs.h. */ 10388_ACEOF 10389cat confdefs.h >>conftest.$ac_ext 10390cat >>conftest.$ac_ext <<_ACEOF 10391/* end confdefs.h. */ 10392#include <sys/endian.h> 10393 10394int 10395main () 10396{ 10397#ifndef be32dec 10398 (void) be32dec; 10399#endif 10400 10401 ; 10402 return 0; 10403} 10404_ACEOF 10405rm -f conftest.$ac_objext 10406if { (ac_try="$ac_compile" 10407case "(($ac_try" in 10408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10409 *) ac_try_echo=$ac_try;; 10410esac 10411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10412 (eval "$ac_compile") 2>conftest.er1 10413 ac_status=$? 10414 grep -v '^ *+' conftest.er1 >conftest.err 10415 rm -f conftest.er1 10416 cat conftest.err >&5 10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10418 (exit $ac_status); } && { 10419 test -z "$ac_c_werror_flag" || 10420 test ! -s conftest.err 10421 } && test -s conftest.$ac_objext; then 10422 ac_cv_have_decl_be32dec=yes 10423else 10424 echo "$as_me: failed program was:" >&5 10425sed 's/^/| /' conftest.$ac_ext >&5 10426 10427 ac_cv_have_decl_be32dec=no 10428fi 10429 10430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10431fi 10432{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_be32dec" >&5 10433echo "${ECHO_T}$ac_cv_have_decl_be32dec" >&6; } 10434if test $ac_cv_have_decl_be32dec = yes; then 10435 10436cat >>confdefs.h <<_ACEOF 10437#define HAVE_DECL_BE32DEC 1 10438_ACEOF 10439 10440 10441else 10442 cat >>confdefs.h <<_ACEOF 10443#define HAVE_DECL_BE32DEC 0 10444_ACEOF 10445 10446 10447fi 10448{ echo "$as_me:$LINENO: checking whether le32dec is declared" >&5 10449echo $ECHO_N "checking whether le32dec is declared... $ECHO_C" >&6; } 10450if test "${ac_cv_have_decl_le32dec+set}" = set; then 10451 echo $ECHO_N "(cached) $ECHO_C" >&6 10452else 10453 cat >conftest.$ac_ext <<_ACEOF 10454/* confdefs.h. */ 10455_ACEOF 10456cat confdefs.h >>conftest.$ac_ext 10457cat >>conftest.$ac_ext <<_ACEOF 10458/* end confdefs.h. */ 10459#include <sys/endian.h> 10460 10461int 10462main () 10463{ 10464#ifndef le32dec 10465 (void) le32dec; 10466#endif 10467 10468 ; 10469 return 0; 10470} 10471_ACEOF 10472rm -f conftest.$ac_objext 10473if { (ac_try="$ac_compile" 10474case "(($ac_try" in 10475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10476 *) ac_try_echo=$ac_try;; 10477esac 10478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10479 (eval "$ac_compile") 2>conftest.er1 10480 ac_status=$? 10481 grep -v '^ *+' conftest.er1 >conftest.err 10482 rm -f conftest.er1 10483 cat conftest.err >&5 10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10485 (exit $ac_status); } && { 10486 test -z "$ac_c_werror_flag" || 10487 test ! -s conftest.err 10488 } && test -s conftest.$ac_objext; then 10489 ac_cv_have_decl_le32dec=yes 10490else 10491 echo "$as_me: failed program was:" >&5 10492sed 's/^/| /' conftest.$ac_ext >&5 10493 10494 ac_cv_have_decl_le32dec=no 10495fi 10496 10497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10498fi 10499{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_le32dec" >&5 10500echo "${ECHO_T}$ac_cv_have_decl_le32dec" >&6; } 10501if test $ac_cv_have_decl_le32dec = yes; then 10502 10503cat >>confdefs.h <<_ACEOF 10504#define HAVE_DECL_LE32DEC 1 10505_ACEOF 10506 10507 10508else 10509 cat >>confdefs.h <<_ACEOF 10510#define HAVE_DECL_LE32DEC 0 10511_ACEOF 10512 10513 10514fi 10515{ echo "$as_me:$LINENO: checking whether be64enc is declared" >&5 10516echo $ECHO_N "checking whether be64enc is declared... $ECHO_C" >&6; } 10517if test "${ac_cv_have_decl_be64enc+set}" = set; then 10518 echo $ECHO_N "(cached) $ECHO_C" >&6 10519else 10520 cat >conftest.$ac_ext <<_ACEOF 10521/* confdefs.h. */ 10522_ACEOF 10523cat confdefs.h >>conftest.$ac_ext 10524cat >>conftest.$ac_ext <<_ACEOF 10525/* end confdefs.h. */ 10526#include <sys/endian.h> 10527 10528int 10529main () 10530{ 10531#ifndef be64enc 10532 (void) be64enc; 10533#endif 10534 10535 ; 10536 return 0; 10537} 10538_ACEOF 10539rm -f conftest.$ac_objext 10540if { (ac_try="$ac_compile" 10541case "(($ac_try" in 10542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10543 *) ac_try_echo=$ac_try;; 10544esac 10545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10546 (eval "$ac_compile") 2>conftest.er1 10547 ac_status=$? 10548 grep -v '^ *+' conftest.er1 >conftest.err 10549 rm -f conftest.er1 10550 cat conftest.err >&5 10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10552 (exit $ac_status); } && { 10553 test -z "$ac_c_werror_flag" || 10554 test ! -s conftest.err 10555 } && test -s conftest.$ac_objext; then 10556 ac_cv_have_decl_be64enc=yes 10557else 10558 echo "$as_me: failed program was:" >&5 10559sed 's/^/| /' conftest.$ac_ext >&5 10560 10561 ac_cv_have_decl_be64enc=no 10562fi 10563 10564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10565fi 10566{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_be64enc" >&5 10567echo "${ECHO_T}$ac_cv_have_decl_be64enc" >&6; } 10568if test $ac_cv_have_decl_be64enc = yes; then 10569 10570cat >>confdefs.h <<_ACEOF 10571#define HAVE_DECL_BE64ENC 1 10572_ACEOF 10573 10574 10575else 10576 cat >>confdefs.h <<_ACEOF 10577#define HAVE_DECL_BE64ENC 0 10578_ACEOF 10579 10580 10581fi 10582{ echo "$as_me:$LINENO: checking whether le64enc is declared" >&5 10583echo $ECHO_N "checking whether le64enc is declared... $ECHO_C" >&6; } 10584if test "${ac_cv_have_decl_le64enc+set}" = set; then 10585 echo $ECHO_N "(cached) $ECHO_C" >&6 10586else 10587 cat >conftest.$ac_ext <<_ACEOF 10588/* confdefs.h. */ 10589_ACEOF 10590cat confdefs.h >>conftest.$ac_ext 10591cat >>conftest.$ac_ext <<_ACEOF 10592/* end confdefs.h. */ 10593#include <sys/endian.h> 10594 10595int 10596main () 10597{ 10598#ifndef le64enc 10599 (void) le64enc; 10600#endif 10601 10602 ; 10603 return 0; 10604} 10605_ACEOF 10606rm -f conftest.$ac_objext 10607if { (ac_try="$ac_compile" 10608case "(($ac_try" in 10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10610 *) ac_try_echo=$ac_try;; 10611esac 10612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10613 (eval "$ac_compile") 2>conftest.er1 10614 ac_status=$? 10615 grep -v '^ *+' conftest.er1 >conftest.err 10616 rm -f conftest.er1 10617 cat conftest.err >&5 10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10619 (exit $ac_status); } && { 10620 test -z "$ac_c_werror_flag" || 10621 test ! -s conftest.err 10622 } && test -s conftest.$ac_objext; then 10623 ac_cv_have_decl_le64enc=yes 10624else 10625 echo "$as_me: failed program was:" >&5 10626sed 's/^/| /' conftest.$ac_ext >&5 10627 10628 ac_cv_have_decl_le64enc=no 10629fi 10630 10631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10632fi 10633{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_le64enc" >&5 10634echo "${ECHO_T}$ac_cv_have_decl_le64enc" >&6; } 10635if test $ac_cv_have_decl_le64enc = yes; then 10636 10637cat >>confdefs.h <<_ACEOF 10638#define HAVE_DECL_LE64ENC 1 10639_ACEOF 10640 10641 10642else 10643 cat >>confdefs.h <<_ACEOF 10644#define HAVE_DECL_LE64ENC 0 10645_ACEOF 10646 10647 10648fi 10649{ echo "$as_me:$LINENO: checking whether be64dec is declared" >&5 10650echo $ECHO_N "checking whether be64dec is declared... $ECHO_C" >&6; } 10651if test "${ac_cv_have_decl_be64dec+set}" = set; then 10652 echo $ECHO_N "(cached) $ECHO_C" >&6 10653else 10654 cat >conftest.$ac_ext <<_ACEOF 10655/* confdefs.h. */ 10656_ACEOF 10657cat confdefs.h >>conftest.$ac_ext 10658cat >>conftest.$ac_ext <<_ACEOF 10659/* end confdefs.h. */ 10660#include <sys/endian.h> 10661 10662int 10663main () 10664{ 10665#ifndef be64dec 10666 (void) be64dec; 10667#endif 10668 10669 ; 10670 return 0; 10671} 10672_ACEOF 10673rm -f conftest.$ac_objext 10674if { (ac_try="$ac_compile" 10675case "(($ac_try" in 10676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10677 *) ac_try_echo=$ac_try;; 10678esac 10679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10680 (eval "$ac_compile") 2>conftest.er1 10681 ac_status=$? 10682 grep -v '^ *+' conftest.er1 >conftest.err 10683 rm -f conftest.er1 10684 cat conftest.err >&5 10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10686 (exit $ac_status); } && { 10687 test -z "$ac_c_werror_flag" || 10688 test ! -s conftest.err 10689 } && test -s conftest.$ac_objext; then 10690 ac_cv_have_decl_be64dec=yes 10691else 10692 echo "$as_me: failed program was:" >&5 10693sed 's/^/| /' conftest.$ac_ext >&5 10694 10695 ac_cv_have_decl_be64dec=no 10696fi 10697 10698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10699fi 10700{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_be64dec" >&5 10701echo "${ECHO_T}$ac_cv_have_decl_be64dec" >&6; } 10702if test $ac_cv_have_decl_be64dec = yes; then 10703 10704cat >>confdefs.h <<_ACEOF 10705#define HAVE_DECL_BE64DEC 1 10706_ACEOF 10707 10708 10709else 10710 cat >>confdefs.h <<_ACEOF 10711#define HAVE_DECL_BE64DEC 0 10712_ACEOF 10713 10714 10715fi 10716{ echo "$as_me:$LINENO: checking whether le64dec is declared" >&5 10717echo $ECHO_N "checking whether le64dec is declared... $ECHO_C" >&6; } 10718if test "${ac_cv_have_decl_le64dec+set}" = set; then 10719 echo $ECHO_N "(cached) $ECHO_C" >&6 10720else 10721 cat >conftest.$ac_ext <<_ACEOF 10722/* confdefs.h. */ 10723_ACEOF 10724cat confdefs.h >>conftest.$ac_ext 10725cat >>conftest.$ac_ext <<_ACEOF 10726/* end confdefs.h. */ 10727#include <sys/endian.h> 10728 10729int 10730main () 10731{ 10732#ifndef le64dec 10733 (void) le64dec; 10734#endif 10735 10736 ; 10737 return 0; 10738} 10739_ACEOF 10740rm -f conftest.$ac_objext 10741if { (ac_try="$ac_compile" 10742case "(($ac_try" in 10743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10744 *) ac_try_echo=$ac_try;; 10745esac 10746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10747 (eval "$ac_compile") 2>conftest.er1 10748 ac_status=$? 10749 grep -v '^ *+' conftest.er1 >conftest.err 10750 rm -f conftest.er1 10751 cat conftest.err >&5 10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10753 (exit $ac_status); } && { 10754 test -z "$ac_c_werror_flag" || 10755 test ! -s conftest.err 10756 } && test -s conftest.$ac_objext; then 10757 ac_cv_have_decl_le64dec=yes 10758else 10759 echo "$as_me: failed program was:" >&5 10760sed 's/^/| /' conftest.$ac_ext >&5 10761 10762 ac_cv_have_decl_le64dec=no 10763fi 10764 10765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10766fi 10767{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_le64dec" >&5 10768echo "${ECHO_T}$ac_cv_have_decl_le64dec" >&6; } 10769if test $ac_cv_have_decl_le64dec = yes; then 10770 10771cat >>confdefs.h <<_ACEOF 10772#define HAVE_DECL_LE64DEC 1 10773_ACEOF 10774 10775 10776else 10777 cat >>confdefs.h <<_ACEOF 10778#define HAVE_DECL_LE64DEC 0 10779_ACEOF 10780 10781 10782fi 10783 10784 10785 10786{ echo "$as_me:$LINENO: checking whether fstatvfs is declared" >&5 10787echo $ECHO_N "checking whether fstatvfs is declared... $ECHO_C" >&6; } 10788if test "${ac_cv_have_decl_fstatvfs+set}" = set; then 10789 echo $ECHO_N "(cached) $ECHO_C" >&6 10790else 10791 cat >conftest.$ac_ext <<_ACEOF 10792/* confdefs.h. */ 10793_ACEOF 10794cat confdefs.h >>conftest.$ac_ext 10795cat >>conftest.$ac_ext <<_ACEOF 10796/* end confdefs.h. */ 10797#include <sys/statvfs.h> 10798 10799int 10800main () 10801{ 10802#ifndef fstatvfs 10803 (void) fstatvfs; 10804#endif 10805 10806 ; 10807 return 0; 10808} 10809_ACEOF 10810rm -f conftest.$ac_objext 10811if { (ac_try="$ac_compile" 10812case "(($ac_try" in 10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10814 *) ac_try_echo=$ac_try;; 10815esac 10816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10817 (eval "$ac_compile") 2>conftest.er1 10818 ac_status=$? 10819 grep -v '^ *+' conftest.er1 >conftest.err 10820 rm -f conftest.er1 10821 cat conftest.err >&5 10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10823 (exit $ac_status); } && { 10824 test -z "$ac_c_werror_flag" || 10825 test ! -s conftest.err 10826 } && test -s conftest.$ac_objext; then 10827 ac_cv_have_decl_fstatvfs=yes 10828else 10829 echo "$as_me: failed program was:" >&5 10830sed 's/^/| /' conftest.$ac_ext >&5 10831 10832 ac_cv_have_decl_fstatvfs=no 10833fi 10834 10835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10836fi 10837{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fstatvfs" >&5 10838echo "${ECHO_T}$ac_cv_have_decl_fstatvfs" >&6; } 10839if test $ac_cv_have_decl_fstatvfs = yes; then 10840 10841cat >>confdefs.h <<_ACEOF 10842#define HAVE_DECL_FSTATVFS 1 10843_ACEOF 10844 10845 10846else 10847 cat >>confdefs.h <<_ACEOF 10848#define HAVE_DECL_FSTATVFS 0 10849_ACEOF 10850 10851 10852fi 10853 10854 10855 10856{ echo "$as_me:$LINENO: checking whether setgroupent is declared" >&5 10857echo $ECHO_N "checking whether setgroupent is declared... $ECHO_C" >&6; } 10858if test "${ac_cv_have_decl_setgroupent+set}" = set; then 10859 echo $ECHO_N "(cached) $ECHO_C" >&6 10860else 10861 cat >conftest.$ac_ext <<_ACEOF 10862/* confdefs.h. */ 10863_ACEOF 10864cat confdefs.h >>conftest.$ac_ext 10865cat >>conftest.$ac_ext <<_ACEOF 10866/* end confdefs.h. */ 10867 10868#include <sys/types.h> 10869#include <grp.h> 10870#include <pwd.h> 10871 10872 10873int 10874main () 10875{ 10876#ifndef setgroupent 10877 (void) setgroupent; 10878#endif 10879 10880 ; 10881 return 0; 10882} 10883_ACEOF 10884rm -f conftest.$ac_objext 10885if { (ac_try="$ac_compile" 10886case "(($ac_try" in 10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10888 *) ac_try_echo=$ac_try;; 10889esac 10890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10891 (eval "$ac_compile") 2>conftest.er1 10892 ac_status=$? 10893 grep -v '^ *+' conftest.er1 >conftest.err 10894 rm -f conftest.er1 10895 cat conftest.err >&5 10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10897 (exit $ac_status); } && { 10898 test -z "$ac_c_werror_flag" || 10899 test ! -s conftest.err 10900 } && test -s conftest.$ac_objext; then 10901 ac_cv_have_decl_setgroupent=yes 10902else 10903 echo "$as_me: failed program was:" >&5 10904sed 's/^/| /' conftest.$ac_ext >&5 10905 10906 ac_cv_have_decl_setgroupent=no 10907fi 10908 10909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10910fi 10911{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_setgroupent" >&5 10912echo "${ECHO_T}$ac_cv_have_decl_setgroupent" >&6; } 10913if test $ac_cv_have_decl_setgroupent = yes; then 10914 10915cat >>confdefs.h <<_ACEOF 10916#define HAVE_DECL_SETGROUPENT 1 10917_ACEOF 10918 10919 10920else 10921 cat >>confdefs.h <<_ACEOF 10922#define HAVE_DECL_SETGROUPENT 0 10923_ACEOF 10924 10925 10926fi 10927{ echo "$as_me:$LINENO: checking whether setpassent is declared" >&5 10928echo $ECHO_N "checking whether setpassent is declared... $ECHO_C" >&6; } 10929if test "${ac_cv_have_decl_setpassent+set}" = set; then 10930 echo $ECHO_N "(cached) $ECHO_C" >&6 10931else 10932 cat >conftest.$ac_ext <<_ACEOF 10933/* confdefs.h. */ 10934_ACEOF 10935cat confdefs.h >>conftest.$ac_ext 10936cat >>conftest.$ac_ext <<_ACEOF 10937/* end confdefs.h. */ 10938 10939#include <sys/types.h> 10940#include <grp.h> 10941#include <pwd.h> 10942 10943 10944int 10945main () 10946{ 10947#ifndef setpassent 10948 (void) setpassent; 10949#endif 10950 10951 ; 10952 return 0; 10953} 10954_ACEOF 10955rm -f conftest.$ac_objext 10956if { (ac_try="$ac_compile" 10957case "(($ac_try" in 10958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10959 *) ac_try_echo=$ac_try;; 10960esac 10961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10962 (eval "$ac_compile") 2>conftest.er1 10963 ac_status=$? 10964 grep -v '^ *+' conftest.er1 >conftest.err 10965 rm -f conftest.er1 10966 cat conftest.err >&5 10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10968 (exit $ac_status); } && { 10969 test -z "$ac_c_werror_flag" || 10970 test ! -s conftest.err 10971 } && test -s conftest.$ac_objext; then 10972 ac_cv_have_decl_setpassent=yes 10973else 10974 echo "$as_me: failed program was:" >&5 10975sed 's/^/| /' conftest.$ac_ext >&5 10976 10977 ac_cv_have_decl_setpassent=no 10978fi 10979 10980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10981fi 10982{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_setpassent" >&5 10983echo "${ECHO_T}$ac_cv_have_decl_setpassent" >&6; } 10984if test $ac_cv_have_decl_setpassent = yes; then 10985 10986cat >>confdefs.h <<_ACEOF 10987#define HAVE_DECL_SETPASSENT 1 10988_ACEOF 10989 10990 10991else 10992 cat >>confdefs.h <<_ACEOF 10993#define HAVE_DECL_SETPASSENT 0 10994_ACEOF 10995 10996 10997fi 10998 10999 11000 11001# regcomp() and regexec() are also names of functions in the old V8 11002# regexp package. To avoid them, we need to find out who has regfree(). 11003 11004 11005{ echo "$as_me:$LINENO: checking for regfree in -lregex" >&5 11006echo $ECHO_N "checking for regfree in -lregex... $ECHO_C" >&6; } 11007if test "${ac_cv_lib_regex_regfree+set}" = set; then 11008 echo $ECHO_N "(cached) $ECHO_C" >&6 11009else 11010 ac_check_lib_save_LIBS=$LIBS 11011LIBS="-lregex $LIBS" 11012cat >conftest.$ac_ext <<_ACEOF 11013/* confdefs.h. */ 11014_ACEOF 11015cat confdefs.h >>conftest.$ac_ext 11016cat >>conftest.$ac_ext <<_ACEOF 11017/* end confdefs.h. */ 11018 11019/* Override any GCC internal prototype to avoid an error. 11020 Use char because int might match the return type of a GCC 11021 builtin and then its argument prototype would still apply. */ 11022#ifdef __cplusplus 11023extern "C" 11024#endif 11025char regfree (); 11026int 11027main () 11028{ 11029return regfree (); 11030 ; 11031 return 0; 11032} 11033_ACEOF 11034rm -f conftest.$ac_objext conftest$ac_exeext 11035if { (ac_try="$ac_link" 11036case "(($ac_try" in 11037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11038 *) ac_try_echo=$ac_try;; 11039esac 11040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11041 (eval "$ac_link") 2>conftest.er1 11042 ac_status=$? 11043 grep -v '^ *+' conftest.er1 >conftest.err 11044 rm -f conftest.er1 11045 cat conftest.err >&5 11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11047 (exit $ac_status); } && { 11048 test -z "$ac_c_werror_flag" || 11049 test ! -s conftest.err 11050 } && test -s conftest$ac_exeext && 11051 $as_test_x conftest$ac_exeext; then 11052 ac_cv_lib_regex_regfree=yes 11053else 11054 echo "$as_me: failed program was:" >&5 11055sed 's/^/| /' conftest.$ac_ext >&5 11056 11057 ac_cv_lib_regex_regfree=no 11058fi 11059 11060rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11061 conftest$ac_exeext conftest.$ac_ext 11062LIBS=$ac_check_lib_save_LIBS 11063fi 11064{ echo "$as_me:$LINENO: result: $ac_cv_lib_regex_regfree" >&5 11065echo "${ECHO_T}$ac_cv_lib_regex_regfree" >&6; } 11066if test $ac_cv_lib_regex_regfree = yes; then 11067 cat >>confdefs.h <<_ACEOF 11068#define HAVE_LIBREGEX 1 11069_ACEOF 11070 11071 LIBS="-lregex $LIBS" 11072 11073fi 11074 11075{ echo "$as_me:$LINENO: checking for library containing regfree" >&5 11076echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; } 11077if test "${ac_cv_search_regfree+set}" = set; then 11078 echo $ECHO_N "(cached) $ECHO_C" >&6 11079else 11080 ac_func_search_save_LIBS=$LIBS 11081cat >conftest.$ac_ext <<_ACEOF 11082/* confdefs.h. */ 11083_ACEOF 11084cat confdefs.h >>conftest.$ac_ext 11085cat >>conftest.$ac_ext <<_ACEOF 11086/* end confdefs.h. */ 11087 11088/* Override any GCC internal prototype to avoid an error. 11089 Use char because int might match the return type of a GCC 11090 builtin and then its argument prototype would still apply. */ 11091#ifdef __cplusplus 11092extern "C" 11093#endif 11094char regfree (); 11095int 11096main () 11097{ 11098return regfree (); 11099 ; 11100 return 0; 11101} 11102_ACEOF 11103for ac_lib in '' rx posix; do 11104 if test -z "$ac_lib"; then 11105 ac_res="none required" 11106 else 11107 ac_res=-l$ac_lib 11108 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11109 fi 11110 rm -f conftest.$ac_objext conftest$ac_exeext 11111if { (ac_try="$ac_link" 11112case "(($ac_try" in 11113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11114 *) ac_try_echo=$ac_try;; 11115esac 11116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11117 (eval "$ac_link") 2>conftest.er1 11118 ac_status=$? 11119 grep -v '^ *+' conftest.er1 >conftest.err 11120 rm -f conftest.er1 11121 cat conftest.err >&5 11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11123 (exit $ac_status); } && { 11124 test -z "$ac_c_werror_flag" || 11125 test ! -s conftest.err 11126 } && test -s conftest$ac_exeext && 11127 $as_test_x conftest$ac_exeext; then 11128 ac_cv_search_regfree=$ac_res 11129else 11130 echo "$as_me: failed program was:" >&5 11131sed 's/^/| /' conftest.$ac_ext >&5 11132 11133 11134fi 11135 11136rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11137 conftest$ac_exeext 11138 if test "${ac_cv_search_regfree+set}" = set; then 11139 break 11140fi 11141done 11142if test "${ac_cv_search_regfree+set}" = set; then 11143 : 11144else 11145 ac_cv_search_regfree=no 11146fi 11147rm conftest.$ac_ext 11148LIBS=$ac_func_search_save_LIBS 11149fi 11150{ echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5 11151echo "${ECHO_T}$ac_cv_search_regfree" >&6; } 11152ac_res=$ac_cv_search_regfree 11153if test "$ac_res" != no; then 11154 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11155 11156fi 11157 11158 11159cat >confcache <<\_ACEOF 11160# This file is a shell script that caches the results of configure 11161# tests run on this system so they can be shared between configure 11162# scripts and configure runs, see configure's option --config-cache. 11163# It is not useful on other systems. If it contains results you don't 11164# want to keep, you may remove or edit it. 11165# 11166# config.status only pays attention to the cache file if you give it 11167# the --recheck option to rerun configure. 11168# 11169# `ac_cv_env_foo' variables (set or unset) will be overridden when 11170# loading this file, other *unset* `ac_cv_foo' will be assigned the 11171# following values. 11172 11173_ACEOF 11174 11175# The following way of writing the cache mishandles newlines in values, 11176# but we know of no workaround that is simple, portable, and efficient. 11177# So, we kill variables containing newlines. 11178# Ultrix sh set writes to stderr and can't be redirected directly, 11179# and sets the high bit in the cache file unless we assign to the vars. 11180( 11181 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11182 eval ac_val=\$$ac_var 11183 case $ac_val in #( 11184 *${as_nl}*) 11185 case $ac_var in #( 11186 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 11187echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 11188 esac 11189 case $ac_var in #( 11190 _ | IFS | as_nl) ;; #( 11191 *) $as_unset $ac_var ;; 11192 esac ;; 11193 esac 11194 done 11195 11196 (set) 2>&1 | 11197 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11198 *${as_nl}ac_space=\ *) 11199 # `set' does not quote correctly, so add quotes (double-quote 11200 # substitution turns \\\\ into \\, and sed turns \\ into \). 11201 sed -n \ 11202 "s/'/'\\\\''/g; 11203 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11204 ;; #( 11205 *) 11206 # `set' quotes correctly as required by POSIX, so do not add quotes. 11207 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11208 ;; 11209 esac | 11210 sort 11211) | 11212 sed ' 11213 /^ac_cv_env_/b end 11214 t clear 11215 :clear 11216 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11217 t end 11218 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11219 :end' >>confcache 11220if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11221 if test -w "$cache_file"; then 11222 test "x$cache_file" != "x/dev/null" && 11223 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 11224echo "$as_me: updating cache $cache_file" >&6;} 11225 cat confcache >$cache_file 11226 else 11227 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 11228echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11229 fi 11230fi 11231rm -f confcache 11232 11233test "x$prefix" = xNONE && prefix=$ac_default_prefix 11234# Let make expand exec_prefix. 11235test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11236 11237DEFS=-DHAVE_CONFIG_H 11238 11239ac_libobjs= 11240ac_ltlibobjs= 11241for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11242 # 1. Remove the extension, and $U if already installed. 11243 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11244 ac_i=`echo "$ac_i" | sed "$ac_script"` 11245 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11246 # will be set to the directory where LIBOBJS objects are built. 11247 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11248 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 11249done 11250LIBOBJS=$ac_libobjs 11251 11252LTLIBOBJS=$ac_ltlibobjs 11253 11254 11255 11256: ${CONFIG_STATUS=./config.status} 11257ac_clean_files_save=$ac_clean_files 11258ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11259{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11260echo "$as_me: creating $CONFIG_STATUS" >&6;} 11261cat >$CONFIG_STATUS <<_ACEOF 11262#! $SHELL 11263# Generated by $as_me. 11264# Run this file to recreate the current configuration. 11265# Compiler output produced by configure, useful for debugging 11266# configure, is in config.log if it exists. 11267 11268debug=false 11269ac_cs_recheck=false 11270ac_cs_silent=false 11271SHELL=\${CONFIG_SHELL-$SHELL} 11272_ACEOF 11273 11274cat >>$CONFIG_STATUS <<\_ACEOF 11275## --------------------- ## 11276## M4sh Initialization. ## 11277## --------------------- ## 11278 11279# Be more Bourne compatible 11280DUALCASE=1; export DUALCASE # for MKS sh 11281if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11282 emulate sh 11283 NULLCMD=: 11284 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 11285 # is contrary to our usage. Disable this feature. 11286 alias -g '${1+"$@"}'='"$@"' 11287 setopt NO_GLOB_SUBST 11288else 11289 case `(set -o) 2>/dev/null` in 11290 *posix*) set -o posix ;; 11291esac 11292 11293fi 11294 11295 11296 11297 11298# PATH needs CR 11299# Avoid depending upon Character Ranges. 11300as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11301as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11302as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11303as_cr_digits='0123456789' 11304as_cr_alnum=$as_cr_Letters$as_cr_digits 11305 11306# The user is always right. 11307if test "${PATH_SEPARATOR+set}" != set; then 11308 echo "#! /bin/sh" >conf$$.sh 11309 echo "exit 0" >>conf$$.sh 11310 chmod +x conf$$.sh 11311 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11312 PATH_SEPARATOR=';' 11313 else 11314 PATH_SEPARATOR=: 11315 fi 11316 rm -f conf$$.sh 11317fi 11318 11319# Support unset when possible. 11320if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11321 as_unset=unset 11322else 11323 as_unset=false 11324fi 11325 11326 11327# IFS 11328# We need space, tab and new line, in precisely that order. Quoting is 11329# there to prevent editors from complaining about space-tab. 11330# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11331# splitting by setting IFS to empty value.) 11332as_nl=' 11333' 11334IFS=" "" $as_nl" 11335 11336# Find who we are. Look in the path if we contain no directory separator. 11337case $0 in 11338 *[\\/]* ) as_myself=$0 ;; 11339 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11340for as_dir in $PATH 11341do 11342 IFS=$as_save_IFS 11343 test -z "$as_dir" && as_dir=. 11344 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11345done 11346IFS=$as_save_IFS 11347 11348 ;; 11349esac 11350# We did not find ourselves, most probably we were run as `sh COMMAND' 11351# in which case we are not to be found in the path. 11352if test "x$as_myself" = x; then 11353 as_myself=$0 11354fi 11355if test ! -f "$as_myself"; then 11356 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11357 { (exit 1); exit 1; } 11358fi 11359 11360# Work around bugs in pre-3.0 UWIN ksh. 11361for as_var in ENV MAIL MAILPATH 11362do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 11363done 11364PS1='$ ' 11365PS2='> ' 11366PS4='+ ' 11367 11368# NLS nuisances. 11369for as_var in \ 11370 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 11371 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 11372 LC_TELEPHONE LC_TIME 11373do 11374 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 11375 eval $as_var=C; export $as_var 11376 else 11377 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 11378 fi 11379done 11380 11381# Required to use basename. 11382if expr a : '\(a\)' >/dev/null 2>&1 && 11383 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11384 as_expr=expr 11385else 11386 as_expr=false 11387fi 11388 11389if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11390 as_basename=basename 11391else 11392 as_basename=false 11393fi 11394 11395 11396# Name of the executable. 11397as_me=`$as_basename -- "$0" || 11398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11399 X"$0" : 'X\(//\)$' \| \ 11400 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11401echo X/"$0" | 11402 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11403 s//\1/ 11404 q 11405 } 11406 /^X\/\(\/\/\)$/{ 11407 s//\1/ 11408 q 11409 } 11410 /^X\/\(\/\).*/{ 11411 s//\1/ 11412 q 11413 } 11414 s/.*/./; q'` 11415 11416# CDPATH. 11417$as_unset CDPATH 11418 11419 11420 11421 as_lineno_1=$LINENO 11422 as_lineno_2=$LINENO 11423 test "x$as_lineno_1" != "x$as_lineno_2" && 11424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 11425 11426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 11427 # uniformly replaced by the line number. The first 'sed' inserts a 11428 # line-number line after each line using $LINENO; the second 'sed' 11429 # does the real work. The second script uses 'N' to pair each 11430 # line-number line with the line containing $LINENO, and appends 11431 # trailing '-' during substitution so that $LINENO is not a special 11432 # case at line end. 11433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 11434 # scripts with optimization help from Paolo Bonzini. Blame Lee 11435 # E. McMahon (1931-1989) for sed's syntax. :-) 11436 sed -n ' 11437 p 11438 /[$]LINENO/= 11439 ' <$as_myself | 11440 sed ' 11441 s/[$]LINENO.*/&-/ 11442 t lineno 11443 b 11444 :lineno 11445 N 11446 :loop 11447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 11448 t loop 11449 s/-\n.*// 11450 ' >$as_me.lineno && 11451 chmod +x "$as_me.lineno" || 11452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 11453 { (exit 1); exit 1; }; } 11454 11455 # Don't try to exec as it changes $[0], causing all sort of problems 11456 # (the dirname of $[0] is not the place where we might find the 11457 # original and so on. Autoconf is especially sensitive to this). 11458 . "./$as_me.lineno" 11459 # Exit status is that of the last command. 11460 exit 11461} 11462 11463 11464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11465 as_dirname=dirname 11466else 11467 as_dirname=false 11468fi 11469 11470ECHO_C= ECHO_N= ECHO_T= 11471case `echo -n x` in 11472-n*) 11473 case `echo 'x\c'` in 11474 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11475 *) ECHO_C='\c';; 11476 esac;; 11477*) 11478 ECHO_N='-n';; 11479esac 11480 11481if expr a : '\(a\)' >/dev/null 2>&1 && 11482 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11483 as_expr=expr 11484else 11485 as_expr=false 11486fi 11487 11488rm -f conf$$ conf$$.exe conf$$.file 11489if test -d conf$$.dir; then 11490 rm -f conf$$.dir/conf$$.file 11491else 11492 rm -f conf$$.dir 11493 mkdir conf$$.dir 11494fi 11495echo >conf$$.file 11496if ln -s conf$$.file conf$$ 2>/dev/null; then 11497 as_ln_s='ln -s' 11498 # ... but there are two gotchas: 11499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11501 # In both cases, we have to default to `cp -p'. 11502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11503 as_ln_s='cp -p' 11504elif ln conf$$.file conf$$ 2>/dev/null; then 11505 as_ln_s=ln 11506else 11507 as_ln_s='cp -p' 11508fi 11509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11510rmdir conf$$.dir 2>/dev/null 11511 11512if mkdir -p . 2>/dev/null; then 11513 as_mkdir_p=: 11514else 11515 test -d ./-p && rmdir ./-p 11516 as_mkdir_p=false 11517fi 11518 11519if test -x / >/dev/null 2>&1; then 11520 as_test_x='test -x' 11521else 11522 if ls -dL / >/dev/null 2>&1; then 11523 as_ls_L_option=L 11524 else 11525 as_ls_L_option= 11526 fi 11527 as_test_x=' 11528 eval sh -c '\'' 11529 if test -d "$1"; then 11530 test -d "$1/."; 11531 else 11532 case $1 in 11533 -*)set "./$1";; 11534 esac; 11535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 11536 ???[sx]*):;;*)false;;esac;fi 11537 '\'' sh 11538 ' 11539fi 11540as_executable_p=$as_test_x 11541 11542# Sed expression to map a string onto a valid CPP name. 11543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11544 11545# Sed expression to map a string onto a valid variable name. 11546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11547 11548 11549exec 6>&1 11550 11551# Save the log message, to keep $[0] and so on meaningful, and to 11552# report actual input values of CONFIG_FILES etc. instead of their 11553# values after options handling. 11554ac_log=" 11555This file was extended by libnbcompat $as_me noversion, which was 11556generated by GNU Autoconf 2.61. Invocation command line was 11557 11558 CONFIG_FILES = $CONFIG_FILES 11559 CONFIG_HEADERS = $CONFIG_HEADERS 11560 CONFIG_LINKS = $CONFIG_LINKS 11561 CONFIG_COMMANDS = $CONFIG_COMMANDS 11562 $ $0 $@ 11563 11564on `(hostname || uname -n) 2>/dev/null | sed 1q` 11565" 11566 11567_ACEOF 11568 11569cat >>$CONFIG_STATUS <<_ACEOF 11570# Files that config.status was made for. 11571config_files="$ac_config_files" 11572config_headers="$ac_config_headers" 11573 11574_ACEOF 11575 11576cat >>$CONFIG_STATUS <<\_ACEOF 11577ac_cs_usage="\ 11578\`$as_me' instantiates files from templates according to the 11579current configuration. 11580 11581Usage: $0 [OPTIONS] [FILE]... 11582 11583 -h, --help print this help, then exit 11584 -V, --version print version number and configuration settings, then exit 11585 -q, --quiet do not print progress messages 11586 -d, --debug don't remove temporary files 11587 --recheck update $as_me by reconfiguring in the same conditions 11588 --file=FILE[:TEMPLATE] 11589 instantiate the configuration file FILE 11590 --header=FILE[:TEMPLATE] 11591 instantiate the configuration header FILE 11592 11593Configuration files: 11594$config_files 11595 11596Configuration headers: 11597$config_headers 11598 11599Report bugs to <bug-autoconf@gnu.org>." 11600 11601_ACEOF 11602cat >>$CONFIG_STATUS <<_ACEOF 11603ac_cs_version="\\ 11604libnbcompat config.status noversion 11605configured by $0, generated by GNU Autoconf 2.61, 11606 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 11607 11608Copyright (C) 2006 Free Software Foundation, Inc. 11609This config.status script is free software; the Free Software Foundation 11610gives unlimited permission to copy, distribute and modify it." 11611 11612ac_pwd='$ac_pwd' 11613srcdir='$srcdir' 11614_ACEOF 11615 11616cat >>$CONFIG_STATUS <<\_ACEOF 11617# If no file are specified by the user, then we need to provide default 11618# value. By we need to know if files were specified by the user. 11619ac_need_defaults=: 11620while test $# != 0 11621do 11622 case $1 in 11623 --*=*) 11624 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11625 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11626 ac_shift=: 11627 ;; 11628 *) 11629 ac_option=$1 11630 ac_optarg=$2 11631 ac_shift=shift 11632 ;; 11633 esac 11634 11635 case $ac_option in 11636 # Handling of the options. 11637 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11638 ac_cs_recheck=: ;; 11639 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11640 echo "$ac_cs_version"; exit ;; 11641 --debug | --debu | --deb | --de | --d | -d ) 11642 debug=: ;; 11643 --file | --fil | --fi | --f ) 11644 $ac_shift 11645 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 11646 ac_need_defaults=false;; 11647 --header | --heade | --head | --hea ) 11648 $ac_shift 11649 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 11650 ac_need_defaults=false;; 11651 --he | --h) 11652 # Conflict between --help and --header 11653 { echo "$as_me: error: ambiguous option: $1 11654Try \`$0 --help' for more information." >&2 11655 { (exit 1); exit 1; }; };; 11656 --help | --hel | -h ) 11657 echo "$ac_cs_usage"; exit ;; 11658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11659 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11660 ac_cs_silent=: ;; 11661 11662 # This is an error. 11663 -*) { echo "$as_me: error: unrecognized option: $1 11664Try \`$0 --help' for more information." >&2 11665 { (exit 1); exit 1; }; } ;; 11666 11667 *) ac_config_targets="$ac_config_targets $1" 11668 ac_need_defaults=false ;; 11669 11670 esac 11671 shift 11672done 11673 11674ac_configure_extra_args= 11675 11676if $ac_cs_silent; then 11677 exec 6>/dev/null 11678 ac_configure_extra_args="$ac_configure_extra_args --silent" 11679fi 11680 11681_ACEOF 11682cat >>$CONFIG_STATUS <<_ACEOF 11683if \$ac_cs_recheck; then 11684 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 11685 CONFIG_SHELL=$SHELL 11686 export CONFIG_SHELL 11687 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11688fi 11689 11690_ACEOF 11691cat >>$CONFIG_STATUS <<\_ACEOF 11692exec 5>>config.log 11693{ 11694 echo 11695 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11696## Running $as_me. ## 11697_ASBOX 11698 echo "$ac_log" 11699} >&5 11700 11701_ACEOF 11702cat >>$CONFIG_STATUS <<_ACEOF 11703_ACEOF 11704 11705cat >>$CONFIG_STATUS <<\_ACEOF 11706 11707# Handling of arguments. 11708for ac_config_target in $ac_config_targets 11709do 11710 case $ac_config_target in 11711 "nbtool_config.h") CONFIG_HEADERS="$CONFIG_HEADERS nbtool_config.h" ;; 11712 "defs.mk") CONFIG_FILES="$CONFIG_FILES defs.mk" ;; 11713 11714 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11715echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11716 { (exit 1); exit 1; }; };; 11717 esac 11718done 11719 11720 11721# If the user did not use the arguments to specify the items to instantiate, 11722# then the envvar interface is used. Set only those that are not. 11723# We use the long form for the default assignment because of an extremely 11724# bizarre bug on SunOS 4.1.3. 11725if $ac_need_defaults; then 11726 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11727 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11728fi 11729 11730# Have a temporary directory for convenience. Make it in the build tree 11731# simply because there is no reason against having it here, and in addition, 11732# creating and moving files from /tmp can sometimes cause problems. 11733# Hook for its removal unless debugging. 11734# Note that there is a small window in which the directory will not be cleaned: 11735# after its creation but before its name has been assigned to `$tmp'. 11736$debug || 11737{ 11738 tmp= 11739 trap 'exit_status=$? 11740 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 11741' 0 11742 trap '{ (exit 1); exit 1; }' 1 2 13 15 11743} 11744# Create a (secure) tmp directory for tmp files. 11745 11746{ 11747 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11748 test -n "$tmp" && test -d "$tmp" 11749} || 11750{ 11751 tmp=./conf$$-$RANDOM 11752 (umask 077 && mkdir "$tmp") 11753} || 11754{ 11755 echo "$me: cannot create a temporary directory in ." >&2 11756 { (exit 1); exit 1; } 11757} 11758 11759# 11760# Set up the sed scripts for CONFIG_FILES section. 11761# 11762 11763# No need to generate the scripts if there are no CONFIG_FILES. 11764# This happens for instance when ./config.status config.h 11765if test -n "$CONFIG_FILES"; then 11766 11767_ACEOF 11768 11769 11770 11771ac_delim='%!_!# ' 11772for ac_last_try in false false false false false :; do 11773 cat >conf$$subs.sed <<_ACEOF 11774SHELL!$SHELL$ac_delim 11775PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 11776PACKAGE_NAME!$PACKAGE_NAME$ac_delim 11777PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 11778PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 11779PACKAGE_STRING!$PACKAGE_STRING$ac_delim 11780PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 11781exec_prefix!$exec_prefix$ac_delim 11782prefix!$prefix$ac_delim 11783program_transform_name!$program_transform_name$ac_delim 11784bindir!$bindir$ac_delim 11785sbindir!$sbindir$ac_delim 11786libexecdir!$libexecdir$ac_delim 11787datarootdir!$datarootdir$ac_delim 11788datadir!$datadir$ac_delim 11789sysconfdir!$sysconfdir$ac_delim 11790sharedstatedir!$sharedstatedir$ac_delim 11791localstatedir!$localstatedir$ac_delim 11792includedir!$includedir$ac_delim 11793oldincludedir!$oldincludedir$ac_delim 11794docdir!$docdir$ac_delim 11795infodir!$infodir$ac_delim 11796htmldir!$htmldir$ac_delim 11797dvidir!$dvidir$ac_delim 11798pdfdir!$pdfdir$ac_delim 11799psdir!$psdir$ac_delim 11800libdir!$libdir$ac_delim 11801localedir!$localedir$ac_delim 11802mandir!$mandir$ac_delim 11803DEFS!$DEFS$ac_delim 11804ECHO_C!$ECHO_C$ac_delim 11805ECHO_N!$ECHO_N$ac_delim 11806ECHO_T!$ECHO_T$ac_delim 11807LIBS!$LIBS$ac_delim 11808build_alias!$build_alias$ac_delim 11809host_alias!$host_alias$ac_delim 11810target_alias!$target_alias$ac_delim 11811CC!$CC$ac_delim 11812CFLAGS!$CFLAGS$ac_delim 11813LDFLAGS!$LDFLAGS$ac_delim 11814CPPFLAGS!$CPPFLAGS$ac_delim 11815ac_ct_CC!$ac_ct_CC$ac_delim 11816EXEEXT!$EXEEXT$ac_delim 11817OBJEXT!$OBJEXT$ac_delim 11818CPP!$CPP$ac_delim 11819GREP!$GREP$ac_delim 11820EGREP!$EGREP$ac_delim 11821BSHELL!$BSHELL$ac_delim 11822ALLOCA!$ALLOCA$ac_delim 11823LIBOBJS!$LIBOBJS$ac_delim 11824LTLIBOBJS!$LTLIBOBJS$ac_delim 11825_ACEOF 11826 11827 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then 11828 break 11829 elif $ac_last_try; then 11830 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11831echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11832 { (exit 1); exit 1; }; } 11833 else 11834 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11835 fi 11836done 11837 11838ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11839if test -n "$ac_eof"; then 11840 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11841 ac_eof=`expr $ac_eof + 1` 11842fi 11843 11844cat >>$CONFIG_STATUS <<_ACEOF 11845cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 11846/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 11847_ACEOF 11848sed ' 11849s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11850s/^/s,@/; s/!/@,|#_!!_#|/ 11851:n 11852t n 11853s/'"$ac_delim"'$/,g/; t 11854s/$/\\/; p 11855N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11856' >>$CONFIG_STATUS <conf$$subs.sed 11857rm -f conf$$subs.sed 11858cat >>$CONFIG_STATUS <<_ACEOF 11859:end 11860s/|#_!!_#|//g 11861CEOF$ac_eof 11862_ACEOF 11863 11864 11865# VPATH may cause trouble with some makes, so we remove $(srcdir), 11866# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11867# trailing colons and then remove the whole line if VPATH becomes empty 11868# (actually we leave an empty line to preserve line numbers). 11869if test "x$srcdir" = x.; then 11870 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11871s/:*\$(srcdir):*/:/ 11872s/:*\${srcdir}:*/:/ 11873s/:*@srcdir@:*/:/ 11874s/^\([^=]*=[ ]*\):*/\1/ 11875s/:*$// 11876s/^[^=]*=[ ]*$// 11877}' 11878fi 11879 11880cat >>$CONFIG_STATUS <<\_ACEOF 11881fi # test -n "$CONFIG_FILES" 11882 11883 11884for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS 11885do 11886 case $ac_tag in 11887 :[FHLC]) ac_mode=$ac_tag; continue;; 11888 esac 11889 case $ac_mode$ac_tag in 11890 :[FHL]*:*);; 11891 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 11892echo "$as_me: error: Invalid tag $ac_tag." >&2;} 11893 { (exit 1); exit 1; }; };; 11894 :[FH]-) ac_tag=-:-;; 11895 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11896 esac 11897 ac_save_IFS=$IFS 11898 IFS=: 11899 set x $ac_tag 11900 IFS=$ac_save_IFS 11901 shift 11902 ac_file=$1 11903 shift 11904 11905 case $ac_mode in 11906 :L) ac_source=$1;; 11907 :[FH]) 11908 ac_file_inputs= 11909 for ac_f 11910 do 11911 case $ac_f in 11912 -) ac_f="$tmp/stdin";; 11913 *) # Look for the file first in the build tree, then in the source tree 11914 # (if the path is not absolute). The absolute path cannot be DOS-style, 11915 # because $ac_f cannot contain `:'. 11916 test -f "$ac_f" || 11917 case $ac_f in 11918 [\\/$]*) false;; 11919 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11920 esac || 11921 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 11922echo "$as_me: error: cannot find input file: $ac_f" >&2;} 11923 { (exit 1); exit 1; }; };; 11924 esac 11925 ac_file_inputs="$ac_file_inputs $ac_f" 11926 done 11927 11928 # Let's still pretend it is `configure' which instantiates (i.e., don't 11929 # use $as_me), people would be surprised to read: 11930 # /* config.h. Generated by config.status. */ 11931 configure_input="Generated from "`IFS=: 11932 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 11933 if test x"$ac_file" != x-; then 11934 configure_input="$ac_file. $configure_input" 11935 { echo "$as_me:$LINENO: creating $ac_file" >&5 11936echo "$as_me: creating $ac_file" >&6;} 11937 fi 11938 11939 case $ac_tag in 11940 *:-:* | *:-) cat >"$tmp/stdin";; 11941 esac 11942 ;; 11943 esac 11944 11945 ac_dir=`$as_dirname -- "$ac_file" || 11946$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11947 X"$ac_file" : 'X\(//\)[^/]' \| \ 11948 X"$ac_file" : 'X\(//\)$' \| \ 11949 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11950echo X"$ac_file" | 11951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11952 s//\1/ 11953 q 11954 } 11955 /^X\(\/\/\)[^/].*/{ 11956 s//\1/ 11957 q 11958 } 11959 /^X\(\/\/\)$/{ 11960 s//\1/ 11961 q 11962 } 11963 /^X\(\/\).*/{ 11964 s//\1/ 11965 q 11966 } 11967 s/.*/./; q'` 11968 { as_dir="$ac_dir" 11969 case $as_dir in #( 11970 -*) as_dir=./$as_dir;; 11971 esac 11972 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 11973 as_dirs= 11974 while :; do 11975 case $as_dir in #( 11976 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 11977 *) as_qdir=$as_dir;; 11978 esac 11979 as_dirs="'$as_qdir' $as_dirs" 11980 as_dir=`$as_dirname -- "$as_dir" || 11981$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11982 X"$as_dir" : 'X\(//\)[^/]' \| \ 11983 X"$as_dir" : 'X\(//\)$' \| \ 11984 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11985echo X"$as_dir" | 11986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11987 s//\1/ 11988 q 11989 } 11990 /^X\(\/\/\)[^/].*/{ 11991 s//\1/ 11992 q 11993 } 11994 /^X\(\/\/\)$/{ 11995 s//\1/ 11996 q 11997 } 11998 /^X\(\/\).*/{ 11999 s//\1/ 12000 q 12001 } 12002 s/.*/./; q'` 12003 test -d "$as_dir" && break 12004 done 12005 test -z "$as_dirs" || eval "mkdir $as_dirs" 12006 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 12007echo "$as_me: error: cannot create directory $as_dir" >&2;} 12008 { (exit 1); exit 1; }; }; } 12009 ac_builddir=. 12010 12011case "$ac_dir" in 12012.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12013*) 12014 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12015 # A ".." for each directory in $ac_dir_suffix. 12016 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 12017 case $ac_top_builddir_sub in 12018 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12019 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12020 esac ;; 12021esac 12022ac_abs_top_builddir=$ac_pwd 12023ac_abs_builddir=$ac_pwd$ac_dir_suffix 12024# for backward compatibility: 12025ac_top_builddir=$ac_top_build_prefix 12026 12027case $srcdir in 12028 .) # We are building in place. 12029 ac_srcdir=. 12030 ac_top_srcdir=$ac_top_builddir_sub 12031 ac_abs_top_srcdir=$ac_pwd ;; 12032 [\\/]* | ?:[\\/]* ) # Absolute name. 12033 ac_srcdir=$srcdir$ac_dir_suffix; 12034 ac_top_srcdir=$srcdir 12035 ac_abs_top_srcdir=$srcdir ;; 12036 *) # Relative name. 12037 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12038 ac_top_srcdir=$ac_top_build_prefix$srcdir 12039 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12040esac 12041ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12042 12043 12044 case $ac_mode in 12045 :F) 12046 # 12047 # CONFIG_FILE 12048 # 12049 12050_ACEOF 12051 12052cat >>$CONFIG_STATUS <<\_ACEOF 12053# If the template does not know about datarootdir, expand it. 12054# FIXME: This hack should be removed a few years after 2.60. 12055ac_datarootdir_hack=; ac_datarootdir_seen= 12056 12057case `sed -n '/datarootdir/ { 12058 p 12059 q 12060} 12061/@datadir@/p 12062/@docdir@/p 12063/@infodir@/p 12064/@localedir@/p 12065/@mandir@/p 12066' $ac_file_inputs` in 12067*datarootdir*) ac_datarootdir_seen=yes;; 12068*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12069 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12070echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12071_ACEOF 12072cat >>$CONFIG_STATUS <<_ACEOF 12073 ac_datarootdir_hack=' 12074 s&@datadir@&$datadir&g 12075 s&@docdir@&$docdir&g 12076 s&@infodir@&$infodir&g 12077 s&@localedir@&$localedir&g 12078 s&@mandir@&$mandir&g 12079 s&\\\${datarootdir}&$datarootdir&g' ;; 12080esac 12081_ACEOF 12082 12083# Neutralize VPATH when `$srcdir' = `.'. 12084# Shell code in configure.ac might set extrasub. 12085# FIXME: do we really want to maintain this feature? 12086cat >>$CONFIG_STATUS <<_ACEOF 12087 sed "$ac_vpsub 12088$extrasub 12089_ACEOF 12090cat >>$CONFIG_STATUS <<\_ACEOF 12091:t 12092/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12093s&@configure_input@&$configure_input&;t t 12094s&@top_builddir@&$ac_top_builddir_sub&;t t 12095s&@srcdir@&$ac_srcdir&;t t 12096s&@abs_srcdir@&$ac_abs_srcdir&;t t 12097s&@top_srcdir@&$ac_top_srcdir&;t t 12098s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12099s&@builddir@&$ac_builddir&;t t 12100s&@abs_builddir@&$ac_abs_builddir&;t t 12101s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12102$ac_datarootdir_hack 12103" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out 12104 12105test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12106 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12107 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12108 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12109which seems to be undefined. Please make sure it is defined." >&5 12110echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12111which seems to be undefined. Please make sure it is defined." >&2;} 12112 12113 rm -f "$tmp/stdin" 12114 case $ac_file in 12115 -) cat "$tmp/out"; rm -f "$tmp/out";; 12116 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 12117 esac 12118 ;; 12119 :H) 12120 # 12121 # CONFIG_HEADER 12122 # 12123_ACEOF 12124 12125# Transform confdefs.h into a sed script `conftest.defines', that 12126# substitutes the proper values into config.h.in to produce config.h. 12127rm -f conftest.defines conftest.tail 12128# First, append a space to every undef/define line, to ease matching. 12129echo 's/$/ /' >conftest.defines 12130# Then, protect against being on the right side of a sed subst, or in 12131# an unquoted here document, in config.status. If some macros were 12132# called several times there might be several #defines for the same 12133# symbol, which is useless. But do not sort them, since the last 12134# AC_DEFINE must be honored. 12135ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12136# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 12137# NAME is the cpp macro being defined, VALUE is the value it is being given. 12138# PARAMS is the parameter list in the macro definition--in most cases, it's 12139# just an empty string. 12140ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 12141ac_dB='\\)[ (].*,\\1define\\2' 12142ac_dC=' ' 12143ac_dD=' ,' 12144 12145uniq confdefs.h | 12146 sed -n ' 12147 t rset 12148 :rset 12149 s/^[ ]*#[ ]*define[ ][ ]*// 12150 t ok 12151 d 12152 :ok 12153 s/[\\&,]/\\&/g 12154 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 12155 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 12156 ' >>conftest.defines 12157 12158# Remove the space that was appended to ease matching. 12159# Then replace #undef with comments. This is necessary, for 12160# example, in the case of _POSIX_SOURCE, which is predefined and required 12161# on some systems where configure will not decide to define it. 12162# (The regexp can be short, since the line contains either #define or #undef.) 12163echo 's/ $// 12164s,^[ #]*u.*,/* & */,' >>conftest.defines 12165 12166# Break up conftest.defines: 12167ac_max_sed_lines=50 12168 12169# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 12170# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 12171# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 12172# et cetera. 12173ac_in='$ac_file_inputs' 12174ac_out='"$tmp/out1"' 12175ac_nxt='"$tmp/out2"' 12176 12177while : 12178do 12179 # Write a here document: 12180 cat >>$CONFIG_STATUS <<_ACEOF 12181 # First, check the format of the line: 12182 cat >"\$tmp/defines.sed" <<\\CEOF 12183/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 12184/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 12185b 12186:def 12187_ACEOF 12188 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 12189 echo 'CEOF 12190 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 12191 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 12192 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 12193 grep . conftest.tail >/dev/null || break 12194 rm -f conftest.defines 12195 mv conftest.tail conftest.defines 12196done 12197rm -f conftest.defines conftest.tail 12198 12199echo "ac_result=$ac_in" >>$CONFIG_STATUS 12200cat >>$CONFIG_STATUS <<\_ACEOF 12201 if test x"$ac_file" != x-; then 12202 echo "/* $configure_input */" >"$tmp/config.h" 12203 cat "$ac_result" >>"$tmp/config.h" 12204 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 12205 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 12206echo "$as_me: $ac_file is unchanged" >&6;} 12207 else 12208 rm -f $ac_file 12209 mv "$tmp/config.h" $ac_file 12210 fi 12211 else 12212 echo "/* $configure_input */" 12213 cat "$ac_result" 12214 fi 12215 rm -f "$tmp/out12" 12216 ;; 12217 12218 12219 esac 12220 12221done # for ac_tag 12222 12223 12224{ (exit 0); exit 0; } 12225_ACEOF 12226chmod +x $CONFIG_STATUS 12227ac_clean_files=$ac_clean_files_save 12228 12229 12230# configure is writing to config.log, and then calls config.status. 12231# config.status does its own redirection, appending to config.log. 12232# Unfortunately, on DOS this fails, as config.log is still kept open 12233# by configure, so config.status won't be able to write to it; its 12234# output is simply discarded. So we exec the FD to /dev/null, 12235# effectively closing config.log, so it can be properly (re)opened and 12236# appended to by config.status. When coming back to configure, we 12237# need to make the FD available again. 12238if test "$no_create" != yes; then 12239 ac_cs_success=: 12240 ac_config_status_args= 12241 test "$silent" = yes && 12242 ac_config_status_args="$ac_config_status_args --quiet" 12243 exec 5>/dev/null 12244 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12245 exec 5>>config.log 12246 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12247 # would make configure fail if this is the last instruction. 12248 $ac_cs_success || { (exit 1); exit 1; } 12249fi 12250 12251