configure revision 189006
1#! /bin/sh 2# From configure.ac Revision: 1.415 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.61 for OpenSSH Portable. 5# 6# Report bugs to <openssh-unix-dev@mindrot.org>. 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 10# This configure script is free software; the Free Software Foundation 11# gives unlimited permission to copy, distribute and modify it. 12## --------------------- ## 13## M4sh Initialization. ## 14## --------------------- ## 15 16# Be more Bourne compatible 17DUALCASE=1; export DUALCASE # for MKS sh 18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19 emulate sh 20 NULLCMD=: 21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22 # is contrary to our usage. Disable this feature. 23 alias -g '${1+"$@"}'='"$@"' 24 setopt NO_GLOB_SUBST 25else 26 case `(set -o) 2>/dev/null` in 27 *posix*) set -o posix ;; 28esac 29 30fi 31 32 33 34 35# PATH needs CR 36# Avoid depending upon Character Ranges. 37as_cr_letters='abcdefghijklmnopqrstuvwxyz' 38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 39as_cr_Letters=$as_cr_letters$as_cr_LETTERS 40as_cr_digits='0123456789' 41as_cr_alnum=$as_cr_Letters$as_cr_digits 42 43# The user is always right. 44if test "${PATH_SEPARATOR+set}" != set; then 45 echo "#! /bin/sh" >conf$$.sh 46 echo "exit 0" >>conf$$.sh 47 chmod +x conf$$.sh 48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 49 PATH_SEPARATOR=';' 50 else 51 PATH_SEPARATOR=: 52 fi 53 rm -f conf$$.sh 54fi 55 56# Support unset when possible. 57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 58 as_unset=unset 59else 60 as_unset=false 61fi 62 63 64# IFS 65# We need space, tab and new line, in precisely that order. Quoting is 66# there to prevent editors from complaining about space-tab. 67# (If _AS_PATH_WALK were called with IFS unset, it would disable word 68# splitting by setting IFS to empty value.) 69as_nl=' 70' 71IFS=" "" $as_nl" 72 73# Find who we are. Look in the path if we contain no directory separator. 74case $0 in 75 *[\\/]* ) as_myself=$0 ;; 76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 77for as_dir in $PATH 78do 79 IFS=$as_save_IFS 80 test -z "$as_dir" && as_dir=. 81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 82done 83IFS=$as_save_IFS 84 85 ;; 86esac 87# We did not find ourselves, most probably we were run as `sh COMMAND' 88# in which case we are not to be found in the path. 89if test "x$as_myself" = x; then 90 as_myself=$0 91fi 92if test ! -f "$as_myself"; then 93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 94 { (exit 1); exit 1; } 95fi 96 97# Work around bugs in pre-3.0 UWIN ksh. 98for as_var in ENV MAIL MAILPATH 99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 100done 101PS1='$ ' 102PS2='> ' 103PS4='+ ' 104 105# NLS nuisances. 106for as_var in \ 107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 109 LC_TELEPHONE LC_TIME 110do 111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 112 eval $as_var=C; export $as_var 113 else 114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 115 fi 116done 117 118# Required to use basename. 119if expr a : '\(a\)' >/dev/null 2>&1 && 120 test "X`expr 00001 : '.*\(...\)'`" = X001; then 121 as_expr=expr 122else 123 as_expr=false 124fi 125 126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 127 as_basename=basename 128else 129 as_basename=false 130fi 131 132 133# Name of the executable. 134as_me=`$as_basename -- "$0" || 135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 136 X"$0" : 'X\(//\)$' \| \ 137 X"$0" : 'X\(/\)' \| . 2>/dev/null || 138echo X/"$0" | 139 sed '/^.*\/\([^/][^/]*\)\/*$/{ 140 s//\1/ 141 q 142 } 143 /^X\/\(\/\/\)$/{ 144 s//\1/ 145 q 146 } 147 /^X\/\(\/\).*/{ 148 s//\1/ 149 q 150 } 151 s/.*/./; q'` 152 153# CDPATH. 154$as_unset CDPATH 155 156 157if test "x$CONFIG_SHELL" = x; then 158 if (eval ":") 2>/dev/null; then 159 as_have_required=yes 160else 161 as_have_required=no 162fi 163 164 if test $as_have_required = yes && (eval ": 165(as_func_return () { 166 (exit \$1) 167} 168as_func_success () { 169 as_func_return 0 170} 171as_func_failure () { 172 as_func_return 1 173} 174as_func_ret_success () { 175 return 0 176} 177as_func_ret_failure () { 178 return 1 179} 180 181exitcode=0 182if as_func_success; then 183 : 184else 185 exitcode=1 186 echo as_func_success failed. 187fi 188 189if as_func_failure; then 190 exitcode=1 191 echo as_func_failure succeeded. 192fi 193 194if as_func_ret_success; then 195 : 196else 197 exitcode=1 198 echo as_func_ret_success failed. 199fi 200 201if as_func_ret_failure; then 202 exitcode=1 203 echo as_func_ret_failure succeeded. 204fi 205 206if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 207 : 208else 209 exitcode=1 210 echo positional parameters were not saved. 211fi 212 213test \$exitcode = 0) || { (exit 1); exit 1; } 214 215( 216 as_lineno_1=\$LINENO 217 as_lineno_2=\$LINENO 218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 220") 2> /dev/null; then 221 : 222else 223 as_candidate_shells= 224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 226do 227 IFS=$as_save_IFS 228 test -z "$as_dir" && as_dir=. 229 case $as_dir in 230 /*) 231 for as_base in sh bash ksh sh5; do 232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 233 done;; 234 esac 235done 236IFS=$as_save_IFS 237 238 239 for as_shell in $as_candidate_shells $SHELL; do 240 # Try only shells that exist, to save several forks. 241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 242 { ("$as_shell") 2> /dev/null <<\_ASEOF 243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 244 emulate sh 245 NULLCMD=: 246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 247 # is contrary to our usage. Disable this feature. 248 alias -g '${1+"$@"}'='"$@"' 249 setopt NO_GLOB_SUBST 250else 251 case `(set -o) 2>/dev/null` in 252 *posix*) set -o posix ;; 253esac 254 255fi 256 257 258: 259_ASEOF 260}; then 261 CONFIG_SHELL=$as_shell 262 as_have_required=yes 263 if { "$as_shell" 2> /dev/null <<\_ASEOF 264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 265 emulate sh 266 NULLCMD=: 267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 268 # is contrary to our usage. Disable this feature. 269 alias -g '${1+"$@"}'='"$@"' 270 setopt NO_GLOB_SUBST 271else 272 case `(set -o) 2>/dev/null` in 273 *posix*) set -o posix ;; 274esac 275 276fi 277 278 279: 280(as_func_return () { 281 (exit $1) 282} 283as_func_success () { 284 as_func_return 0 285} 286as_func_failure () { 287 as_func_return 1 288} 289as_func_ret_success () { 290 return 0 291} 292as_func_ret_failure () { 293 return 1 294} 295 296exitcode=0 297if as_func_success; then 298 : 299else 300 exitcode=1 301 echo as_func_success failed. 302fi 303 304if as_func_failure; then 305 exitcode=1 306 echo as_func_failure succeeded. 307fi 308 309if as_func_ret_success; then 310 : 311else 312 exitcode=1 313 echo as_func_ret_success failed. 314fi 315 316if as_func_ret_failure; then 317 exitcode=1 318 echo as_func_ret_failure succeeded. 319fi 320 321if ( set x; as_func_ret_success y && test x = "$1" ); then 322 : 323else 324 exitcode=1 325 echo positional parameters were not saved. 326fi 327 328test $exitcode = 0) || { (exit 1); exit 1; } 329 330( 331 as_lineno_1=$LINENO 332 as_lineno_2=$LINENO 333 test "x$as_lineno_1" != "x$as_lineno_2" && 334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 335 336_ASEOF 337}; then 338 break 339fi 340 341fi 342 343 done 344 345 if test "x$CONFIG_SHELL" != x; then 346 for as_var in BASH_ENV ENV 347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 348 done 349 export CONFIG_SHELL 350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 351fi 352 353 354 if test $as_have_required = no; then 355 echo This script requires a shell more modern than all the 356 echo shells that I found on your system. Please install a 357 echo modern shell, or manually run the script under such a 358 echo shell if you do have one. 359 { (exit 1); exit 1; } 360fi 361 362 363fi 364 365fi 366 367 368 369(eval "as_func_return () { 370 (exit \$1) 371} 372as_func_success () { 373 as_func_return 0 374} 375as_func_failure () { 376 as_func_return 1 377} 378as_func_ret_success () { 379 return 0 380} 381as_func_ret_failure () { 382 return 1 383} 384 385exitcode=0 386if as_func_success; then 387 : 388else 389 exitcode=1 390 echo as_func_success failed. 391fi 392 393if as_func_failure; then 394 exitcode=1 395 echo as_func_failure succeeded. 396fi 397 398if as_func_ret_success; then 399 : 400else 401 exitcode=1 402 echo as_func_ret_success failed. 403fi 404 405if as_func_ret_failure; then 406 exitcode=1 407 echo as_func_ret_failure succeeded. 408fi 409 410if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 411 : 412else 413 exitcode=1 414 echo positional parameters were not saved. 415fi 416 417test \$exitcode = 0") || { 418 echo No shell found that supports shell functions. 419 echo Please tell autoconf@gnu.org about your system, 420 echo including any error possibly output before this 421 echo message 422} 423 424 425 426 as_lineno_1=$LINENO 427 as_lineno_2=$LINENO 428 test "x$as_lineno_1" != "x$as_lineno_2" && 429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 430 431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 432 # uniformly replaced by the line number. The first 'sed' inserts a 433 # line-number line after each line using $LINENO; the second 'sed' 434 # does the real work. The second script uses 'N' to pair each 435 # line-number line with the line containing $LINENO, and appends 436 # trailing '-' during substitution so that $LINENO is not a special 437 # case at line end. 438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 439 # scripts with optimization help from Paolo Bonzini. Blame Lee 440 # E. McMahon (1931-1989) for sed's syntax. :-) 441 sed -n ' 442 p 443 /[$]LINENO/= 444 ' <$as_myself | 445 sed ' 446 s/[$]LINENO.*/&-/ 447 t lineno 448 b 449 :lineno 450 N 451 :loop 452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 453 t loop 454 s/-\n.*// 455 ' >$as_me.lineno && 456 chmod +x "$as_me.lineno" || 457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 458 { (exit 1); exit 1; }; } 459 460 # Don't try to exec as it changes $[0], causing all sort of problems 461 # (the dirname of $[0] is not the place where we might find the 462 # original and so on. Autoconf is especially sensitive to this). 463 . "./$as_me.lineno" 464 # Exit status is that of the last command. 465 exit 466} 467 468 469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 470 as_dirname=dirname 471else 472 as_dirname=false 473fi 474 475ECHO_C= ECHO_N= ECHO_T= 476case `echo -n x` in 477-n*) 478 case `echo 'x\c'` in 479 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 480 *) ECHO_C='\c';; 481 esac;; 482*) 483 ECHO_N='-n';; 484esac 485 486if expr a : '\(a\)' >/dev/null 2>&1 && 487 test "X`expr 00001 : '.*\(...\)'`" = X001; then 488 as_expr=expr 489else 490 as_expr=false 491fi 492 493rm -f conf$$ conf$$.exe conf$$.file 494if test -d conf$$.dir; then 495 rm -f conf$$.dir/conf$$.file 496else 497 rm -f conf$$.dir 498 mkdir conf$$.dir 499fi 500echo >conf$$.file 501if ln -s conf$$.file conf$$ 2>/dev/null; then 502 as_ln_s='ln -s' 503 # ... but there are two gotchas: 504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 506 # In both cases, we have to default to `cp -p'. 507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 508 as_ln_s='cp -p' 509elif ln conf$$.file conf$$ 2>/dev/null; then 510 as_ln_s=ln 511else 512 as_ln_s='cp -p' 513fi 514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 515rmdir conf$$.dir 2>/dev/null 516 517if mkdir -p . 2>/dev/null; then 518 as_mkdir_p=: 519else 520 test -d ./-p && rmdir ./-p 521 as_mkdir_p=false 522fi 523 524if test -x / >/dev/null 2>&1; then 525 as_test_x='test -x' 526else 527 if ls -dL / >/dev/null 2>&1; then 528 as_ls_L_option=L 529 else 530 as_ls_L_option= 531 fi 532 as_test_x=' 533 eval sh -c '\'' 534 if test -d "$1"; then 535 test -d "$1/."; 536 else 537 case $1 in 538 -*)set "./$1";; 539 esac; 540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 541 ???[sx]*):;;*)false;;esac;fi 542 '\'' sh 543 ' 544fi 545as_executable_p=$as_test_x 546 547# Sed expression to map a string onto a valid CPP name. 548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 549 550# Sed expression to map a string onto a valid variable name. 551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 552 553 554 555exec 7<&0 </dev/null 6>&1 556 557# Name of the host. 558# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 559# so uname gets run too. 560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 561 562# 563# Initializations. 564# 565ac_default_prefix=/usr/local 566ac_clean_files= 567ac_config_libobj_dir=. 568LIBOBJS= 569cross_compiling=no 570subdirs= 571MFLAGS= 572MAKEFLAGS= 573SHELL=${CONFIG_SHELL-/bin/sh} 574 575# Identity of this package. 576PACKAGE_NAME='OpenSSH' 577PACKAGE_TARNAME='openssh' 578PACKAGE_VERSION='Portable' 579PACKAGE_STRING='OpenSSH Portable' 580PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org' 581 582ac_unique_file="ssh.c" 583# Factoring default headers for most tests. 584ac_includes_default="\ 585#include <stdio.h> 586#ifdef HAVE_SYS_TYPES_H 587# include <sys/types.h> 588#endif 589#ifdef HAVE_SYS_STAT_H 590# include <sys/stat.h> 591#endif 592#ifdef STDC_HEADERS 593# include <stdlib.h> 594# include <stddef.h> 595#else 596# ifdef HAVE_STDLIB_H 597# include <stdlib.h> 598# endif 599#endif 600#ifdef HAVE_STRING_H 601# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 602# include <memory.h> 603# endif 604# include <string.h> 605#endif 606#ifdef HAVE_STRINGS_H 607# include <strings.h> 608#endif 609#ifdef HAVE_INTTYPES_H 610# include <inttypes.h> 611#endif 612#ifdef HAVE_STDINT_H 613# include <stdint.h> 614#endif 615#ifdef HAVE_UNISTD_H 616# include <unistd.h> 617#endif" 618 619ac_subst_vars='SHELL 620PATH_SEPARATOR 621PACKAGE_NAME 622PACKAGE_TARNAME 623PACKAGE_VERSION 624PACKAGE_STRING 625PACKAGE_BUGREPORT 626exec_prefix 627prefix 628program_transform_name 629bindir 630sbindir 631libexecdir 632datarootdir 633datadir 634sysconfdir 635sharedstatedir 636localstatedir 637includedir 638oldincludedir 639docdir 640infodir 641htmldir 642dvidir 643pdfdir 644psdir 645libdir 646localedir 647mandir 648DEFS 649ECHO_C 650ECHO_N 651ECHO_T 652LIBS 653build_alias 654host_alias 655target_alias 656CC 657CFLAGS 658LDFLAGS 659CPPFLAGS 660ac_ct_CC 661EXEEXT 662OBJEXT 663build 664build_cpu 665build_vendor 666build_os 667host 668host_cpu 669host_vendor 670host_os 671CPP 672GREP 673EGREP 674AWK 675RANLIB 676INSTALL_PROGRAM 677INSTALL_SCRIPT 678INSTALL_DATA 679AR 680CAT 681KILL 682PERL 683SED 684ENT 685TEST_MINUS_S_SH 686SH 687TEST_SHELL 688PATH_GROUPADD_PROG 689PATH_USERADD_PROG 690MAKE_PACKAGE_SUPPORTED 691STARTUP_SCRIPT_SHELL 692LOGIN_PROGRAM_FALLBACK 693PATH_PASSWD_PROG 694LD 695SSHDLIBS 696LIBEDIT 697INSTALL_SSH_RAND_HELPER 698SSH_PRIVSEP_USER 699PROG_LS 700PROG_NETSTAT 701PROG_ARP 702PROG_IFCONFIG 703PROG_JSTAT 704PROG_PS 705PROG_SAR 706PROG_W 707PROG_WHO 708PROG_LAST 709PROG_LASTLOG 710PROG_DF 711PROG_VMSTAT 712PROG_UPTIME 713PROG_IPCS 714PROG_TAIL 715INSTALL_SSH_PRNG_CMDS 716OPENSC_CONFIG 717PRIVSEP_PATH 718xauth_path 719STRIP_OPT 720XAUTH_PATH 721NROFF 722MANTYPE 723mansubdir 724user_path 725piddir 726TEST_SSH_IPV6 727LIBOBJS 728LTLIBOBJS' 729ac_subst_files='' 730 ac_precious_vars='build_alias 731host_alias 732target_alias 733CC 734CFLAGS 735LDFLAGS 736LIBS 737CPPFLAGS 738CPP' 739 740 741# Initialize some variables set by options. 742ac_init_help= 743ac_init_version=false 744# The variables have the same names as the options, with 745# dashes changed to underlines. 746cache_file=/dev/null 747exec_prefix=NONE 748no_create= 749no_recursion= 750prefix=NONE 751program_prefix=NONE 752program_suffix=NONE 753program_transform_name=s,x,x, 754silent= 755site= 756srcdir= 757verbose= 758x_includes=NONE 759x_libraries=NONE 760 761# Installation directory options. 762# These are left unexpanded so users can "make install exec_prefix=/foo" 763# and all the variables that are supposed to be based on exec_prefix 764# by default will actually change. 765# Use braces instead of parens because sh, perl, etc. also accept them. 766# (The list follows the same order as the GNU Coding Standards.) 767bindir='${exec_prefix}/bin' 768sbindir='${exec_prefix}/sbin' 769libexecdir='${exec_prefix}/libexec' 770datarootdir='${prefix}/share' 771datadir='${datarootdir}' 772sysconfdir='${prefix}/etc' 773sharedstatedir='${prefix}/com' 774localstatedir='${prefix}/var' 775includedir='${prefix}/include' 776oldincludedir='/usr/include' 777docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 778infodir='${datarootdir}/info' 779htmldir='${docdir}' 780dvidir='${docdir}' 781pdfdir='${docdir}' 782psdir='${docdir}' 783libdir='${exec_prefix}/lib' 784localedir='${datarootdir}/locale' 785mandir='${datarootdir}/man' 786 787ac_prev= 788ac_dashdash= 789for ac_option 790do 791 # If the previous option needs an argument, assign it. 792 if test -n "$ac_prev"; then 793 eval $ac_prev=\$ac_option 794 ac_prev= 795 continue 796 fi 797 798 case $ac_option in 799 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 800 *) ac_optarg=yes ;; 801 esac 802 803 # Accept the important Cygnus configure options, so we can diagnose typos. 804 805 case $ac_dashdash$ac_option in 806 --) 807 ac_dashdash=yes ;; 808 809 -bindir | --bindir | --bindi | --bind | --bin | --bi) 810 ac_prev=bindir ;; 811 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 812 bindir=$ac_optarg ;; 813 814 -build | --build | --buil | --bui | --bu) 815 ac_prev=build_alias ;; 816 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 817 build_alias=$ac_optarg ;; 818 819 -cache-file | --cache-file | --cache-fil | --cache-fi \ 820 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 821 ac_prev=cache_file ;; 822 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 823 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 824 cache_file=$ac_optarg ;; 825 826 --config-cache | -C) 827 cache_file=config.cache ;; 828 829 -datadir | --datadir | --datadi | --datad) 830 ac_prev=datadir ;; 831 -datadir=* | --datadir=* | --datadi=* | --datad=*) 832 datadir=$ac_optarg ;; 833 834 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 835 | --dataroo | --dataro | --datar) 836 ac_prev=datarootdir ;; 837 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 838 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 839 datarootdir=$ac_optarg ;; 840 841 -disable-* | --disable-*) 842 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 843 # Reject names that are not valid shell variable names. 844 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 845 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 846 { (exit 1); exit 1; }; } 847 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 848 eval enable_$ac_feature=no ;; 849 850 -docdir | --docdir | --docdi | --doc | --do) 851 ac_prev=docdir ;; 852 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 853 docdir=$ac_optarg ;; 854 855 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 856 ac_prev=dvidir ;; 857 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 858 dvidir=$ac_optarg ;; 859 860 -enable-* | --enable-*) 861 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 862 # Reject names that are not valid shell variable names. 863 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 864 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 865 { (exit 1); exit 1; }; } 866 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 867 eval enable_$ac_feature=\$ac_optarg ;; 868 869 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 870 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 871 | --exec | --exe | --ex) 872 ac_prev=exec_prefix ;; 873 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 874 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 875 | --exec=* | --exe=* | --ex=*) 876 exec_prefix=$ac_optarg ;; 877 878 -gas | --gas | --ga | --g) 879 # Obsolete; use --with-gas. 880 with_gas=yes ;; 881 882 -help | --help | --hel | --he | -h) 883 ac_init_help=long ;; 884 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 885 ac_init_help=recursive ;; 886 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 887 ac_init_help=short ;; 888 889 -host | --host | --hos | --ho) 890 ac_prev=host_alias ;; 891 -host=* | --host=* | --hos=* | --ho=*) 892 host_alias=$ac_optarg ;; 893 894 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 895 ac_prev=htmldir ;; 896 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 897 | --ht=*) 898 htmldir=$ac_optarg ;; 899 900 -includedir | --includedir | --includedi | --included | --include \ 901 | --includ | --inclu | --incl | --inc) 902 ac_prev=includedir ;; 903 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 904 | --includ=* | --inclu=* | --incl=* | --inc=*) 905 includedir=$ac_optarg ;; 906 907 -infodir | --infodir | --infodi | --infod | --info | --inf) 908 ac_prev=infodir ;; 909 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 910 infodir=$ac_optarg ;; 911 912 -libdir | --libdir | --libdi | --libd) 913 ac_prev=libdir ;; 914 -libdir=* | --libdir=* | --libdi=* | --libd=*) 915 libdir=$ac_optarg ;; 916 917 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 918 | --libexe | --libex | --libe) 919 ac_prev=libexecdir ;; 920 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 921 | --libexe=* | --libex=* | --libe=*) 922 libexecdir=$ac_optarg ;; 923 924 -localedir | --localedir | --localedi | --localed | --locale) 925 ac_prev=localedir ;; 926 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 927 localedir=$ac_optarg ;; 928 929 -localstatedir | --localstatedir | --localstatedi | --localstated \ 930 | --localstate | --localstat | --localsta | --localst | --locals) 931 ac_prev=localstatedir ;; 932 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 933 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 934 localstatedir=$ac_optarg ;; 935 936 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 937 ac_prev=mandir ;; 938 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 939 mandir=$ac_optarg ;; 940 941 -nfp | --nfp | --nf) 942 # Obsolete; use --without-fp. 943 with_fp=no ;; 944 945 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 946 | --no-cr | --no-c | -n) 947 no_create=yes ;; 948 949 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 950 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 951 no_recursion=yes ;; 952 953 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 954 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 955 | --oldin | --oldi | --old | --ol | --o) 956 ac_prev=oldincludedir ;; 957 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 958 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 959 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 960 oldincludedir=$ac_optarg ;; 961 962 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 963 ac_prev=prefix ;; 964 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 965 prefix=$ac_optarg ;; 966 967 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 968 | --program-pre | --program-pr | --program-p) 969 ac_prev=program_prefix ;; 970 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 971 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 972 program_prefix=$ac_optarg ;; 973 974 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 975 | --program-suf | --program-su | --program-s) 976 ac_prev=program_suffix ;; 977 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 978 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 979 program_suffix=$ac_optarg ;; 980 981 -program-transform-name | --program-transform-name \ 982 | --program-transform-nam | --program-transform-na \ 983 | --program-transform-n | --program-transform- \ 984 | --program-transform | --program-transfor \ 985 | --program-transfo | --program-transf \ 986 | --program-trans | --program-tran \ 987 | --progr-tra | --program-tr | --program-t) 988 ac_prev=program_transform_name ;; 989 -program-transform-name=* | --program-transform-name=* \ 990 | --program-transform-nam=* | --program-transform-na=* \ 991 | --program-transform-n=* | --program-transform-=* \ 992 | --program-transform=* | --program-transfor=* \ 993 | --program-transfo=* | --program-transf=* \ 994 | --program-trans=* | --program-tran=* \ 995 | --progr-tra=* | --program-tr=* | --program-t=*) 996 program_transform_name=$ac_optarg ;; 997 998 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 999 ac_prev=pdfdir ;; 1000 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1001 pdfdir=$ac_optarg ;; 1002 1003 -psdir | --psdir | --psdi | --psd | --ps) 1004 ac_prev=psdir ;; 1005 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1006 psdir=$ac_optarg ;; 1007 1008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1009 | -silent | --silent | --silen | --sile | --sil) 1010 silent=yes ;; 1011 1012 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1013 ac_prev=sbindir ;; 1014 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1015 | --sbi=* | --sb=*) 1016 sbindir=$ac_optarg ;; 1017 1018 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1019 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1020 | --sharedst | --shareds | --shared | --share | --shar \ 1021 | --sha | --sh) 1022 ac_prev=sharedstatedir ;; 1023 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1024 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1025 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1026 | --sha=* | --sh=*) 1027 sharedstatedir=$ac_optarg ;; 1028 1029 -site | --site | --sit) 1030 ac_prev=site ;; 1031 -site=* | --site=* | --sit=*) 1032 site=$ac_optarg ;; 1033 1034 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1035 ac_prev=srcdir ;; 1036 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1037 srcdir=$ac_optarg ;; 1038 1039 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1040 | --syscon | --sysco | --sysc | --sys | --sy) 1041 ac_prev=sysconfdir ;; 1042 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1043 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1044 sysconfdir=$ac_optarg ;; 1045 1046 -target | --target | --targe | --targ | --tar | --ta | --t) 1047 ac_prev=target_alias ;; 1048 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1049 target_alias=$ac_optarg ;; 1050 1051 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1052 verbose=yes ;; 1053 1054 -version | --version | --versio | --versi | --vers | -V) 1055 ac_init_version=: ;; 1056 1057 -with-* | --with-*) 1058 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1059 # Reject names that are not valid shell variable names. 1060 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1061 { echo "$as_me: error: invalid package name: $ac_package" >&2 1062 { (exit 1); exit 1; }; } 1063 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1064 eval with_$ac_package=\$ac_optarg ;; 1065 1066 -without-* | --without-*) 1067 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1068 # Reject names that are not valid shell variable names. 1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1070 { echo "$as_me: error: invalid package name: $ac_package" >&2 1071 { (exit 1); exit 1; }; } 1072 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1073 eval with_$ac_package=no ;; 1074 1075 --x) 1076 # Obsolete; use --with-x. 1077 with_x=yes ;; 1078 1079 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1080 | --x-incl | --x-inc | --x-in | --x-i) 1081 ac_prev=x_includes ;; 1082 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1083 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1084 x_includes=$ac_optarg ;; 1085 1086 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1087 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1088 ac_prev=x_libraries ;; 1089 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1090 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1091 x_libraries=$ac_optarg ;; 1092 1093 -*) { echo "$as_me: error: unrecognized option: $ac_option 1094Try \`$0 --help' for more information." >&2 1095 { (exit 1); exit 1; }; } 1096 ;; 1097 1098 *=*) 1099 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1100 # Reject names that are not valid shell variable names. 1101 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1102 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1103 { (exit 1); exit 1; }; } 1104 eval $ac_envvar=\$ac_optarg 1105 export $ac_envvar ;; 1106 1107 *) 1108 # FIXME: should be removed in autoconf 3.0. 1109 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1110 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1111 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1112 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1113 ;; 1114 1115 esac 1116done 1117 1118if test -n "$ac_prev"; then 1119 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1120 { echo "$as_me: error: missing argument to $ac_option" >&2 1121 { (exit 1); exit 1; }; } 1122fi 1123 1124# Be sure to have absolute directory names. 1125for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1126 datadir sysconfdir sharedstatedir localstatedir includedir \ 1127 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1128 libdir localedir mandir 1129do 1130 eval ac_val=\$$ac_var 1131 case $ac_val in 1132 [\\/$]* | ?:[\\/]* ) continue;; 1133 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1134 esac 1135 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1136 { (exit 1); exit 1; }; } 1137done 1138 1139# There might be people who depend on the old broken behavior: `$host' 1140# used to hold the argument of --host etc. 1141# FIXME: To remove some day. 1142build=$build_alias 1143host=$host_alias 1144target=$target_alias 1145 1146# FIXME: To remove some day. 1147if test "x$host_alias" != x; then 1148 if test "x$build_alias" = x; then 1149 cross_compiling=maybe 1150 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1151 If a cross compiler is detected then cross compile mode will be used." >&2 1152 elif test "x$build_alias" != "x$host_alias"; then 1153 cross_compiling=yes 1154 fi 1155fi 1156 1157ac_tool_prefix= 1158test -n "$host_alias" && ac_tool_prefix=$host_alias- 1159 1160test "$silent" = yes && exec 6>/dev/null 1161 1162 1163ac_pwd=`pwd` && test -n "$ac_pwd" && 1164ac_ls_di=`ls -di .` && 1165ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1166 { echo "$as_me: error: Working directory cannot be determined" >&2 1167 { (exit 1); exit 1; }; } 1168test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1169 { echo "$as_me: error: pwd does not report name of working directory" >&2 1170 { (exit 1); exit 1; }; } 1171 1172 1173# Find the source files, if location was not specified. 1174if test -z "$srcdir"; then 1175 ac_srcdir_defaulted=yes 1176 # Try the directory containing this script, then the parent directory. 1177 ac_confdir=`$as_dirname -- "$0" || 1178$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1179 X"$0" : 'X\(//\)[^/]' \| \ 1180 X"$0" : 'X\(//\)$' \| \ 1181 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1182echo X"$0" | 1183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1184 s//\1/ 1185 q 1186 } 1187 /^X\(\/\/\)[^/].*/{ 1188 s//\1/ 1189 q 1190 } 1191 /^X\(\/\/\)$/{ 1192 s//\1/ 1193 q 1194 } 1195 /^X\(\/\).*/{ 1196 s//\1/ 1197 q 1198 } 1199 s/.*/./; q'` 1200 srcdir=$ac_confdir 1201 if test ! -r "$srcdir/$ac_unique_file"; then 1202 srcdir=.. 1203 fi 1204else 1205 ac_srcdir_defaulted=no 1206fi 1207if test ! -r "$srcdir/$ac_unique_file"; then 1208 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1209 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1210 { (exit 1); exit 1; }; } 1211fi 1212ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1213ac_abs_confdir=`( 1214 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1215 { (exit 1); exit 1; }; } 1216 pwd)` 1217# When building in place, set srcdir=. 1218if test "$ac_abs_confdir" = "$ac_pwd"; then 1219 srcdir=. 1220fi 1221# Remove unnecessary trailing slashes from srcdir. 1222# Double slashes in file names in object file debugging info 1223# mess up M-x gdb in Emacs. 1224case $srcdir in 1225*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1226esac 1227for ac_var in $ac_precious_vars; do 1228 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1229 eval ac_env_${ac_var}_value=\$${ac_var} 1230 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1231 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1232done 1233 1234# 1235# Report the --help message. 1236# 1237if test "$ac_init_help" = "long"; then 1238 # Omit some internal or obsolete options to make the list less imposing. 1239 # This message is too long to be a string in the A/UX 3.1 sh. 1240 cat <<_ACEOF 1241\`configure' configures OpenSSH Portable to adapt to many kinds of systems. 1242 1243Usage: $0 [OPTION]... [VAR=VALUE]... 1244 1245To assign environment variables (e.g., CC, CFLAGS...), specify them as 1246VAR=VALUE. See below for descriptions of some of the useful variables. 1247 1248Defaults for the options are specified in brackets. 1249 1250Configuration: 1251 -h, --help display this help and exit 1252 --help=short display options specific to this package 1253 --help=recursive display the short help of all the included packages 1254 -V, --version display version information and exit 1255 -q, --quiet, --silent do not print \`checking...' messages 1256 --cache-file=FILE cache test results in FILE [disabled] 1257 -C, --config-cache alias for \`--cache-file=config.cache' 1258 -n, --no-create do not create output files 1259 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1260 1261Installation directories: 1262 --prefix=PREFIX install architecture-independent files in PREFIX 1263 [$ac_default_prefix] 1264 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1265 [PREFIX] 1266 1267By default, \`make install' will install all the files in 1268\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1269an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1270for instance \`--prefix=\$HOME'. 1271 1272For better control, use the options below. 1273 1274Fine tuning of the installation directories: 1275 --bindir=DIR user executables [EPREFIX/bin] 1276 --sbindir=DIR system admin executables [EPREFIX/sbin] 1277 --libexecdir=DIR program executables [EPREFIX/libexec] 1278 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1279 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1280 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1281 --libdir=DIR object code libraries [EPREFIX/lib] 1282 --includedir=DIR C header files [PREFIX/include] 1283 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1284 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1285 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1286 --infodir=DIR info documentation [DATAROOTDIR/info] 1287 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1288 --mandir=DIR man documentation [DATAROOTDIR/man] 1289 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh] 1290 --htmldir=DIR html documentation [DOCDIR] 1291 --dvidir=DIR dvi documentation [DOCDIR] 1292 --pdfdir=DIR pdf documentation [DOCDIR] 1293 --psdir=DIR ps documentation [DOCDIR] 1294_ACEOF 1295 1296 cat <<\_ACEOF 1297 1298System types: 1299 --build=BUILD configure for building on BUILD [guessed] 1300 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1301_ACEOF 1302fi 1303 1304if test -n "$ac_init_help"; then 1305 case $ac_init_help in 1306 short | recursive ) echo "Configuration of OpenSSH Portable:";; 1307 esac 1308 cat <<\_ACEOF 1309 1310Optional Features: 1311 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1312 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1313 --disable-largefile omit support for large files 1314 --disable-strip Disable calling strip(1) on install 1315 --disable-etc-default-login Disable using PATH from /etc/default/login no 1316 --disable-lastlog disable use of lastlog even if detected no 1317 --disable-utmp disable use of utmp even if detected no 1318 --disable-utmpx disable use of utmpx even if detected no 1319 --disable-wtmp disable use of wtmp even if detected no 1320 --disable-wtmpx disable use of wtmpx even if detected no 1321 --disable-libutil disable use of libutil (login() etc.) no 1322 --disable-pututline disable use of pututline() etc. (uwtmp) no 1323 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no 1324 1325Optional Packages: 1326 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1327 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1328 --without-stackprotect Don't use compiler's stack protection 1329 --without-rpath Disable auto-added -R linker paths 1330 --with-cflags Specify additional flags to pass to compiler 1331 --with-cppflags Specify additional flags to pass to preprocessor 1332 --with-ldflags Specify additional flags to pass to linker 1333 --with-libs Specify additional libraries to link with 1334 --with-Werror Build main code with -Werror 1335 --with-solaris-contracts Enable Solaris process contracts (experimental) 1336 --with-osfsia Enable Digital Unix SIA 1337 --with-zlib=PATH Use zlib in PATH 1338 --without-zlib-version-check Disable zlib version check 1339 --with-skey[=PATH] Enable S/Key support (optionally in PATH) 1340 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH) 1341 --with-libedit[=PATH] Enable libedit support for sftp 1342 --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm) 1343 --with-ssl-dir=PATH Specify path to OpenSSL installation 1344 --without-openssl-header-check Disable OpenSSL version consistency check 1345 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support 1346 --with-pam Enable PAM support 1347 --with-rand-helper Use subprocess to gather strong randomness 1348 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT 1349 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) 1350 --with-entropy-timeout Specify entropy gathering command timeout (msec) 1351 --with-privsep-user=user Specify non-privileged user for privilege separation 1352 --with-sectok Enable smartcard support using libsectok 1353 --with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH) 1354 --with-selinux Enable SELinux support 1355 --with-kerberos5=PATH Enable Kerberos 5 support 1356 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) 1357 --with-xauth=PATH Specify path to xauth program 1358 --with-mantype=man|cat|doc Set man page type 1359 --with-md5-passwords Enable use of MD5 passwords 1360 --without-shadow Disable shadow password support 1361 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY 1362 --with-default-path= Specify default \$PATH environment for server 1363 --with-superuser-path= Specify different path for super-user 1364 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses 1365 --with-bsd-auth Enable BSD auth support 1366 --with-pid-dir=PATH Specify location of ssh.pid file 1367 --with-lastlog=FILE|DIR specify lastlog location common locations 1368 1369Some influential environment variables: 1370 CC C compiler command 1371 CFLAGS C compiler flags 1372 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1373 nonstandard directory <lib dir> 1374 LIBS libraries to pass to the linker, e.g. -l<library> 1375 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1376 you have headers in a nonstandard directory <include dir> 1377 CPP C preprocessor 1378 1379Use these variables to override the choices made by `configure' or to help 1380it to find libraries and programs with nonstandard names/locations. 1381 1382Report bugs to <openssh-unix-dev@mindrot.org>. 1383_ACEOF 1384ac_status=$? 1385fi 1386 1387if test "$ac_init_help" = "recursive"; then 1388 # If there are subdirs, report their specific --help. 1389 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1390 test -d "$ac_dir" || continue 1391 ac_builddir=. 1392 1393case "$ac_dir" in 1394.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1395*) 1396 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1397 # A ".." for each directory in $ac_dir_suffix. 1398 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1399 case $ac_top_builddir_sub in 1400 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1401 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1402 esac ;; 1403esac 1404ac_abs_top_builddir=$ac_pwd 1405ac_abs_builddir=$ac_pwd$ac_dir_suffix 1406# for backward compatibility: 1407ac_top_builddir=$ac_top_build_prefix 1408 1409case $srcdir in 1410 .) # We are building in place. 1411 ac_srcdir=. 1412 ac_top_srcdir=$ac_top_builddir_sub 1413 ac_abs_top_srcdir=$ac_pwd ;; 1414 [\\/]* | ?:[\\/]* ) # Absolute name. 1415 ac_srcdir=$srcdir$ac_dir_suffix; 1416 ac_top_srcdir=$srcdir 1417 ac_abs_top_srcdir=$srcdir ;; 1418 *) # Relative name. 1419 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1420 ac_top_srcdir=$ac_top_build_prefix$srcdir 1421 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1422esac 1423ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1424 1425 cd "$ac_dir" || { ac_status=$?; continue; } 1426 # Check for guested configure. 1427 if test -f "$ac_srcdir/configure.gnu"; then 1428 echo && 1429 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1430 elif test -f "$ac_srcdir/configure"; then 1431 echo && 1432 $SHELL "$ac_srcdir/configure" --help=recursive 1433 else 1434 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1435 fi || ac_status=$? 1436 cd "$ac_pwd" || { ac_status=$?; break; } 1437 done 1438fi 1439 1440test -n "$ac_init_help" && exit $ac_status 1441if $ac_init_version; then 1442 cat <<\_ACEOF 1443OpenSSH configure Portable 1444generated by GNU Autoconf 2.61 1445 1446Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14472002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1448This configure script is free software; the Free Software Foundation 1449gives unlimited permission to copy, distribute and modify it. 1450_ACEOF 1451 exit 1452fi 1453cat >config.log <<_ACEOF 1454This file contains any messages produced by compilers while 1455running configure, to aid debugging if configure makes a mistake. 1456 1457It was created by OpenSSH $as_me Portable, which was 1458generated by GNU Autoconf 2.61. Invocation command line was 1459 1460 $ $0 $@ 1461 1462_ACEOF 1463exec 5>>config.log 1464{ 1465cat <<_ASUNAME 1466## --------- ## 1467## Platform. ## 1468## --------- ## 1469 1470hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1471uname -m = `(uname -m) 2>/dev/null || echo unknown` 1472uname -r = `(uname -r) 2>/dev/null || echo unknown` 1473uname -s = `(uname -s) 2>/dev/null || echo unknown` 1474uname -v = `(uname -v) 2>/dev/null || echo unknown` 1475 1476/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1477/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1478 1479/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1480/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1481/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1482/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1483/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1484/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1485/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1486 1487_ASUNAME 1488 1489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1490for as_dir in $PATH 1491do 1492 IFS=$as_save_IFS 1493 test -z "$as_dir" && as_dir=. 1494 echo "PATH: $as_dir" 1495done 1496IFS=$as_save_IFS 1497 1498} >&5 1499 1500cat >&5 <<_ACEOF 1501 1502 1503## ----------- ## 1504## Core tests. ## 1505## ----------- ## 1506 1507_ACEOF 1508 1509 1510# Keep a trace of the command line. 1511# Strip out --no-create and --no-recursion so they do not pile up. 1512# Strip out --silent because we don't want to record it for future runs. 1513# Also quote any args containing shell meta-characters. 1514# Make two passes to allow for proper duplicate-argument suppression. 1515ac_configure_args= 1516ac_configure_args0= 1517ac_configure_args1= 1518ac_must_keep_next=false 1519for ac_pass in 1 2 1520do 1521 for ac_arg 1522 do 1523 case $ac_arg in 1524 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1525 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1526 | -silent | --silent | --silen | --sile | --sil) 1527 continue ;; 1528 *\'*) 1529 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1530 esac 1531 case $ac_pass in 1532 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1533 2) 1534 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1535 if test $ac_must_keep_next = true; then 1536 ac_must_keep_next=false # Got value, back to normal. 1537 else 1538 case $ac_arg in 1539 *=* | --config-cache | -C | -disable-* | --disable-* \ 1540 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1541 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1542 | -with-* | --with-* | -without-* | --without-* | --x) 1543 case "$ac_configure_args0 " in 1544 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1545 esac 1546 ;; 1547 -* ) ac_must_keep_next=true ;; 1548 esac 1549 fi 1550 ac_configure_args="$ac_configure_args '$ac_arg'" 1551 ;; 1552 esac 1553 done 1554done 1555$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1556$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1557 1558# When interrupted or exit'd, cleanup temporary files, and complete 1559# config.log. We remove comments because anyway the quotes in there 1560# would cause problems or look ugly. 1561# WARNING: Use '\'' to represent an apostrophe within the trap. 1562# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1563trap 'exit_status=$? 1564 # Save into config.log some information that might help in debugging. 1565 { 1566 echo 1567 1568 cat <<\_ASBOX 1569## ---------------- ## 1570## Cache variables. ## 1571## ---------------- ## 1572_ASBOX 1573 echo 1574 # The following way of writing the cache mishandles newlines in values, 1575( 1576 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1577 eval ac_val=\$$ac_var 1578 case $ac_val in #( 1579 *${as_nl}*) 1580 case $ac_var in #( 1581 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1582echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1583 esac 1584 case $ac_var in #( 1585 _ | IFS | as_nl) ;; #( 1586 *) $as_unset $ac_var ;; 1587 esac ;; 1588 esac 1589 done 1590 (set) 2>&1 | 1591 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1592 *${as_nl}ac_space=\ *) 1593 sed -n \ 1594 "s/'\''/'\''\\\\'\'''\''/g; 1595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1596 ;; #( 1597 *) 1598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1599 ;; 1600 esac | 1601 sort 1602) 1603 echo 1604 1605 cat <<\_ASBOX 1606## ----------------- ## 1607## Output variables. ## 1608## ----------------- ## 1609_ASBOX 1610 echo 1611 for ac_var in $ac_subst_vars 1612 do 1613 eval ac_val=\$$ac_var 1614 case $ac_val in 1615 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1616 esac 1617 echo "$ac_var='\''$ac_val'\''" 1618 done | sort 1619 echo 1620 1621 if test -n "$ac_subst_files"; then 1622 cat <<\_ASBOX 1623## ------------------- ## 1624## File substitutions. ## 1625## ------------------- ## 1626_ASBOX 1627 echo 1628 for ac_var in $ac_subst_files 1629 do 1630 eval ac_val=\$$ac_var 1631 case $ac_val in 1632 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1633 esac 1634 echo "$ac_var='\''$ac_val'\''" 1635 done | sort 1636 echo 1637 fi 1638 1639 if test -s confdefs.h; then 1640 cat <<\_ASBOX 1641## ----------- ## 1642## confdefs.h. ## 1643## ----------- ## 1644_ASBOX 1645 echo 1646 cat confdefs.h 1647 echo 1648 fi 1649 test "$ac_signal" != 0 && 1650 echo "$as_me: caught signal $ac_signal" 1651 echo "$as_me: exit $exit_status" 1652 } >&5 1653 rm -f core *.core core.conftest.* && 1654 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1655 exit $exit_status 1656' 0 1657for ac_signal in 1 2 13 15; do 1658 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1659done 1660ac_signal=0 1661 1662# confdefs.h avoids OS command line length limits that DEFS can exceed. 1663rm -f -r conftest* confdefs.h 1664 1665# Predefined preprocessor variables. 1666 1667cat >>confdefs.h <<_ACEOF 1668#define PACKAGE_NAME "$PACKAGE_NAME" 1669_ACEOF 1670 1671 1672cat >>confdefs.h <<_ACEOF 1673#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1674_ACEOF 1675 1676 1677cat >>confdefs.h <<_ACEOF 1678#define PACKAGE_VERSION "$PACKAGE_VERSION" 1679_ACEOF 1680 1681 1682cat >>confdefs.h <<_ACEOF 1683#define PACKAGE_STRING "$PACKAGE_STRING" 1684_ACEOF 1685 1686 1687cat >>confdefs.h <<_ACEOF 1688#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1689_ACEOF 1690 1691 1692# Let the site file select an alternate cache file if it wants to. 1693# Prefer explicitly selected file to automatically selected ones. 1694if test -n "$CONFIG_SITE"; then 1695 set x "$CONFIG_SITE" 1696elif test "x$prefix" != xNONE; then 1697 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1698else 1699 set x "$ac_default_prefix/share/config.site" \ 1700 "$ac_default_prefix/etc/config.site" 1701fi 1702shift 1703for ac_site_file 1704do 1705 if test -r "$ac_site_file"; then 1706 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1707echo "$as_me: loading site script $ac_site_file" >&6;} 1708 sed 's/^/| /' "$ac_site_file" >&5 1709 . "$ac_site_file" 1710 fi 1711done 1712 1713if test -r "$cache_file"; then 1714 # Some versions of bash will fail to source /dev/null (special 1715 # files actually), so we avoid doing that. 1716 if test -f "$cache_file"; then 1717 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1718echo "$as_me: loading cache $cache_file" >&6;} 1719 case $cache_file in 1720 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1721 *) . "./$cache_file";; 1722 esac 1723 fi 1724else 1725 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1726echo "$as_me: creating cache $cache_file" >&6;} 1727 >$cache_file 1728fi 1729 1730# Check that the precious variables saved in the cache have kept the same 1731# value. 1732ac_cache_corrupted=false 1733for ac_var in $ac_precious_vars; do 1734 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1735 eval ac_new_set=\$ac_env_${ac_var}_set 1736 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1737 eval ac_new_val=\$ac_env_${ac_var}_value 1738 case $ac_old_set,$ac_new_set in 1739 set,) 1740 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1741echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1742 ac_cache_corrupted=: ;; 1743 ,set) 1744 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1745echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1746 ac_cache_corrupted=: ;; 1747 ,);; 1748 *) 1749 if test "x$ac_old_val" != "x$ac_new_val"; then 1750 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1751echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1752 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1753echo "$as_me: former value: $ac_old_val" >&2;} 1754 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1755echo "$as_me: current value: $ac_new_val" >&2;} 1756 ac_cache_corrupted=: 1757 fi;; 1758 esac 1759 # Pass precious variables to config.status. 1760 if test "$ac_new_set" = set; then 1761 case $ac_new_val in 1762 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1763 *) ac_arg=$ac_var=$ac_new_val ;; 1764 esac 1765 case " $ac_configure_args " in 1766 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1767 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1768 esac 1769 fi 1770done 1771if $ac_cache_corrupted; then 1772 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1773echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1774 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1775echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1776 { (exit 1); exit 1; }; } 1777fi 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803ac_ext=c 1804ac_cpp='$CPP $CPPFLAGS' 1805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1807ac_compiler_gnu=$ac_cv_c_compiler_gnu 1808 1809 1810 1811 1812 1813ac_config_headers="$ac_config_headers config.h" 1814 1815ac_ext=c 1816ac_cpp='$CPP $CPPFLAGS' 1817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1819ac_compiler_gnu=$ac_cv_c_compiler_gnu 1820if test -n "$ac_tool_prefix"; then 1821 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1822set dummy ${ac_tool_prefix}gcc; ac_word=$2 1823{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1825if test "${ac_cv_prog_CC+set}" = set; then 1826 echo $ECHO_N "(cached) $ECHO_C" >&6 1827else 1828 if test -n "$CC"; then 1829 ac_cv_prog_CC="$CC" # Let the user override the test. 1830else 1831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1832for as_dir in $PATH 1833do 1834 IFS=$as_save_IFS 1835 test -z "$as_dir" && as_dir=. 1836 for ac_exec_ext in '' $ac_executable_extensions; do 1837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1838 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1840 break 2 1841 fi 1842done 1843done 1844IFS=$as_save_IFS 1845 1846fi 1847fi 1848CC=$ac_cv_prog_CC 1849if test -n "$CC"; then 1850 { echo "$as_me:$LINENO: result: $CC" >&5 1851echo "${ECHO_T}$CC" >&6; } 1852else 1853 { echo "$as_me:$LINENO: result: no" >&5 1854echo "${ECHO_T}no" >&6; } 1855fi 1856 1857 1858fi 1859if test -z "$ac_cv_prog_CC"; then 1860 ac_ct_CC=$CC 1861 # Extract the first word of "gcc", so it can be a program name with args. 1862set dummy gcc; ac_word=$2 1863{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1865if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1866 echo $ECHO_N "(cached) $ECHO_C" >&6 1867else 1868 if test -n "$ac_ct_CC"; then 1869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1870else 1871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1872for as_dir in $PATH 1873do 1874 IFS=$as_save_IFS 1875 test -z "$as_dir" && as_dir=. 1876 for ac_exec_ext in '' $ac_executable_extensions; do 1877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1878 ac_cv_prog_ac_ct_CC="gcc" 1879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1880 break 2 1881 fi 1882done 1883done 1884IFS=$as_save_IFS 1885 1886fi 1887fi 1888ac_ct_CC=$ac_cv_prog_ac_ct_CC 1889if test -n "$ac_ct_CC"; then 1890 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1891echo "${ECHO_T}$ac_ct_CC" >&6; } 1892else 1893 { echo "$as_me:$LINENO: result: no" >&5 1894echo "${ECHO_T}no" >&6; } 1895fi 1896 1897 if test "x$ac_ct_CC" = x; then 1898 CC="" 1899 else 1900 case $cross_compiling:$ac_tool_warned in 1901yes:) 1902{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 1903whose name does not start with the host triplet. If you think this 1904configuration is useful to you, please write to autoconf@gnu.org." >&5 1905echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 1906whose name does not start with the host triplet. If you think this 1907configuration is useful to you, please write to autoconf@gnu.org." >&2;} 1908ac_tool_warned=yes ;; 1909esac 1910 CC=$ac_ct_CC 1911 fi 1912else 1913 CC="$ac_cv_prog_CC" 1914fi 1915 1916if test -z "$CC"; then 1917 if test -n "$ac_tool_prefix"; then 1918 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1919set dummy ${ac_tool_prefix}cc; ac_word=$2 1920{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1922if test "${ac_cv_prog_CC+set}" = set; then 1923 echo $ECHO_N "(cached) $ECHO_C" >&6 1924else 1925 if test -n "$CC"; then 1926 ac_cv_prog_CC="$CC" # Let the user override the test. 1927else 1928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1929for as_dir in $PATH 1930do 1931 IFS=$as_save_IFS 1932 test -z "$as_dir" && as_dir=. 1933 for ac_exec_ext in '' $ac_executable_extensions; do 1934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1935 ac_cv_prog_CC="${ac_tool_prefix}cc" 1936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1937 break 2 1938 fi 1939done 1940done 1941IFS=$as_save_IFS 1942 1943fi 1944fi 1945CC=$ac_cv_prog_CC 1946if test -n "$CC"; then 1947 { echo "$as_me:$LINENO: result: $CC" >&5 1948echo "${ECHO_T}$CC" >&6; } 1949else 1950 { echo "$as_me:$LINENO: result: no" >&5 1951echo "${ECHO_T}no" >&6; } 1952fi 1953 1954 1955 fi 1956fi 1957if test -z "$CC"; then 1958 # Extract the first word of "cc", so it can be a program name with args. 1959set dummy cc; ac_word=$2 1960{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1962if test "${ac_cv_prog_CC+set}" = set; then 1963 echo $ECHO_N "(cached) $ECHO_C" >&6 1964else 1965 if test -n "$CC"; then 1966 ac_cv_prog_CC="$CC" # Let the user override the test. 1967else 1968 ac_prog_rejected=no 1969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1970for as_dir in $PATH 1971do 1972 IFS=$as_save_IFS 1973 test -z "$as_dir" && as_dir=. 1974 for ac_exec_ext in '' $ac_executable_extensions; do 1975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1976 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1977 ac_prog_rejected=yes 1978 continue 1979 fi 1980 ac_cv_prog_CC="cc" 1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1982 break 2 1983 fi 1984done 1985done 1986IFS=$as_save_IFS 1987 1988if test $ac_prog_rejected = yes; then 1989 # We found a bogon in the path, so make sure we never use it. 1990 set dummy $ac_cv_prog_CC 1991 shift 1992 if test $# != 0; then 1993 # We chose a different compiler from the bogus one. 1994 # However, it has the same basename, so the bogon will be chosen 1995 # first if we set CC to just the basename; use the full file name. 1996 shift 1997 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1998 fi 1999fi 2000fi 2001fi 2002CC=$ac_cv_prog_CC 2003if test -n "$CC"; then 2004 { echo "$as_me:$LINENO: result: $CC" >&5 2005echo "${ECHO_T}$CC" >&6; } 2006else 2007 { echo "$as_me:$LINENO: result: no" >&5 2008echo "${ECHO_T}no" >&6; } 2009fi 2010 2011 2012fi 2013if test -z "$CC"; then 2014 if test -n "$ac_tool_prefix"; then 2015 for ac_prog in cl.exe 2016 do 2017 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2018set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2019{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2021if test "${ac_cv_prog_CC+set}" = set; then 2022 echo $ECHO_N "(cached) $ECHO_C" >&6 2023else 2024 if test -n "$CC"; then 2025 ac_cv_prog_CC="$CC" # Let the user override the test. 2026else 2027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2028for as_dir in $PATH 2029do 2030 IFS=$as_save_IFS 2031 test -z "$as_dir" && as_dir=. 2032 for ac_exec_ext in '' $ac_executable_extensions; do 2033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2034 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2036 break 2 2037 fi 2038done 2039done 2040IFS=$as_save_IFS 2041 2042fi 2043fi 2044CC=$ac_cv_prog_CC 2045if test -n "$CC"; then 2046 { echo "$as_me:$LINENO: result: $CC" >&5 2047echo "${ECHO_T}$CC" >&6; } 2048else 2049 { echo "$as_me:$LINENO: result: no" >&5 2050echo "${ECHO_T}no" >&6; } 2051fi 2052 2053 2054 test -n "$CC" && break 2055 done 2056fi 2057if test -z "$CC"; then 2058 ac_ct_CC=$CC 2059 for ac_prog in cl.exe 2060do 2061 # Extract the first word of "$ac_prog", so it can be a program name with args. 2062set dummy $ac_prog; ac_word=$2 2063{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2065if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2066 echo $ECHO_N "(cached) $ECHO_C" >&6 2067else 2068 if test -n "$ac_ct_CC"; then 2069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2070else 2071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2072for as_dir in $PATH 2073do 2074 IFS=$as_save_IFS 2075 test -z "$as_dir" && as_dir=. 2076 for ac_exec_ext in '' $ac_executable_extensions; do 2077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2078 ac_cv_prog_ac_ct_CC="$ac_prog" 2079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2080 break 2 2081 fi 2082done 2083done 2084IFS=$as_save_IFS 2085 2086fi 2087fi 2088ac_ct_CC=$ac_cv_prog_ac_ct_CC 2089if test -n "$ac_ct_CC"; then 2090 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2091echo "${ECHO_T}$ac_ct_CC" >&6; } 2092else 2093 { echo "$as_me:$LINENO: result: no" >&5 2094echo "${ECHO_T}no" >&6; } 2095fi 2096 2097 2098 test -n "$ac_ct_CC" && break 2099done 2100 2101 if test "x$ac_ct_CC" = x; then 2102 CC="" 2103 else 2104 case $cross_compiling:$ac_tool_warned in 2105yes:) 2106{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2107whose name does not start with the host triplet. If you think this 2108configuration is useful to you, please write to autoconf@gnu.org." >&5 2109echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2110whose name does not start with the host triplet. If you think this 2111configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2112ac_tool_warned=yes ;; 2113esac 2114 CC=$ac_ct_CC 2115 fi 2116fi 2117 2118fi 2119 2120 2121test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2122See \`config.log' for more details." >&5 2123echo "$as_me: error: no acceptable C compiler found in \$PATH 2124See \`config.log' for more details." >&2;} 2125 { (exit 1); exit 1; }; } 2126 2127# Provide some information about the compiler. 2128echo "$as_me:$LINENO: checking for C compiler version" >&5 2129ac_compiler=`set X $ac_compile; echo $2` 2130{ (ac_try="$ac_compiler --version >&5" 2131case "(($ac_try" in 2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2133 *) ac_try_echo=$ac_try;; 2134esac 2135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2136 (eval "$ac_compiler --version >&5") 2>&5 2137 ac_status=$? 2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2139 (exit $ac_status); } 2140{ (ac_try="$ac_compiler -v >&5" 2141case "(($ac_try" in 2142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2143 *) ac_try_echo=$ac_try;; 2144esac 2145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2146 (eval "$ac_compiler -v >&5") 2>&5 2147 ac_status=$? 2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2149 (exit $ac_status); } 2150{ (ac_try="$ac_compiler -V >&5" 2151case "(($ac_try" in 2152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2153 *) ac_try_echo=$ac_try;; 2154esac 2155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2156 (eval "$ac_compiler -V >&5") 2>&5 2157 ac_status=$? 2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2159 (exit $ac_status); } 2160 2161cat >conftest.$ac_ext <<_ACEOF 2162/* confdefs.h. */ 2163_ACEOF 2164cat confdefs.h >>conftest.$ac_ext 2165cat >>conftest.$ac_ext <<_ACEOF 2166/* end confdefs.h. */ 2167 2168int 2169main () 2170{ 2171 2172 ; 2173 return 0; 2174} 2175_ACEOF 2176ac_clean_files_save=$ac_clean_files 2177ac_clean_files="$ac_clean_files a.out a.exe b.out" 2178# Try to create an executable without -o first, disregard a.out. 2179# It will help us diagnose broken compilers, and finding out an intuition 2180# of exeext. 2181{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2182echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2183ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2184# 2185# List of possible output files, starting from the most likely. 2186# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2187# only as a last resort. b.out is created by i960 compilers. 2188ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2189# 2190# The IRIX 6 linker writes into existing files which may not be 2191# executable, retaining their permissions. Remove them first so a 2192# subsequent execution test works. 2193ac_rmfiles= 2194for ac_file in $ac_files 2195do 2196 case $ac_file in 2197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2198 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2199 esac 2200done 2201rm -f $ac_rmfiles 2202 2203if { (ac_try="$ac_link_default" 2204case "(($ac_try" in 2205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2206 *) ac_try_echo=$ac_try;; 2207esac 2208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2209 (eval "$ac_link_default") 2>&5 2210 ac_status=$? 2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2212 (exit $ac_status); }; then 2213 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2214# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2215# in a Makefile. We should not override ac_cv_exeext if it was cached, 2216# so that the user can short-circuit this test for compilers unknown to 2217# Autoconf. 2218for ac_file in $ac_files '' 2219do 2220 test -f "$ac_file" || continue 2221 case $ac_file in 2222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2223 ;; 2224 [ab].out ) 2225 # We found the default executable, but exeext='' is most 2226 # certainly right. 2227 break;; 2228 *.* ) 2229 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2230 then :; else 2231 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2232 fi 2233 # We set ac_cv_exeext here because the later test for it is not 2234 # safe: cross compilers may not add the suffix if given an `-o' 2235 # argument, so we may need to know it at that point already. 2236 # Even if this section looks crufty: it has the advantage of 2237 # actually working. 2238 break;; 2239 * ) 2240 break;; 2241 esac 2242done 2243test "$ac_cv_exeext" = no && ac_cv_exeext= 2244 2245else 2246 ac_file='' 2247fi 2248 2249{ echo "$as_me:$LINENO: result: $ac_file" >&5 2250echo "${ECHO_T}$ac_file" >&6; } 2251if test -z "$ac_file"; then 2252 echo "$as_me: failed program was:" >&5 2253sed 's/^/| /' conftest.$ac_ext >&5 2254 2255{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2256See \`config.log' for more details." >&5 2257echo "$as_me: error: C compiler cannot create executables 2258See \`config.log' for more details." >&2;} 2259 { (exit 77); exit 77; }; } 2260fi 2261 2262ac_exeext=$ac_cv_exeext 2263 2264# Check that the compiler produces executables we can run. If not, either 2265# the compiler is broken, or we cross compile. 2266{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2267echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2268# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2269# If not cross compiling, check that we can run a simple program. 2270if test "$cross_compiling" != yes; then 2271 if { ac_try='./$ac_file' 2272 { (case "(($ac_try" in 2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2274 *) ac_try_echo=$ac_try;; 2275esac 2276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2277 (eval "$ac_try") 2>&5 2278 ac_status=$? 2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2280 (exit $ac_status); }; }; then 2281 cross_compiling=no 2282 else 2283 if test "$cross_compiling" = maybe; then 2284 cross_compiling=yes 2285 else 2286 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2287If you meant to cross compile, use \`--host'. 2288See \`config.log' for more details." >&5 2289echo "$as_me: error: cannot run C compiled programs. 2290If you meant to cross compile, use \`--host'. 2291See \`config.log' for more details." >&2;} 2292 { (exit 1); exit 1; }; } 2293 fi 2294 fi 2295fi 2296{ echo "$as_me:$LINENO: result: yes" >&5 2297echo "${ECHO_T}yes" >&6; } 2298 2299rm -f a.out a.exe conftest$ac_cv_exeext b.out 2300ac_clean_files=$ac_clean_files_save 2301# Check that the compiler produces executables we can run. If not, either 2302# the compiler is broken, or we cross compile. 2303{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2304echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2305{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2306echo "${ECHO_T}$cross_compiling" >&6; } 2307 2308{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2309echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2310if { (ac_try="$ac_link" 2311case "(($ac_try" in 2312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2313 *) ac_try_echo=$ac_try;; 2314esac 2315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2316 (eval "$ac_link") 2>&5 2317 ac_status=$? 2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2319 (exit $ac_status); }; then 2320 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2321# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2322# work properly (i.e., refer to `conftest.exe'), while it won't with 2323# `rm'. 2324for ac_file in conftest.exe conftest conftest.*; do 2325 test -f "$ac_file" || continue 2326 case $ac_file in 2327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2328 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2329 break;; 2330 * ) break;; 2331 esac 2332done 2333else 2334 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2335See \`config.log' for more details." >&5 2336echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2337See \`config.log' for more details." >&2;} 2338 { (exit 1); exit 1; }; } 2339fi 2340 2341rm -f conftest$ac_cv_exeext 2342{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2343echo "${ECHO_T}$ac_cv_exeext" >&6; } 2344 2345rm -f conftest.$ac_ext 2346EXEEXT=$ac_cv_exeext 2347ac_exeext=$EXEEXT 2348{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2349echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2350if test "${ac_cv_objext+set}" = set; then 2351 echo $ECHO_N "(cached) $ECHO_C" >&6 2352else 2353 cat >conftest.$ac_ext <<_ACEOF 2354/* confdefs.h. */ 2355_ACEOF 2356cat confdefs.h >>conftest.$ac_ext 2357cat >>conftest.$ac_ext <<_ACEOF 2358/* end confdefs.h. */ 2359 2360int 2361main () 2362{ 2363 2364 ; 2365 return 0; 2366} 2367_ACEOF 2368rm -f conftest.o conftest.obj 2369if { (ac_try="$ac_compile" 2370case "(($ac_try" in 2371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2372 *) ac_try_echo=$ac_try;; 2373esac 2374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2375 (eval "$ac_compile") 2>&5 2376 ac_status=$? 2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2378 (exit $ac_status); }; then 2379 for ac_file in conftest.o conftest.obj conftest.*; do 2380 test -f "$ac_file" || continue; 2381 case $ac_file in 2382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2383 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2384 break;; 2385 esac 2386done 2387else 2388 echo "$as_me: failed program was:" >&5 2389sed 's/^/| /' conftest.$ac_ext >&5 2390 2391{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2392See \`config.log' for more details." >&5 2393echo "$as_me: error: cannot compute suffix of object files: cannot compile 2394See \`config.log' for more details." >&2;} 2395 { (exit 1); exit 1; }; } 2396fi 2397 2398rm -f conftest.$ac_cv_objext conftest.$ac_ext 2399fi 2400{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2401echo "${ECHO_T}$ac_cv_objext" >&6; } 2402OBJEXT=$ac_cv_objext 2403ac_objext=$OBJEXT 2404{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2405echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2406if test "${ac_cv_c_compiler_gnu+set}" = set; then 2407 echo $ECHO_N "(cached) $ECHO_C" >&6 2408else 2409 cat >conftest.$ac_ext <<_ACEOF 2410/* confdefs.h. */ 2411_ACEOF 2412cat confdefs.h >>conftest.$ac_ext 2413cat >>conftest.$ac_ext <<_ACEOF 2414/* end confdefs.h. */ 2415 2416int 2417main () 2418{ 2419#ifndef __GNUC__ 2420 choke me 2421#endif 2422 2423 ; 2424 return 0; 2425} 2426_ACEOF 2427rm -f conftest.$ac_objext 2428if { (ac_try="$ac_compile" 2429case "(($ac_try" in 2430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2431 *) ac_try_echo=$ac_try;; 2432esac 2433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2434 (eval "$ac_compile") 2>conftest.er1 2435 ac_status=$? 2436 grep -v '^ *+' conftest.er1 >conftest.err 2437 rm -f conftest.er1 2438 cat conftest.err >&5 2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2440 (exit $ac_status); } && { 2441 test -z "$ac_c_werror_flag" || 2442 test ! -s conftest.err 2443 } && test -s conftest.$ac_objext; then 2444 ac_compiler_gnu=yes 2445else 2446 echo "$as_me: failed program was:" >&5 2447sed 's/^/| /' conftest.$ac_ext >&5 2448 2449 ac_compiler_gnu=no 2450fi 2451 2452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2453ac_cv_c_compiler_gnu=$ac_compiler_gnu 2454 2455fi 2456{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2457echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2458GCC=`test $ac_compiler_gnu = yes && echo yes` 2459ac_test_CFLAGS=${CFLAGS+set} 2460ac_save_CFLAGS=$CFLAGS 2461{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2462echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2463if test "${ac_cv_prog_cc_g+set}" = set; then 2464 echo $ECHO_N "(cached) $ECHO_C" >&6 2465else 2466 ac_save_c_werror_flag=$ac_c_werror_flag 2467 ac_c_werror_flag=yes 2468 ac_cv_prog_cc_g=no 2469 CFLAGS="-g" 2470 cat >conftest.$ac_ext <<_ACEOF 2471/* confdefs.h. */ 2472_ACEOF 2473cat confdefs.h >>conftest.$ac_ext 2474cat >>conftest.$ac_ext <<_ACEOF 2475/* end confdefs.h. */ 2476 2477int 2478main () 2479{ 2480 2481 ; 2482 return 0; 2483} 2484_ACEOF 2485rm -f conftest.$ac_objext 2486if { (ac_try="$ac_compile" 2487case "(($ac_try" in 2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2489 *) ac_try_echo=$ac_try;; 2490esac 2491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2492 (eval "$ac_compile") 2>conftest.er1 2493 ac_status=$? 2494 grep -v '^ *+' conftest.er1 >conftest.err 2495 rm -f conftest.er1 2496 cat conftest.err >&5 2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2498 (exit $ac_status); } && { 2499 test -z "$ac_c_werror_flag" || 2500 test ! -s conftest.err 2501 } && test -s conftest.$ac_objext; then 2502 ac_cv_prog_cc_g=yes 2503else 2504 echo "$as_me: failed program was:" >&5 2505sed 's/^/| /' conftest.$ac_ext >&5 2506 2507 CFLAGS="" 2508 cat >conftest.$ac_ext <<_ACEOF 2509/* confdefs.h. */ 2510_ACEOF 2511cat confdefs.h >>conftest.$ac_ext 2512cat >>conftest.$ac_ext <<_ACEOF 2513/* end confdefs.h. */ 2514 2515int 2516main () 2517{ 2518 2519 ; 2520 return 0; 2521} 2522_ACEOF 2523rm -f conftest.$ac_objext 2524if { (ac_try="$ac_compile" 2525case "(($ac_try" in 2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2527 *) ac_try_echo=$ac_try;; 2528esac 2529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2530 (eval "$ac_compile") 2>conftest.er1 2531 ac_status=$? 2532 grep -v '^ *+' conftest.er1 >conftest.err 2533 rm -f conftest.er1 2534 cat conftest.err >&5 2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2536 (exit $ac_status); } && { 2537 test -z "$ac_c_werror_flag" || 2538 test ! -s conftest.err 2539 } && test -s conftest.$ac_objext; then 2540 : 2541else 2542 echo "$as_me: failed program was:" >&5 2543sed 's/^/| /' conftest.$ac_ext >&5 2544 2545 ac_c_werror_flag=$ac_save_c_werror_flag 2546 CFLAGS="-g" 2547 cat >conftest.$ac_ext <<_ACEOF 2548/* confdefs.h. */ 2549_ACEOF 2550cat confdefs.h >>conftest.$ac_ext 2551cat >>conftest.$ac_ext <<_ACEOF 2552/* end confdefs.h. */ 2553 2554int 2555main () 2556{ 2557 2558 ; 2559 return 0; 2560} 2561_ACEOF 2562rm -f conftest.$ac_objext 2563if { (ac_try="$ac_compile" 2564case "(($ac_try" in 2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2566 *) ac_try_echo=$ac_try;; 2567esac 2568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2569 (eval "$ac_compile") 2>conftest.er1 2570 ac_status=$? 2571 grep -v '^ *+' conftest.er1 >conftest.err 2572 rm -f conftest.er1 2573 cat conftest.err >&5 2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2575 (exit $ac_status); } && { 2576 test -z "$ac_c_werror_flag" || 2577 test ! -s conftest.err 2578 } && test -s conftest.$ac_objext; then 2579 ac_cv_prog_cc_g=yes 2580else 2581 echo "$as_me: failed program was:" >&5 2582sed 's/^/| /' conftest.$ac_ext >&5 2583 2584 2585fi 2586 2587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2588fi 2589 2590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2591fi 2592 2593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2594 ac_c_werror_flag=$ac_save_c_werror_flag 2595fi 2596{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2597echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2598if test "$ac_test_CFLAGS" = set; then 2599 CFLAGS=$ac_save_CFLAGS 2600elif test $ac_cv_prog_cc_g = yes; then 2601 if test "$GCC" = yes; then 2602 CFLAGS="-g -O2" 2603 else 2604 CFLAGS="-g" 2605 fi 2606else 2607 if test "$GCC" = yes; then 2608 CFLAGS="-O2" 2609 else 2610 CFLAGS= 2611 fi 2612fi 2613{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2614echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2615if test "${ac_cv_prog_cc_c89+set}" = set; then 2616 echo $ECHO_N "(cached) $ECHO_C" >&6 2617else 2618 ac_cv_prog_cc_c89=no 2619ac_save_CC=$CC 2620cat >conftest.$ac_ext <<_ACEOF 2621/* confdefs.h. */ 2622_ACEOF 2623cat confdefs.h >>conftest.$ac_ext 2624cat >>conftest.$ac_ext <<_ACEOF 2625/* end confdefs.h. */ 2626#include <stdarg.h> 2627#include <stdio.h> 2628#include <sys/types.h> 2629#include <sys/stat.h> 2630/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2631struct buf { int x; }; 2632FILE * (*rcsopen) (struct buf *, struct stat *, int); 2633static char *e (p, i) 2634 char **p; 2635 int i; 2636{ 2637 return p[i]; 2638} 2639static char *f (char * (*g) (char **, int), char **p, ...) 2640{ 2641 char *s; 2642 va_list v; 2643 va_start (v,p); 2644 s = g (p, va_arg (v,int)); 2645 va_end (v); 2646 return s; 2647} 2648 2649/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2650 function prototypes and stuff, but not '\xHH' hex character constants. 2651 These don't provoke an error unfortunately, instead are silently treated 2652 as 'x'. The following induces an error, until -std is added to get 2653 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2654 array size at least. It's necessary to write '\x00'==0 to get something 2655 that's true only with -std. */ 2656int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2657 2658/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2659 inside strings and character constants. */ 2660#define FOO(x) 'x' 2661int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2662 2663int test (int i, double x); 2664struct s1 {int (*f) (int a);}; 2665struct s2 {int (*f) (double a);}; 2666int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2667int argc; 2668char **argv; 2669int 2670main () 2671{ 2672return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2673 ; 2674 return 0; 2675} 2676_ACEOF 2677for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2678 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2679do 2680 CC="$ac_save_CC $ac_arg" 2681 rm -f conftest.$ac_objext 2682if { (ac_try="$ac_compile" 2683case "(($ac_try" in 2684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2685 *) ac_try_echo=$ac_try;; 2686esac 2687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2688 (eval "$ac_compile") 2>conftest.er1 2689 ac_status=$? 2690 grep -v '^ *+' conftest.er1 >conftest.err 2691 rm -f conftest.er1 2692 cat conftest.err >&5 2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2694 (exit $ac_status); } && { 2695 test -z "$ac_c_werror_flag" || 2696 test ! -s conftest.err 2697 } && test -s conftest.$ac_objext; then 2698 ac_cv_prog_cc_c89=$ac_arg 2699else 2700 echo "$as_me: failed program was:" >&5 2701sed 's/^/| /' conftest.$ac_ext >&5 2702 2703 2704fi 2705 2706rm -f core conftest.err conftest.$ac_objext 2707 test "x$ac_cv_prog_cc_c89" != "xno" && break 2708done 2709rm -f conftest.$ac_ext 2710CC=$ac_save_CC 2711 2712fi 2713# AC_CACHE_VAL 2714case "x$ac_cv_prog_cc_c89" in 2715 x) 2716 { echo "$as_me:$LINENO: result: none needed" >&5 2717echo "${ECHO_T}none needed" >&6; } ;; 2718 xno) 2719 { echo "$as_me:$LINENO: result: unsupported" >&5 2720echo "${ECHO_T}unsupported" >&6; } ;; 2721 *) 2722 CC="$CC $ac_cv_prog_cc_c89" 2723 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2724echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2725esac 2726 2727 2728ac_ext=c 2729ac_cpp='$CPP $CPPFLAGS' 2730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2732ac_compiler_gnu=$ac_cv_c_compiler_gnu 2733 2734ac_aux_dir= 2735for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2736 if test -f "$ac_dir/install-sh"; then 2737 ac_aux_dir=$ac_dir 2738 ac_install_sh="$ac_aux_dir/install-sh -c" 2739 break 2740 elif test -f "$ac_dir/install.sh"; then 2741 ac_aux_dir=$ac_dir 2742 ac_install_sh="$ac_aux_dir/install.sh -c" 2743 break 2744 elif test -f "$ac_dir/shtool"; then 2745 ac_aux_dir=$ac_dir 2746 ac_install_sh="$ac_aux_dir/shtool install -c" 2747 break 2748 fi 2749done 2750if test -z "$ac_aux_dir"; then 2751 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2752echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2753 { (exit 1); exit 1; }; } 2754fi 2755 2756# These three variables are undocumented and unsupported, 2757# and are intended to be withdrawn in a future Autoconf release. 2758# They can cause serious problems if a builder's source tree is in a directory 2759# whose full name contains unusual characters. 2760ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2761ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2762ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2763 2764 2765# Make sure we can run config.sub. 2766$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2767 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2768echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2769 { (exit 1); exit 1; }; } 2770 2771{ echo "$as_me:$LINENO: checking build system type" >&5 2772echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2773if test "${ac_cv_build+set}" = set; then 2774 echo $ECHO_N "(cached) $ECHO_C" >&6 2775else 2776 ac_build_alias=$build_alias 2777test "x$ac_build_alias" = x && 2778 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2779test "x$ac_build_alias" = x && 2780 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2781echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2782 { (exit 1); exit 1; }; } 2783ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2784 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2785echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2786 { (exit 1); exit 1; }; } 2787 2788fi 2789{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2790echo "${ECHO_T}$ac_cv_build" >&6; } 2791case $ac_cv_build in 2792*-*-*) ;; 2793*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2794echo "$as_me: error: invalid value of canonical build" >&2;} 2795 { (exit 1); exit 1; }; };; 2796esac 2797build=$ac_cv_build 2798ac_save_IFS=$IFS; IFS='-' 2799set x $ac_cv_build 2800shift 2801build_cpu=$1 2802build_vendor=$2 2803shift; shift 2804# Remember, the first character of IFS is used to create $*, 2805# except with old shells: 2806build_os=$* 2807IFS=$ac_save_IFS 2808case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2809 2810 2811{ echo "$as_me:$LINENO: checking host system type" >&5 2812echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2813if test "${ac_cv_host+set}" = set; then 2814 echo $ECHO_N "(cached) $ECHO_C" >&6 2815else 2816 if test "x$host_alias" = x; then 2817 ac_cv_host=$ac_cv_build 2818else 2819 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2820 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2821echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2822 { (exit 1); exit 1; }; } 2823fi 2824 2825fi 2826{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2827echo "${ECHO_T}$ac_cv_host" >&6; } 2828case $ac_cv_host in 2829*-*-*) ;; 2830*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2831echo "$as_me: error: invalid value of canonical host" >&2;} 2832 { (exit 1); exit 1; }; };; 2833esac 2834host=$ac_cv_host 2835ac_save_IFS=$IFS; IFS='-' 2836set x $ac_cv_host 2837shift 2838host_cpu=$1 2839host_vendor=$2 2840shift; shift 2841# Remember, the first character of IFS is used to create $*, 2842# except with old shells: 2843host_os=$* 2844IFS=$ac_save_IFS 2845case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2846 2847 2848 2849ac_ext=c 2850ac_cpp='$CPP $CPPFLAGS' 2851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2853ac_compiler_gnu=$ac_cv_c_compiler_gnu 2854{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2855echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 2856# On Suns, sometimes $CPP names a directory. 2857if test -n "$CPP" && test -d "$CPP"; then 2858 CPP= 2859fi 2860if test -z "$CPP"; then 2861 if test "${ac_cv_prog_CPP+set}" = set; then 2862 echo $ECHO_N "(cached) $ECHO_C" >&6 2863else 2864 # Double quotes because CPP needs to be expanded 2865 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2866 do 2867 ac_preproc_ok=false 2868for ac_c_preproc_warn_flag in '' yes 2869do 2870 # Use a header file that comes with gcc, so configuring glibc 2871 # with a fresh cross-compiler works. 2872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2873 # <limits.h> exists even on freestanding compilers. 2874 # On the NeXT, cc -E runs the code through the compiler's parser, 2875 # not just through cpp. "Syntax error" is here to catch this case. 2876 cat >conftest.$ac_ext <<_ACEOF 2877/* confdefs.h. */ 2878_ACEOF 2879cat confdefs.h >>conftest.$ac_ext 2880cat >>conftest.$ac_ext <<_ACEOF 2881/* end confdefs.h. */ 2882#ifdef __STDC__ 2883# include <limits.h> 2884#else 2885# include <assert.h> 2886#endif 2887 Syntax error 2888_ACEOF 2889if { (ac_try="$ac_cpp conftest.$ac_ext" 2890case "(($ac_try" in 2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2892 *) ac_try_echo=$ac_try;; 2893esac 2894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2896 ac_status=$? 2897 grep -v '^ *+' conftest.er1 >conftest.err 2898 rm -f conftest.er1 2899 cat conftest.err >&5 2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2901 (exit $ac_status); } >/dev/null && { 2902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2903 test ! -s conftest.err 2904 }; then 2905 : 2906else 2907 echo "$as_me: failed program was:" >&5 2908sed 's/^/| /' conftest.$ac_ext >&5 2909 2910 # Broken: fails on valid input. 2911continue 2912fi 2913 2914rm -f conftest.err conftest.$ac_ext 2915 2916 # OK, works on sane cases. Now check whether nonexistent headers 2917 # can be detected and how. 2918 cat >conftest.$ac_ext <<_ACEOF 2919/* confdefs.h. */ 2920_ACEOF 2921cat confdefs.h >>conftest.$ac_ext 2922cat >>conftest.$ac_ext <<_ACEOF 2923/* end confdefs.h. */ 2924#include <ac_nonexistent.h> 2925_ACEOF 2926if { (ac_try="$ac_cpp conftest.$ac_ext" 2927case "(($ac_try" in 2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2929 *) ac_try_echo=$ac_try;; 2930esac 2931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2933 ac_status=$? 2934 grep -v '^ *+' conftest.er1 >conftest.err 2935 rm -f conftest.er1 2936 cat conftest.err >&5 2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2938 (exit $ac_status); } >/dev/null && { 2939 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2940 test ! -s conftest.err 2941 }; then 2942 # Broken: success on invalid input. 2943continue 2944else 2945 echo "$as_me: failed program was:" >&5 2946sed 's/^/| /' conftest.$ac_ext >&5 2947 2948 # Passes both tests. 2949ac_preproc_ok=: 2950break 2951fi 2952 2953rm -f conftest.err conftest.$ac_ext 2954 2955done 2956# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2957rm -f conftest.err conftest.$ac_ext 2958if $ac_preproc_ok; then 2959 break 2960fi 2961 2962 done 2963 ac_cv_prog_CPP=$CPP 2964 2965fi 2966 CPP=$ac_cv_prog_CPP 2967else 2968 ac_cv_prog_CPP=$CPP 2969fi 2970{ echo "$as_me:$LINENO: result: $CPP" >&5 2971echo "${ECHO_T}$CPP" >&6; } 2972ac_preproc_ok=false 2973for ac_c_preproc_warn_flag in '' yes 2974do 2975 # Use a header file that comes with gcc, so configuring glibc 2976 # with a fresh cross-compiler works. 2977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2978 # <limits.h> exists even on freestanding compilers. 2979 # On the NeXT, cc -E runs the code through the compiler's parser, 2980 # not just through cpp. "Syntax error" is here to catch this case. 2981 cat >conftest.$ac_ext <<_ACEOF 2982/* confdefs.h. */ 2983_ACEOF 2984cat confdefs.h >>conftest.$ac_ext 2985cat >>conftest.$ac_ext <<_ACEOF 2986/* end confdefs.h. */ 2987#ifdef __STDC__ 2988# include <limits.h> 2989#else 2990# include <assert.h> 2991#endif 2992 Syntax error 2993_ACEOF 2994if { (ac_try="$ac_cpp conftest.$ac_ext" 2995case "(($ac_try" in 2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2997 *) ac_try_echo=$ac_try;; 2998esac 2999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3001 ac_status=$? 3002 grep -v '^ *+' conftest.er1 >conftest.err 3003 rm -f conftest.er1 3004 cat conftest.err >&5 3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3006 (exit $ac_status); } >/dev/null && { 3007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3008 test ! -s conftest.err 3009 }; then 3010 : 3011else 3012 echo "$as_me: failed program was:" >&5 3013sed 's/^/| /' conftest.$ac_ext >&5 3014 3015 # Broken: fails on valid input. 3016continue 3017fi 3018 3019rm -f conftest.err conftest.$ac_ext 3020 3021 # OK, works on sane cases. Now check whether nonexistent headers 3022 # can be detected and how. 3023 cat >conftest.$ac_ext <<_ACEOF 3024/* confdefs.h. */ 3025_ACEOF 3026cat confdefs.h >>conftest.$ac_ext 3027cat >>conftest.$ac_ext <<_ACEOF 3028/* end confdefs.h. */ 3029#include <ac_nonexistent.h> 3030_ACEOF 3031if { (ac_try="$ac_cpp conftest.$ac_ext" 3032case "(($ac_try" in 3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3034 *) ac_try_echo=$ac_try;; 3035esac 3036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3038 ac_status=$? 3039 grep -v '^ *+' conftest.er1 >conftest.err 3040 rm -f conftest.er1 3041 cat conftest.err >&5 3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3043 (exit $ac_status); } >/dev/null && { 3044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3045 test ! -s conftest.err 3046 }; then 3047 # Broken: success on invalid input. 3048continue 3049else 3050 echo "$as_me: failed program was:" >&5 3051sed 's/^/| /' conftest.$ac_ext >&5 3052 3053 # Passes both tests. 3054ac_preproc_ok=: 3055break 3056fi 3057 3058rm -f conftest.err conftest.$ac_ext 3059 3060done 3061# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3062rm -f conftest.err conftest.$ac_ext 3063if $ac_preproc_ok; then 3064 : 3065else 3066 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3067See \`config.log' for more details." >&5 3068echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3069See \`config.log' for more details." >&2;} 3070 { (exit 1); exit 1; }; } 3071fi 3072 3073ac_ext=c 3074ac_cpp='$CPP $CPPFLAGS' 3075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3077ac_compiler_gnu=$ac_cv_c_compiler_gnu 3078 3079 3080{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3081echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3082if test "${ac_cv_path_GREP+set}" = set; then 3083 echo $ECHO_N "(cached) $ECHO_C" >&6 3084else 3085 # Extract the first word of "grep ggrep" to use in msg output 3086if test -z "$GREP"; then 3087set dummy grep ggrep; ac_prog_name=$2 3088if test "${ac_cv_path_GREP+set}" = set; then 3089 echo $ECHO_N "(cached) $ECHO_C" >&6 3090else 3091 ac_path_GREP_found=false 3092# Loop through the user's path and test for each of PROGNAME-LIST 3093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3094for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3095do 3096 IFS=$as_save_IFS 3097 test -z "$as_dir" && as_dir=. 3098 for ac_prog in grep ggrep; do 3099 for ac_exec_ext in '' $ac_executable_extensions; do 3100 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3101 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3102 # Check for GNU ac_path_GREP and select it if it is found. 3103 # Check for GNU $ac_path_GREP 3104case `"$ac_path_GREP" --version 2>&1` in 3105*GNU*) 3106 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3107*) 3108 ac_count=0 3109 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3110 while : 3111 do 3112 cat "conftest.in" "conftest.in" >"conftest.tmp" 3113 mv "conftest.tmp" "conftest.in" 3114 cp "conftest.in" "conftest.nl" 3115 echo 'GREP' >> "conftest.nl" 3116 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3117 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3118 ac_count=`expr $ac_count + 1` 3119 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3120 # Best one so far, save it but keep looking for a better one 3121 ac_cv_path_GREP="$ac_path_GREP" 3122 ac_path_GREP_max=$ac_count 3123 fi 3124 # 10*(2^10) chars as input seems more than enough 3125 test $ac_count -gt 10 && break 3126 done 3127 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3128esac 3129 3130 3131 $ac_path_GREP_found && break 3 3132 done 3133done 3134 3135done 3136IFS=$as_save_IFS 3137 3138 3139fi 3140 3141GREP="$ac_cv_path_GREP" 3142if test -z "$GREP"; then 3143 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3144echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3145 { (exit 1); exit 1; }; } 3146fi 3147 3148else 3149 ac_cv_path_GREP=$GREP 3150fi 3151 3152 3153fi 3154{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3155echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3156 GREP="$ac_cv_path_GREP" 3157 3158 3159{ echo "$as_me:$LINENO: checking for egrep" >&5 3160echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3161if test "${ac_cv_path_EGREP+set}" = set; then 3162 echo $ECHO_N "(cached) $ECHO_C" >&6 3163else 3164 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3165 then ac_cv_path_EGREP="$GREP -E" 3166 else 3167 # Extract the first word of "egrep" to use in msg output 3168if test -z "$EGREP"; then 3169set dummy egrep; ac_prog_name=$2 3170if test "${ac_cv_path_EGREP+set}" = set; then 3171 echo $ECHO_N "(cached) $ECHO_C" >&6 3172else 3173 ac_path_EGREP_found=false 3174# Loop through the user's path and test for each of PROGNAME-LIST 3175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3176for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3177do 3178 IFS=$as_save_IFS 3179 test -z "$as_dir" && as_dir=. 3180 for ac_prog in egrep; do 3181 for ac_exec_ext in '' $ac_executable_extensions; do 3182 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3183 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3184 # Check for GNU ac_path_EGREP and select it if it is found. 3185 # Check for GNU $ac_path_EGREP 3186case `"$ac_path_EGREP" --version 2>&1` in 3187*GNU*) 3188 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3189*) 3190 ac_count=0 3191 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3192 while : 3193 do 3194 cat "conftest.in" "conftest.in" >"conftest.tmp" 3195 mv "conftest.tmp" "conftest.in" 3196 cp "conftest.in" "conftest.nl" 3197 echo 'EGREP' >> "conftest.nl" 3198 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3200 ac_count=`expr $ac_count + 1` 3201 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3202 # Best one so far, save it but keep looking for a better one 3203 ac_cv_path_EGREP="$ac_path_EGREP" 3204 ac_path_EGREP_max=$ac_count 3205 fi 3206 # 10*(2^10) chars as input seems more than enough 3207 test $ac_count -gt 10 && break 3208 done 3209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3210esac 3211 3212 3213 $ac_path_EGREP_found && break 3 3214 done 3215done 3216 3217done 3218IFS=$as_save_IFS 3219 3220 3221fi 3222 3223EGREP="$ac_cv_path_EGREP" 3224if test -z "$EGREP"; then 3225 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3226echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3227 { (exit 1); exit 1; }; } 3228fi 3229 3230else 3231 ac_cv_path_EGREP=$EGREP 3232fi 3233 3234 3235 fi 3236fi 3237{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3238echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3239 EGREP="$ac_cv_path_EGREP" 3240 3241 3242{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3243echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3244if test "${ac_cv_header_stdc+set}" = set; then 3245 echo $ECHO_N "(cached) $ECHO_C" >&6 3246else 3247 cat >conftest.$ac_ext <<_ACEOF 3248/* confdefs.h. */ 3249_ACEOF 3250cat confdefs.h >>conftest.$ac_ext 3251cat >>conftest.$ac_ext <<_ACEOF 3252/* end confdefs.h. */ 3253#include <stdlib.h> 3254#include <stdarg.h> 3255#include <string.h> 3256#include <float.h> 3257 3258int 3259main () 3260{ 3261 3262 ; 3263 return 0; 3264} 3265_ACEOF 3266rm -f conftest.$ac_objext 3267if { (ac_try="$ac_compile" 3268case "(($ac_try" in 3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3270 *) ac_try_echo=$ac_try;; 3271esac 3272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3273 (eval "$ac_compile") 2>conftest.er1 3274 ac_status=$? 3275 grep -v '^ *+' conftest.er1 >conftest.err 3276 rm -f conftest.er1 3277 cat conftest.err >&5 3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3279 (exit $ac_status); } && { 3280 test -z "$ac_c_werror_flag" || 3281 test ! -s conftest.err 3282 } && test -s conftest.$ac_objext; then 3283 ac_cv_header_stdc=yes 3284else 3285 echo "$as_me: failed program was:" >&5 3286sed 's/^/| /' conftest.$ac_ext >&5 3287 3288 ac_cv_header_stdc=no 3289fi 3290 3291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3292 3293if test $ac_cv_header_stdc = yes; then 3294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3295 cat >conftest.$ac_ext <<_ACEOF 3296/* confdefs.h. */ 3297_ACEOF 3298cat confdefs.h >>conftest.$ac_ext 3299cat >>conftest.$ac_ext <<_ACEOF 3300/* end confdefs.h. */ 3301#include <string.h> 3302 3303_ACEOF 3304if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3305 $EGREP "memchr" >/dev/null 2>&1; then 3306 : 3307else 3308 ac_cv_header_stdc=no 3309fi 3310rm -f conftest* 3311 3312fi 3313 3314if test $ac_cv_header_stdc = yes; then 3315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3316 cat >conftest.$ac_ext <<_ACEOF 3317/* confdefs.h. */ 3318_ACEOF 3319cat confdefs.h >>conftest.$ac_ext 3320cat >>conftest.$ac_ext <<_ACEOF 3321/* end confdefs.h. */ 3322#include <stdlib.h> 3323 3324_ACEOF 3325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3326 $EGREP "free" >/dev/null 2>&1; then 3327 : 3328else 3329 ac_cv_header_stdc=no 3330fi 3331rm -f conftest* 3332 3333fi 3334 3335if test $ac_cv_header_stdc = yes; then 3336 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3337 if test "$cross_compiling" = yes; then 3338 : 3339else 3340 cat >conftest.$ac_ext <<_ACEOF 3341/* confdefs.h. */ 3342_ACEOF 3343cat confdefs.h >>conftest.$ac_ext 3344cat >>conftest.$ac_ext <<_ACEOF 3345/* end confdefs.h. */ 3346#include <ctype.h> 3347#include <stdlib.h> 3348#if ((' ' & 0x0FF) == 0x020) 3349# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3350# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3351#else 3352# define ISLOWER(c) \ 3353 (('a' <= (c) && (c) <= 'i') \ 3354 || ('j' <= (c) && (c) <= 'r') \ 3355 || ('s' <= (c) && (c) <= 'z')) 3356# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3357#endif 3358 3359#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3360int 3361main () 3362{ 3363 int i; 3364 for (i = 0; i < 256; i++) 3365 if (XOR (islower (i), ISLOWER (i)) 3366 || toupper (i) != TOUPPER (i)) 3367 return 2; 3368 return 0; 3369} 3370_ACEOF 3371rm -f conftest$ac_exeext 3372if { (ac_try="$ac_link" 3373case "(($ac_try" in 3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3375 *) ac_try_echo=$ac_try;; 3376esac 3377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3378 (eval "$ac_link") 2>&5 3379 ac_status=$? 3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3382 { (case "(($ac_try" in 3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3384 *) ac_try_echo=$ac_try;; 3385esac 3386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3387 (eval "$ac_try") 2>&5 3388 ac_status=$? 3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3390 (exit $ac_status); }; }; then 3391 : 3392else 3393 echo "$as_me: program exited with status $ac_status" >&5 3394echo "$as_me: failed program was:" >&5 3395sed 's/^/| /' conftest.$ac_ext >&5 3396 3397( exit $ac_status ) 3398ac_cv_header_stdc=no 3399fi 3400rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3401fi 3402 3403 3404fi 3405fi 3406{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3407echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3408if test $ac_cv_header_stdc = yes; then 3409 3410cat >>confdefs.h <<\_ACEOF 3411#define STDC_HEADERS 1 3412_ACEOF 3413 3414fi 3415 3416# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3427 inttypes.h stdint.h unistd.h 3428do 3429as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3430{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3431echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3432if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3433 echo $ECHO_N "(cached) $ECHO_C" >&6 3434else 3435 cat >conftest.$ac_ext <<_ACEOF 3436/* confdefs.h. */ 3437_ACEOF 3438cat confdefs.h >>conftest.$ac_ext 3439cat >>conftest.$ac_ext <<_ACEOF 3440/* end confdefs.h. */ 3441$ac_includes_default 3442 3443#include <$ac_header> 3444_ACEOF 3445rm -f conftest.$ac_objext 3446if { (ac_try="$ac_compile" 3447case "(($ac_try" in 3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3449 *) ac_try_echo=$ac_try;; 3450esac 3451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3452 (eval "$ac_compile") 2>conftest.er1 3453 ac_status=$? 3454 grep -v '^ *+' conftest.er1 >conftest.err 3455 rm -f conftest.er1 3456 cat conftest.err >&5 3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3458 (exit $ac_status); } && { 3459 test -z "$ac_c_werror_flag" || 3460 test ! -s conftest.err 3461 } && test -s conftest.$ac_objext; then 3462 eval "$as_ac_Header=yes" 3463else 3464 echo "$as_me: failed program was:" >&5 3465sed 's/^/| /' conftest.$ac_ext >&5 3466 3467 eval "$as_ac_Header=no" 3468fi 3469 3470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3471fi 3472ac_res=`eval echo '${'$as_ac_Header'}'` 3473 { echo "$as_me:$LINENO: result: $ac_res" >&5 3474echo "${ECHO_T}$ac_res" >&6; } 3475if test `eval echo '${'$as_ac_Header'}'` = yes; then 3476 cat >>confdefs.h <<_ACEOF 3477#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3478_ACEOF 3479 3480fi 3481 3482done 3483 3484 3485{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 3486echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 3487if test "${ac_cv_c_bigendian+set}" = set; then 3488 echo $ECHO_N "(cached) $ECHO_C" >&6 3489else 3490 # See if sys/param.h defines the BYTE_ORDER macro. 3491cat >conftest.$ac_ext <<_ACEOF 3492/* confdefs.h. */ 3493_ACEOF 3494cat confdefs.h >>conftest.$ac_ext 3495cat >>conftest.$ac_ext <<_ACEOF 3496/* end confdefs.h. */ 3497#include <sys/types.h> 3498#include <sys/param.h> 3499 3500int 3501main () 3502{ 3503#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 3504 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 3505 bogus endian macros 3506#endif 3507 3508 ; 3509 return 0; 3510} 3511_ACEOF 3512rm -f conftest.$ac_objext 3513if { (ac_try="$ac_compile" 3514case "(($ac_try" in 3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3516 *) ac_try_echo=$ac_try;; 3517esac 3518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3519 (eval "$ac_compile") 2>conftest.er1 3520 ac_status=$? 3521 grep -v '^ *+' conftest.er1 >conftest.err 3522 rm -f conftest.er1 3523 cat conftest.err >&5 3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3525 (exit $ac_status); } && { 3526 test -z "$ac_c_werror_flag" || 3527 test ! -s conftest.err 3528 } && test -s conftest.$ac_objext; then 3529 # It does; now see whether it defined to BIG_ENDIAN or not. 3530cat >conftest.$ac_ext <<_ACEOF 3531/* confdefs.h. */ 3532_ACEOF 3533cat confdefs.h >>conftest.$ac_ext 3534cat >>conftest.$ac_ext <<_ACEOF 3535/* end confdefs.h. */ 3536#include <sys/types.h> 3537#include <sys/param.h> 3538 3539int 3540main () 3541{ 3542#if BYTE_ORDER != BIG_ENDIAN 3543 not big endian 3544#endif 3545 3546 ; 3547 return 0; 3548} 3549_ACEOF 3550rm -f conftest.$ac_objext 3551if { (ac_try="$ac_compile" 3552case "(($ac_try" in 3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3554 *) ac_try_echo=$ac_try;; 3555esac 3556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3557 (eval "$ac_compile") 2>conftest.er1 3558 ac_status=$? 3559 grep -v '^ *+' conftest.er1 >conftest.err 3560 rm -f conftest.er1 3561 cat conftest.err >&5 3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3563 (exit $ac_status); } && { 3564 test -z "$ac_c_werror_flag" || 3565 test ! -s conftest.err 3566 } && test -s conftest.$ac_objext; then 3567 ac_cv_c_bigendian=yes 3568else 3569 echo "$as_me: failed program was:" >&5 3570sed 's/^/| /' conftest.$ac_ext >&5 3571 3572 ac_cv_c_bigendian=no 3573fi 3574 3575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3576else 3577 echo "$as_me: failed program was:" >&5 3578sed 's/^/| /' conftest.$ac_ext >&5 3579 3580 # It does not; compile a test program. 3581if test "$cross_compiling" = yes; then 3582 # try to guess the endianness by grepping values into an object file 3583 ac_cv_c_bigendian=unknown 3584 cat >conftest.$ac_ext <<_ACEOF 3585/* confdefs.h. */ 3586_ACEOF 3587cat confdefs.h >>conftest.$ac_ext 3588cat >>conftest.$ac_ext <<_ACEOF 3589/* end confdefs.h. */ 3590short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 3591short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 3592void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 3593short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 3594short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 3595void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 3596int 3597main () 3598{ 3599 _ascii (); _ebcdic (); 3600 ; 3601 return 0; 3602} 3603_ACEOF 3604rm -f conftest.$ac_objext 3605if { (ac_try="$ac_compile" 3606case "(($ac_try" in 3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3608 *) ac_try_echo=$ac_try;; 3609esac 3610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3611 (eval "$ac_compile") 2>conftest.er1 3612 ac_status=$? 3613 grep -v '^ *+' conftest.er1 >conftest.err 3614 rm -f conftest.er1 3615 cat conftest.err >&5 3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3617 (exit $ac_status); } && { 3618 test -z "$ac_c_werror_flag" || 3619 test ! -s conftest.err 3620 } && test -s conftest.$ac_objext; then 3621 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 3622 ac_cv_c_bigendian=yes 3623fi 3624if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 3625 if test "$ac_cv_c_bigendian" = unknown; then 3626 ac_cv_c_bigendian=no 3627 else 3628 # finding both strings is unlikely to happen, but who knows? 3629 ac_cv_c_bigendian=unknown 3630 fi 3631fi 3632else 3633 echo "$as_me: failed program was:" >&5 3634sed 's/^/| /' conftest.$ac_ext >&5 3635 3636 3637fi 3638 3639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3640else 3641 cat >conftest.$ac_ext <<_ACEOF 3642/* confdefs.h. */ 3643_ACEOF 3644cat confdefs.h >>conftest.$ac_ext 3645cat >>conftest.$ac_ext <<_ACEOF 3646/* end confdefs.h. */ 3647$ac_includes_default 3648int 3649main () 3650{ 3651 3652 /* Are we little or big endian? From Harbison&Steele. */ 3653 union 3654 { 3655 long int l; 3656 char c[sizeof (long int)]; 3657 } u; 3658 u.l = 1; 3659 return u.c[sizeof (long int) - 1] == 1; 3660 3661 ; 3662 return 0; 3663} 3664_ACEOF 3665rm -f conftest$ac_exeext 3666if { (ac_try="$ac_link" 3667case "(($ac_try" in 3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3669 *) ac_try_echo=$ac_try;; 3670esac 3671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3672 (eval "$ac_link") 2>&5 3673 ac_status=$? 3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3676 { (case "(($ac_try" in 3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3678 *) ac_try_echo=$ac_try;; 3679esac 3680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3681 (eval "$ac_try") 2>&5 3682 ac_status=$? 3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3684 (exit $ac_status); }; }; then 3685 ac_cv_c_bigendian=no 3686else 3687 echo "$as_me: program exited with status $ac_status" >&5 3688echo "$as_me: failed program was:" >&5 3689sed 's/^/| /' conftest.$ac_ext >&5 3690 3691( exit $ac_status ) 3692ac_cv_c_bigendian=yes 3693fi 3694rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3695fi 3696 3697 3698fi 3699 3700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3701fi 3702{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 3703echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 3704case $ac_cv_c_bigendian in 3705 yes) 3706 3707cat >>confdefs.h <<\_ACEOF 3708#define WORDS_BIGENDIAN 1 3709_ACEOF 3710 ;; 3711 no) 3712 ;; 3713 *) 3714 { { echo "$as_me:$LINENO: error: unknown endianness 3715presetting ac_cv_c_bigendian=no (or yes) will help" >&5 3716echo "$as_me: error: unknown endianness 3717presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 3718 { (exit 1); exit 1; }; } ;; 3719esac 3720 3721 3722# Checks for programs. 3723for ac_prog in gawk mawk nawk awk 3724do 3725 # Extract the first word of "$ac_prog", so it can be a program name with args. 3726set dummy $ac_prog; ac_word=$2 3727{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3729if test "${ac_cv_prog_AWK+set}" = set; then 3730 echo $ECHO_N "(cached) $ECHO_C" >&6 3731else 3732 if test -n "$AWK"; then 3733 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3734else 3735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3736for as_dir in $PATH 3737do 3738 IFS=$as_save_IFS 3739 test -z "$as_dir" && as_dir=. 3740 for ac_exec_ext in '' $ac_executable_extensions; do 3741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3742 ac_cv_prog_AWK="$ac_prog" 3743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3744 break 2 3745 fi 3746done 3747done 3748IFS=$as_save_IFS 3749 3750fi 3751fi 3752AWK=$ac_cv_prog_AWK 3753if test -n "$AWK"; then 3754 { echo "$as_me:$LINENO: result: $AWK" >&5 3755echo "${ECHO_T}$AWK" >&6; } 3756else 3757 { echo "$as_me:$LINENO: result: no" >&5 3758echo "${ECHO_T}no" >&6; } 3759fi 3760 3761 3762 test -n "$AWK" && break 3763done 3764 3765ac_ext=c 3766ac_cpp='$CPP $CPPFLAGS' 3767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3769ac_compiler_gnu=$ac_cv_c_compiler_gnu 3770{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3771echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3772# On Suns, sometimes $CPP names a directory. 3773if test -n "$CPP" && test -d "$CPP"; then 3774 CPP= 3775fi 3776if test -z "$CPP"; then 3777 if test "${ac_cv_prog_CPP+set}" = set; then 3778 echo $ECHO_N "(cached) $ECHO_C" >&6 3779else 3780 # Double quotes because CPP needs to be expanded 3781 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3782 do 3783 ac_preproc_ok=false 3784for ac_c_preproc_warn_flag in '' yes 3785do 3786 # Use a header file that comes with gcc, so configuring glibc 3787 # with a fresh cross-compiler works. 3788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3789 # <limits.h> exists even on freestanding compilers. 3790 # On the NeXT, cc -E runs the code through the compiler's parser, 3791 # not just through cpp. "Syntax error" is here to catch this case. 3792 cat >conftest.$ac_ext <<_ACEOF 3793/* confdefs.h. */ 3794_ACEOF 3795cat confdefs.h >>conftest.$ac_ext 3796cat >>conftest.$ac_ext <<_ACEOF 3797/* end confdefs.h. */ 3798#ifdef __STDC__ 3799# include <limits.h> 3800#else 3801# include <assert.h> 3802#endif 3803 Syntax error 3804_ACEOF 3805if { (ac_try="$ac_cpp conftest.$ac_ext" 3806case "(($ac_try" in 3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3808 *) ac_try_echo=$ac_try;; 3809esac 3810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3812 ac_status=$? 3813 grep -v '^ *+' conftest.er1 >conftest.err 3814 rm -f conftest.er1 3815 cat conftest.err >&5 3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3817 (exit $ac_status); } >/dev/null && { 3818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3819 test ! -s conftest.err 3820 }; then 3821 : 3822else 3823 echo "$as_me: failed program was:" >&5 3824sed 's/^/| /' conftest.$ac_ext >&5 3825 3826 # Broken: fails on valid input. 3827continue 3828fi 3829 3830rm -f conftest.err conftest.$ac_ext 3831 3832 # OK, works on sane cases. Now check whether nonexistent headers 3833 # can be detected and how. 3834 cat >conftest.$ac_ext <<_ACEOF 3835/* confdefs.h. */ 3836_ACEOF 3837cat confdefs.h >>conftest.$ac_ext 3838cat >>conftest.$ac_ext <<_ACEOF 3839/* end confdefs.h. */ 3840#include <ac_nonexistent.h> 3841_ACEOF 3842if { (ac_try="$ac_cpp conftest.$ac_ext" 3843case "(($ac_try" in 3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3845 *) ac_try_echo=$ac_try;; 3846esac 3847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3849 ac_status=$? 3850 grep -v '^ *+' conftest.er1 >conftest.err 3851 rm -f conftest.er1 3852 cat conftest.err >&5 3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3854 (exit $ac_status); } >/dev/null && { 3855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3856 test ! -s conftest.err 3857 }; then 3858 # Broken: success on invalid input. 3859continue 3860else 3861 echo "$as_me: failed program was:" >&5 3862sed 's/^/| /' conftest.$ac_ext >&5 3863 3864 # Passes both tests. 3865ac_preproc_ok=: 3866break 3867fi 3868 3869rm -f conftest.err conftest.$ac_ext 3870 3871done 3872# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3873rm -f conftest.err conftest.$ac_ext 3874if $ac_preproc_ok; then 3875 break 3876fi 3877 3878 done 3879 ac_cv_prog_CPP=$CPP 3880 3881fi 3882 CPP=$ac_cv_prog_CPP 3883else 3884 ac_cv_prog_CPP=$CPP 3885fi 3886{ echo "$as_me:$LINENO: result: $CPP" >&5 3887echo "${ECHO_T}$CPP" >&6; } 3888ac_preproc_ok=false 3889for ac_c_preproc_warn_flag in '' yes 3890do 3891 # Use a header file that comes with gcc, so configuring glibc 3892 # with a fresh cross-compiler works. 3893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3894 # <limits.h> exists even on freestanding compilers. 3895 # On the NeXT, cc -E runs the code through the compiler's parser, 3896 # not just through cpp. "Syntax error" is here to catch this case. 3897 cat >conftest.$ac_ext <<_ACEOF 3898/* confdefs.h. */ 3899_ACEOF 3900cat confdefs.h >>conftest.$ac_ext 3901cat >>conftest.$ac_ext <<_ACEOF 3902/* end confdefs.h. */ 3903#ifdef __STDC__ 3904# include <limits.h> 3905#else 3906# include <assert.h> 3907#endif 3908 Syntax error 3909_ACEOF 3910if { (ac_try="$ac_cpp conftest.$ac_ext" 3911case "(($ac_try" in 3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3913 *) ac_try_echo=$ac_try;; 3914esac 3915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3917 ac_status=$? 3918 grep -v '^ *+' conftest.er1 >conftest.err 3919 rm -f conftest.er1 3920 cat conftest.err >&5 3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3922 (exit $ac_status); } >/dev/null && { 3923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3924 test ! -s conftest.err 3925 }; then 3926 : 3927else 3928 echo "$as_me: failed program was:" >&5 3929sed 's/^/| /' conftest.$ac_ext >&5 3930 3931 # Broken: fails on valid input. 3932continue 3933fi 3934 3935rm -f conftest.err conftest.$ac_ext 3936 3937 # OK, works on sane cases. Now check whether nonexistent headers 3938 # can be detected and how. 3939 cat >conftest.$ac_ext <<_ACEOF 3940/* confdefs.h. */ 3941_ACEOF 3942cat confdefs.h >>conftest.$ac_ext 3943cat >>conftest.$ac_ext <<_ACEOF 3944/* end confdefs.h. */ 3945#include <ac_nonexistent.h> 3946_ACEOF 3947if { (ac_try="$ac_cpp conftest.$ac_ext" 3948case "(($ac_try" in 3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3950 *) ac_try_echo=$ac_try;; 3951esac 3952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3954 ac_status=$? 3955 grep -v '^ *+' conftest.er1 >conftest.err 3956 rm -f conftest.er1 3957 cat conftest.err >&5 3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3959 (exit $ac_status); } >/dev/null && { 3960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3961 test ! -s conftest.err 3962 }; then 3963 # Broken: success on invalid input. 3964continue 3965else 3966 echo "$as_me: failed program was:" >&5 3967sed 's/^/| /' conftest.$ac_ext >&5 3968 3969 # Passes both tests. 3970ac_preproc_ok=: 3971break 3972fi 3973 3974rm -f conftest.err conftest.$ac_ext 3975 3976done 3977# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3978rm -f conftest.err conftest.$ac_ext 3979if $ac_preproc_ok; then 3980 : 3981else 3982 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3983See \`config.log' for more details." >&5 3984echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3985See \`config.log' for more details." >&2;} 3986 { (exit 1); exit 1; }; } 3987fi 3988 3989ac_ext=c 3990ac_cpp='$CPP $CPPFLAGS' 3991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3993ac_compiler_gnu=$ac_cv_c_compiler_gnu 3994 3995if test -n "$ac_tool_prefix"; then 3996 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3997set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3998{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4000if test "${ac_cv_prog_RANLIB+set}" = set; then 4001 echo $ECHO_N "(cached) $ECHO_C" >&6 4002else 4003 if test -n "$RANLIB"; then 4004 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4005else 4006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4007for as_dir in $PATH 4008do 4009 IFS=$as_save_IFS 4010 test -z "$as_dir" && as_dir=. 4011 for ac_exec_ext in '' $ac_executable_extensions; do 4012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4013 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4015 break 2 4016 fi 4017done 4018done 4019IFS=$as_save_IFS 4020 4021fi 4022fi 4023RANLIB=$ac_cv_prog_RANLIB 4024if test -n "$RANLIB"; then 4025 { echo "$as_me:$LINENO: result: $RANLIB" >&5 4026echo "${ECHO_T}$RANLIB" >&6; } 4027else 4028 { echo "$as_me:$LINENO: result: no" >&5 4029echo "${ECHO_T}no" >&6; } 4030fi 4031 4032 4033fi 4034if test -z "$ac_cv_prog_RANLIB"; then 4035 ac_ct_RANLIB=$RANLIB 4036 # Extract the first word of "ranlib", so it can be a program name with args. 4037set dummy ranlib; ac_word=$2 4038{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4040if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 4041 echo $ECHO_N "(cached) $ECHO_C" >&6 4042else 4043 if test -n "$ac_ct_RANLIB"; then 4044 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4045else 4046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4047for as_dir in $PATH 4048do 4049 IFS=$as_save_IFS 4050 test -z "$as_dir" && as_dir=. 4051 for ac_exec_ext in '' $ac_executable_extensions; do 4052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4053 ac_cv_prog_ac_ct_RANLIB="ranlib" 4054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4055 break 2 4056 fi 4057done 4058done 4059IFS=$as_save_IFS 4060 4061fi 4062fi 4063ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4064if test -n "$ac_ct_RANLIB"; then 4065 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 4066echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 4067else 4068 { echo "$as_me:$LINENO: result: no" >&5 4069echo "${ECHO_T}no" >&6; } 4070fi 4071 4072 if test "x$ac_ct_RANLIB" = x; then 4073 RANLIB=":" 4074 else 4075 case $cross_compiling:$ac_tool_warned in 4076yes:) 4077{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4078whose name does not start with the host triplet. If you think this 4079configuration is useful to you, please write to autoconf@gnu.org." >&5 4080echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4081whose name does not start with the host triplet. If you think this 4082configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4083ac_tool_warned=yes ;; 4084esac 4085 RANLIB=$ac_ct_RANLIB 4086 fi 4087else 4088 RANLIB="$ac_cv_prog_RANLIB" 4089fi 4090 4091# Find a good install program. We prefer a C program (faster), 4092# so one script is as good as another. But avoid the broken or 4093# incompatible versions: 4094# SysV /etc/install, /usr/sbin/install 4095# SunOS /usr/etc/install 4096# IRIX /sbin/install 4097# AIX /bin/install 4098# AmigaOS /C/install, which installs bootblocks on floppy discs 4099# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4100# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4101# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4102# OS/2's system install, which has a completely different semantic 4103# ./install, which can be erroneously created by make from ./install.sh. 4104{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4105echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 4106if test -z "$INSTALL"; then 4107if test "${ac_cv_path_install+set}" = set; then 4108 echo $ECHO_N "(cached) $ECHO_C" >&6 4109else 4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4111for as_dir in $PATH 4112do 4113 IFS=$as_save_IFS 4114 test -z "$as_dir" && as_dir=. 4115 # Account for people who put trailing slashes in PATH elements. 4116case $as_dir/ in 4117 ./ | .// | /cC/* | \ 4118 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4119 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4120 /usr/ucb/* ) ;; 4121 *) 4122 # OSF1 and SCO ODT 3.0 have their own names for install. 4123 # Don't use installbsd from OSF since it installs stuff as root 4124 # by default. 4125 for ac_prog in ginstall scoinst install; do 4126 for ac_exec_ext in '' $ac_executable_extensions; do 4127 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4128 if test $ac_prog = install && 4129 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4130 # AIX install. It has an incompatible calling convention. 4131 : 4132 elif test $ac_prog = install && 4133 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4134 # program-specific install script used by HP pwplus--don't use. 4135 : 4136 else 4137 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4138 break 3 4139 fi 4140 fi 4141 done 4142 done 4143 ;; 4144esac 4145done 4146IFS=$as_save_IFS 4147 4148 4149fi 4150 if test "${ac_cv_path_install+set}" = set; then 4151 INSTALL=$ac_cv_path_install 4152 else 4153 # As a last resort, use the slow shell script. Don't cache a 4154 # value for INSTALL within a source directory, because that will 4155 # break other packages using the cache if that directory is 4156 # removed, or if the value is a relative name. 4157 INSTALL=$ac_install_sh 4158 fi 4159fi 4160{ echo "$as_me:$LINENO: result: $INSTALL" >&5 4161echo "${ECHO_T}$INSTALL" >&6; } 4162 4163# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4164# It thinks the first close brace ends the variable substitution. 4165test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4166 4167test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4168 4169test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4170 4171{ echo "$as_me:$LINENO: checking for egrep" >&5 4172echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4173if test "${ac_cv_path_EGREP+set}" = set; then 4174 echo $ECHO_N "(cached) $ECHO_C" >&6 4175else 4176 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4177 then ac_cv_path_EGREP="$GREP -E" 4178 else 4179 # Extract the first word of "egrep" to use in msg output 4180if test -z "$EGREP"; then 4181set dummy egrep; ac_prog_name=$2 4182if test "${ac_cv_path_EGREP+set}" = set; then 4183 echo $ECHO_N "(cached) $ECHO_C" >&6 4184else 4185 ac_path_EGREP_found=false 4186# Loop through the user's path and test for each of PROGNAME-LIST 4187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4188for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4189do 4190 IFS=$as_save_IFS 4191 test -z "$as_dir" && as_dir=. 4192 for ac_prog in egrep; do 4193 for ac_exec_ext in '' $ac_executable_extensions; do 4194 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4195 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4196 # Check for GNU ac_path_EGREP and select it if it is found. 4197 # Check for GNU $ac_path_EGREP 4198case `"$ac_path_EGREP" --version 2>&1` in 4199*GNU*) 4200 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4201*) 4202 ac_count=0 4203 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4204 while : 4205 do 4206 cat "conftest.in" "conftest.in" >"conftest.tmp" 4207 mv "conftest.tmp" "conftest.in" 4208 cp "conftest.in" "conftest.nl" 4209 echo 'EGREP' >> "conftest.nl" 4210 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4211 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4212 ac_count=`expr $ac_count + 1` 4213 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4214 # Best one so far, save it but keep looking for a better one 4215 ac_cv_path_EGREP="$ac_path_EGREP" 4216 ac_path_EGREP_max=$ac_count 4217 fi 4218 # 10*(2^10) chars as input seems more than enough 4219 test $ac_count -gt 10 && break 4220 done 4221 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4222esac 4223 4224 4225 $ac_path_EGREP_found && break 3 4226 done 4227done 4228 4229done 4230IFS=$as_save_IFS 4231 4232 4233fi 4234 4235EGREP="$ac_cv_path_EGREP" 4236if test -z "$EGREP"; then 4237 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4238echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4239 { (exit 1); exit 1; }; } 4240fi 4241 4242else 4243 ac_cv_path_EGREP=$EGREP 4244fi 4245 4246 4247 fi 4248fi 4249{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4250echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4251 EGREP="$ac_cv_path_EGREP" 4252 4253 4254# Extract the first word of "ar", so it can be a program name with args. 4255set dummy ar; ac_word=$2 4256{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4258if test "${ac_cv_path_AR+set}" = set; then 4259 echo $ECHO_N "(cached) $ECHO_C" >&6 4260else 4261 case $AR in 4262 [\\/]* | ?:[\\/]*) 4263 ac_cv_path_AR="$AR" # Let the user override the test with a path. 4264 ;; 4265 *) 4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4267for as_dir in $PATH 4268do 4269 IFS=$as_save_IFS 4270 test -z "$as_dir" && as_dir=. 4271 for ac_exec_ext in '' $ac_executable_extensions; do 4272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4273 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 4274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4275 break 2 4276 fi 4277done 4278done 4279IFS=$as_save_IFS 4280 4281 ;; 4282esac 4283fi 4284AR=$ac_cv_path_AR 4285if test -n "$AR"; then 4286 { echo "$as_me:$LINENO: result: $AR" >&5 4287echo "${ECHO_T}$AR" >&6; } 4288else 4289 { echo "$as_me:$LINENO: result: no" >&5 4290echo "${ECHO_T}no" >&6; } 4291fi 4292 4293 4294# Extract the first word of "cat", so it can be a program name with args. 4295set dummy cat; ac_word=$2 4296{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4298if test "${ac_cv_path_CAT+set}" = set; then 4299 echo $ECHO_N "(cached) $ECHO_C" >&6 4300else 4301 case $CAT in 4302 [\\/]* | ?:[\\/]*) 4303 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4304 ;; 4305 *) 4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4307for as_dir in $PATH 4308do 4309 IFS=$as_save_IFS 4310 test -z "$as_dir" && as_dir=. 4311 for ac_exec_ext in '' $ac_executable_extensions; do 4312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4313 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4315 break 2 4316 fi 4317done 4318done 4319IFS=$as_save_IFS 4320 4321 ;; 4322esac 4323fi 4324CAT=$ac_cv_path_CAT 4325if test -n "$CAT"; then 4326 { echo "$as_me:$LINENO: result: $CAT" >&5 4327echo "${ECHO_T}$CAT" >&6; } 4328else 4329 { echo "$as_me:$LINENO: result: no" >&5 4330echo "${ECHO_T}no" >&6; } 4331fi 4332 4333 4334# Extract the first word of "kill", so it can be a program name with args. 4335set dummy kill; ac_word=$2 4336{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4338if test "${ac_cv_path_KILL+set}" = set; then 4339 echo $ECHO_N "(cached) $ECHO_C" >&6 4340else 4341 case $KILL in 4342 [\\/]* | ?:[\\/]*) 4343 ac_cv_path_KILL="$KILL" # Let the user override the test with a path. 4344 ;; 4345 *) 4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4347for as_dir in $PATH 4348do 4349 IFS=$as_save_IFS 4350 test -z "$as_dir" && as_dir=. 4351 for ac_exec_ext in '' $ac_executable_extensions; do 4352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4353 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" 4354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4355 break 2 4356 fi 4357done 4358done 4359IFS=$as_save_IFS 4360 4361 ;; 4362esac 4363fi 4364KILL=$ac_cv_path_KILL 4365if test -n "$KILL"; then 4366 { echo "$as_me:$LINENO: result: $KILL" >&5 4367echo "${ECHO_T}$KILL" >&6; } 4368else 4369 { echo "$as_me:$LINENO: result: no" >&5 4370echo "${ECHO_T}no" >&6; } 4371fi 4372 4373 4374for ac_prog in perl5 perl 4375do 4376 # Extract the first word of "$ac_prog", so it can be a program name with args. 4377set dummy $ac_prog; ac_word=$2 4378{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4380if test "${ac_cv_path_PERL+set}" = set; then 4381 echo $ECHO_N "(cached) $ECHO_C" >&6 4382else 4383 case $PERL in 4384 [\\/]* | ?:[\\/]*) 4385 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 4386 ;; 4387 *) 4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4389for as_dir in $PATH 4390do 4391 IFS=$as_save_IFS 4392 test -z "$as_dir" && as_dir=. 4393 for ac_exec_ext in '' $ac_executable_extensions; do 4394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4395 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 4396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4397 break 2 4398 fi 4399done 4400done 4401IFS=$as_save_IFS 4402 4403 ;; 4404esac 4405fi 4406PERL=$ac_cv_path_PERL 4407if test -n "$PERL"; then 4408 { echo "$as_me:$LINENO: result: $PERL" >&5 4409echo "${ECHO_T}$PERL" >&6; } 4410else 4411 { echo "$as_me:$LINENO: result: no" >&5 4412echo "${ECHO_T}no" >&6; } 4413fi 4414 4415 4416 test -n "$PERL" && break 4417done 4418 4419# Extract the first word of "sed", so it can be a program name with args. 4420set dummy sed; ac_word=$2 4421{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4423if test "${ac_cv_path_SED+set}" = set; then 4424 echo $ECHO_N "(cached) $ECHO_C" >&6 4425else 4426 case $SED in 4427 [\\/]* | ?:[\\/]*) 4428 ac_cv_path_SED="$SED" # Let the user override the test with a path. 4429 ;; 4430 *) 4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4432for as_dir in $PATH 4433do 4434 IFS=$as_save_IFS 4435 test -z "$as_dir" && as_dir=. 4436 for ac_exec_ext in '' $ac_executable_extensions; do 4437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4438 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4440 break 2 4441 fi 4442done 4443done 4444IFS=$as_save_IFS 4445 4446 ;; 4447esac 4448fi 4449SED=$ac_cv_path_SED 4450if test -n "$SED"; then 4451 { echo "$as_me:$LINENO: result: $SED" >&5 4452echo "${ECHO_T}$SED" >&6; } 4453else 4454 { echo "$as_me:$LINENO: result: no" >&5 4455echo "${ECHO_T}no" >&6; } 4456fi 4457 4458 4459 4460# Extract the first word of "ent", so it can be a program name with args. 4461set dummy ent; ac_word=$2 4462{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4464if test "${ac_cv_path_ENT+set}" = set; then 4465 echo $ECHO_N "(cached) $ECHO_C" >&6 4466else 4467 case $ENT in 4468 [\\/]* | ?:[\\/]*) 4469 ac_cv_path_ENT="$ENT" # Let the user override the test with a path. 4470 ;; 4471 *) 4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4473for as_dir in $PATH 4474do 4475 IFS=$as_save_IFS 4476 test -z "$as_dir" && as_dir=. 4477 for ac_exec_ext in '' $ac_executable_extensions; do 4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4479 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" 4480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4481 break 2 4482 fi 4483done 4484done 4485IFS=$as_save_IFS 4486 4487 ;; 4488esac 4489fi 4490ENT=$ac_cv_path_ENT 4491if test -n "$ENT"; then 4492 { echo "$as_me:$LINENO: result: $ENT" >&5 4493echo "${ECHO_T}$ENT" >&6; } 4494else 4495 { echo "$as_me:$LINENO: result: no" >&5 4496echo "${ECHO_T}no" >&6; } 4497fi 4498 4499 4500 4501# Extract the first word of "bash", so it can be a program name with args. 4502set dummy bash; ac_word=$2 4503{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4505if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then 4506 echo $ECHO_N "(cached) $ECHO_C" >&6 4507else 4508 case $TEST_MINUS_S_SH in 4509 [\\/]* | ?:[\\/]*) 4510 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. 4511 ;; 4512 *) 4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4514for as_dir in $PATH 4515do 4516 IFS=$as_save_IFS 4517 test -z "$as_dir" && as_dir=. 4518 for ac_exec_ext in '' $ac_executable_extensions; do 4519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4520 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" 4521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4522 break 2 4523 fi 4524done 4525done 4526IFS=$as_save_IFS 4527 4528 ;; 4529esac 4530fi 4531TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH 4532if test -n "$TEST_MINUS_S_SH"; then 4533 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 4534echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } 4535else 4536 { echo "$as_me:$LINENO: result: no" >&5 4537echo "${ECHO_T}no" >&6; } 4538fi 4539 4540 4541# Extract the first word of "ksh", so it can be a program name with args. 4542set dummy ksh; ac_word=$2 4543{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4545if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then 4546 echo $ECHO_N "(cached) $ECHO_C" >&6 4547else 4548 case $TEST_MINUS_S_SH in 4549 [\\/]* | ?:[\\/]*) 4550 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. 4551 ;; 4552 *) 4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4554for as_dir in $PATH 4555do 4556 IFS=$as_save_IFS 4557 test -z "$as_dir" && as_dir=. 4558 for ac_exec_ext in '' $ac_executable_extensions; do 4559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4560 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" 4561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4562 break 2 4563 fi 4564done 4565done 4566IFS=$as_save_IFS 4567 4568 ;; 4569esac 4570fi 4571TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH 4572if test -n "$TEST_MINUS_S_SH"; then 4573 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 4574echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } 4575else 4576 { echo "$as_me:$LINENO: result: no" >&5 4577echo "${ECHO_T}no" >&6; } 4578fi 4579 4580 4581# Extract the first word of "sh", so it can be a program name with args. 4582set dummy sh; ac_word=$2 4583{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4585if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then 4586 echo $ECHO_N "(cached) $ECHO_C" >&6 4587else 4588 case $TEST_MINUS_S_SH in 4589 [\\/]* | ?:[\\/]*) 4590 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. 4591 ;; 4592 *) 4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4594for as_dir in $PATH 4595do 4596 IFS=$as_save_IFS 4597 test -z "$as_dir" && as_dir=. 4598 for ac_exec_ext in '' $ac_executable_extensions; do 4599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4600 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" 4601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4602 break 2 4603 fi 4604done 4605done 4606IFS=$as_save_IFS 4607 4608 ;; 4609esac 4610fi 4611TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH 4612if test -n "$TEST_MINUS_S_SH"; then 4613 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 4614echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; } 4615else 4616 { echo "$as_me:$LINENO: result: no" >&5 4617echo "${ECHO_T}no" >&6; } 4618fi 4619 4620 4621# Extract the first word of "sh", so it can be a program name with args. 4622set dummy sh; ac_word=$2 4623{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4625if test "${ac_cv_path_SH+set}" = set; then 4626 echo $ECHO_N "(cached) $ECHO_C" >&6 4627else 4628 case $SH in 4629 [\\/]* | ?:[\\/]*) 4630 ac_cv_path_SH="$SH" # Let the user override the test with a path. 4631 ;; 4632 *) 4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4634for as_dir in $PATH 4635do 4636 IFS=$as_save_IFS 4637 test -z "$as_dir" && as_dir=. 4638 for ac_exec_ext in '' $ac_executable_extensions; do 4639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4640 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 4641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4642 break 2 4643 fi 4644done 4645done 4646IFS=$as_save_IFS 4647 4648 ;; 4649esac 4650fi 4651SH=$ac_cv_path_SH 4652if test -n "$SH"; then 4653 { echo "$as_me:$LINENO: result: $SH" >&5 4654echo "${ECHO_T}$SH" >&6; } 4655else 4656 { echo "$as_me:$LINENO: result: no" >&5 4657echo "${ECHO_T}no" >&6; } 4658fi 4659 4660 4661TEST_SHELL=sh 4662 4663 4664# Extract the first word of "groupadd", so it can be a program name with args. 4665set dummy groupadd; ac_word=$2 4666{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4668if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then 4669 echo $ECHO_N "(cached) $ECHO_C" >&6 4670else 4671 case $PATH_GROUPADD_PROG in 4672 [\\/]* | ?:[\\/]*) 4673 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. 4674 ;; 4675 *) 4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4677for as_dir in /usr/sbin${PATH_SEPARATOR}/etc 4678do 4679 IFS=$as_save_IFS 4680 test -z "$as_dir" && as_dir=. 4681 for ac_exec_ext in '' $ac_executable_extensions; do 4682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4683 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" 4684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4685 break 2 4686 fi 4687done 4688done 4689IFS=$as_save_IFS 4690 4691 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" 4692 ;; 4693esac 4694fi 4695PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG 4696if test -n "$PATH_GROUPADD_PROG"; then 4697 { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5 4698echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; } 4699else 4700 { echo "$as_me:$LINENO: result: no" >&5 4701echo "${ECHO_T}no" >&6; } 4702fi 4703 4704 4705# Extract the first word of "useradd", so it can be a program name with args. 4706set dummy useradd; ac_word=$2 4707{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4709if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then 4710 echo $ECHO_N "(cached) $ECHO_C" >&6 4711else 4712 case $PATH_USERADD_PROG in 4713 [\\/]* | ?:[\\/]*) 4714 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. 4715 ;; 4716 *) 4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4718for as_dir in /usr/sbin${PATH_SEPARATOR}/etc 4719do 4720 IFS=$as_save_IFS 4721 test -z "$as_dir" && as_dir=. 4722 for ac_exec_ext in '' $ac_executable_extensions; do 4723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4724 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" 4725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4726 break 2 4727 fi 4728done 4729done 4730IFS=$as_save_IFS 4731 4732 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" 4733 ;; 4734esac 4735fi 4736PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG 4737if test -n "$PATH_USERADD_PROG"; then 4738 { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5 4739echo "${ECHO_T}$PATH_USERADD_PROG" >&6; } 4740else 4741 { echo "$as_me:$LINENO: result: no" >&5 4742echo "${ECHO_T}no" >&6; } 4743fi 4744 4745 4746# Extract the first word of "pkgmk", so it can be a program name with args. 4747set dummy pkgmk; ac_word=$2 4748{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4750if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then 4751 echo $ECHO_N "(cached) $ECHO_C" >&6 4752else 4753 if test -n "$MAKE_PACKAGE_SUPPORTED"; then 4754 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. 4755else 4756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4757for as_dir in $PATH 4758do 4759 IFS=$as_save_IFS 4760 test -z "$as_dir" && as_dir=. 4761 for ac_exec_ext in '' $ac_executable_extensions; do 4762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4763 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" 4764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4765 break 2 4766 fi 4767done 4768done 4769IFS=$as_save_IFS 4770 4771 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" 4772fi 4773fi 4774MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED 4775if test -n "$MAKE_PACKAGE_SUPPORTED"; then 4776 { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5 4777echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; } 4778else 4779 { echo "$as_me:$LINENO: result: no" >&5 4780echo "${ECHO_T}no" >&6; } 4781fi 4782 4783 4784if test -x /sbin/sh; then 4785 STARTUP_SCRIPT_SHELL=/sbin/sh 4786 4787else 4788 STARTUP_SCRIPT_SHELL=/bin/sh 4789 4790fi 4791 4792# System features 4793# Check whether --enable-largefile was given. 4794if test "${enable_largefile+set}" = set; then 4795 enableval=$enable_largefile; 4796fi 4797 4798if test "$enable_largefile" != no; then 4799 4800 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 4801echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } 4802if test "${ac_cv_sys_largefile_CC+set}" = set; then 4803 echo $ECHO_N "(cached) $ECHO_C" >&6 4804else 4805 ac_cv_sys_largefile_CC=no 4806 if test "$GCC" != yes; then 4807 ac_save_CC=$CC 4808 while :; do 4809 # IRIX 6.2 and later do not support large files by default, 4810 # so use the C compiler's -n32 option if that helps. 4811 cat >conftest.$ac_ext <<_ACEOF 4812/* confdefs.h. */ 4813_ACEOF 4814cat confdefs.h >>conftest.$ac_ext 4815cat >>conftest.$ac_ext <<_ACEOF 4816/* end confdefs.h. */ 4817#include <sys/types.h> 4818 /* Check that off_t can represent 2**63 - 1 correctly. 4819 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4820 since some C++ compilers masquerading as C compilers 4821 incorrectly reject 9223372036854775807. */ 4822#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4823 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4824 && LARGE_OFF_T % 2147483647 == 1) 4825 ? 1 : -1]; 4826int 4827main () 4828{ 4829 4830 ; 4831 return 0; 4832} 4833_ACEOF 4834 rm -f conftest.$ac_objext 4835if { (ac_try="$ac_compile" 4836case "(($ac_try" in 4837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4838 *) ac_try_echo=$ac_try;; 4839esac 4840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4841 (eval "$ac_compile") 2>conftest.er1 4842 ac_status=$? 4843 grep -v '^ *+' conftest.er1 >conftest.err 4844 rm -f conftest.er1 4845 cat conftest.err >&5 4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4847 (exit $ac_status); } && { 4848 test -z "$ac_c_werror_flag" || 4849 test ! -s conftest.err 4850 } && test -s conftest.$ac_objext; then 4851 break 4852else 4853 echo "$as_me: failed program was:" >&5 4854sed 's/^/| /' conftest.$ac_ext >&5 4855 4856 4857fi 4858 4859rm -f core conftest.err conftest.$ac_objext 4860 CC="$CC -n32" 4861 rm -f conftest.$ac_objext 4862if { (ac_try="$ac_compile" 4863case "(($ac_try" in 4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4865 *) ac_try_echo=$ac_try;; 4866esac 4867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4868 (eval "$ac_compile") 2>conftest.er1 4869 ac_status=$? 4870 grep -v '^ *+' conftest.er1 >conftest.err 4871 rm -f conftest.er1 4872 cat conftest.err >&5 4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4874 (exit $ac_status); } && { 4875 test -z "$ac_c_werror_flag" || 4876 test ! -s conftest.err 4877 } && test -s conftest.$ac_objext; then 4878 ac_cv_sys_largefile_CC=' -n32'; break 4879else 4880 echo "$as_me: failed program was:" >&5 4881sed 's/^/| /' conftest.$ac_ext >&5 4882 4883 4884fi 4885 4886rm -f core conftest.err conftest.$ac_objext 4887 break 4888 done 4889 CC=$ac_save_CC 4890 rm -f conftest.$ac_ext 4891 fi 4892fi 4893{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 4894echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } 4895 if test "$ac_cv_sys_largefile_CC" != no; then 4896 CC=$CC$ac_cv_sys_largefile_CC 4897 fi 4898 4899 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4900echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } 4901if test "${ac_cv_sys_file_offset_bits+set}" = set; then 4902 echo $ECHO_N "(cached) $ECHO_C" >&6 4903else 4904 while :; do 4905 cat >conftest.$ac_ext <<_ACEOF 4906/* confdefs.h. */ 4907_ACEOF 4908cat confdefs.h >>conftest.$ac_ext 4909cat >>conftest.$ac_ext <<_ACEOF 4910/* end confdefs.h. */ 4911#include <sys/types.h> 4912 /* Check that off_t can represent 2**63 - 1 correctly. 4913 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4914 since some C++ compilers masquerading as C compilers 4915 incorrectly reject 9223372036854775807. */ 4916#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4917 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4918 && LARGE_OFF_T % 2147483647 == 1) 4919 ? 1 : -1]; 4920int 4921main () 4922{ 4923 4924 ; 4925 return 0; 4926} 4927_ACEOF 4928rm -f conftest.$ac_objext 4929if { (ac_try="$ac_compile" 4930case "(($ac_try" in 4931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4932 *) ac_try_echo=$ac_try;; 4933esac 4934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4935 (eval "$ac_compile") 2>conftest.er1 4936 ac_status=$? 4937 grep -v '^ *+' conftest.er1 >conftest.err 4938 rm -f conftest.er1 4939 cat conftest.err >&5 4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4941 (exit $ac_status); } && { 4942 test -z "$ac_c_werror_flag" || 4943 test ! -s conftest.err 4944 } && test -s conftest.$ac_objext; then 4945 ac_cv_sys_file_offset_bits=no; break 4946else 4947 echo "$as_me: failed program was:" >&5 4948sed 's/^/| /' conftest.$ac_ext >&5 4949 4950 4951fi 4952 4953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4954 cat >conftest.$ac_ext <<_ACEOF 4955/* confdefs.h. */ 4956_ACEOF 4957cat confdefs.h >>conftest.$ac_ext 4958cat >>conftest.$ac_ext <<_ACEOF 4959/* end confdefs.h. */ 4960#define _FILE_OFFSET_BITS 64 4961#include <sys/types.h> 4962 /* Check that off_t can represent 2**63 - 1 correctly. 4963 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4964 since some C++ compilers masquerading as C compilers 4965 incorrectly reject 9223372036854775807. */ 4966#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4967 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4968 && LARGE_OFF_T % 2147483647 == 1) 4969 ? 1 : -1]; 4970int 4971main () 4972{ 4973 4974 ; 4975 return 0; 4976} 4977_ACEOF 4978rm -f conftest.$ac_objext 4979if { (ac_try="$ac_compile" 4980case "(($ac_try" in 4981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4982 *) ac_try_echo=$ac_try;; 4983esac 4984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4985 (eval "$ac_compile") 2>conftest.er1 4986 ac_status=$? 4987 grep -v '^ *+' conftest.er1 >conftest.err 4988 rm -f conftest.er1 4989 cat conftest.err >&5 4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4991 (exit $ac_status); } && { 4992 test -z "$ac_c_werror_flag" || 4993 test ! -s conftest.err 4994 } && test -s conftest.$ac_objext; then 4995 ac_cv_sys_file_offset_bits=64; break 4996else 4997 echo "$as_me: failed program was:" >&5 4998sed 's/^/| /' conftest.$ac_ext >&5 4999 5000 5001fi 5002 5003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5004 ac_cv_sys_file_offset_bits=unknown 5005 break 5006done 5007fi 5008{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 5009echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } 5010case $ac_cv_sys_file_offset_bits in #( 5011 no | unknown) ;; 5012 *) 5013cat >>confdefs.h <<_ACEOF 5014#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 5015_ACEOF 5016;; 5017esac 5018rm -f conftest* 5019 if test $ac_cv_sys_file_offset_bits = unknown; then 5020 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 5021echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } 5022if test "${ac_cv_sys_large_files+set}" = set; then 5023 echo $ECHO_N "(cached) $ECHO_C" >&6 5024else 5025 while :; do 5026 cat >conftest.$ac_ext <<_ACEOF 5027/* confdefs.h. */ 5028_ACEOF 5029cat confdefs.h >>conftest.$ac_ext 5030cat >>conftest.$ac_ext <<_ACEOF 5031/* end confdefs.h. */ 5032#include <sys/types.h> 5033 /* Check that off_t can represent 2**63 - 1 correctly. 5034 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5035 since some C++ compilers masquerading as C compilers 5036 incorrectly reject 9223372036854775807. */ 5037#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5038 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5039 && LARGE_OFF_T % 2147483647 == 1) 5040 ? 1 : -1]; 5041int 5042main () 5043{ 5044 5045 ; 5046 return 0; 5047} 5048_ACEOF 5049rm -f conftest.$ac_objext 5050if { (ac_try="$ac_compile" 5051case "(($ac_try" in 5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5053 *) ac_try_echo=$ac_try;; 5054esac 5055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5056 (eval "$ac_compile") 2>conftest.er1 5057 ac_status=$? 5058 grep -v '^ *+' conftest.er1 >conftest.err 5059 rm -f conftest.er1 5060 cat conftest.err >&5 5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5062 (exit $ac_status); } && { 5063 test -z "$ac_c_werror_flag" || 5064 test ! -s conftest.err 5065 } && test -s conftest.$ac_objext; then 5066 ac_cv_sys_large_files=no; break 5067else 5068 echo "$as_me: failed program was:" >&5 5069sed 's/^/| /' conftest.$ac_ext >&5 5070 5071 5072fi 5073 5074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5075 cat >conftest.$ac_ext <<_ACEOF 5076/* confdefs.h. */ 5077_ACEOF 5078cat confdefs.h >>conftest.$ac_ext 5079cat >>conftest.$ac_ext <<_ACEOF 5080/* end confdefs.h. */ 5081#define _LARGE_FILES 1 5082#include <sys/types.h> 5083 /* Check that off_t can represent 2**63 - 1 correctly. 5084 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5085 since some C++ compilers masquerading as C compilers 5086 incorrectly reject 9223372036854775807. */ 5087#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5088 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5089 && LARGE_OFF_T % 2147483647 == 1) 5090 ? 1 : -1]; 5091int 5092main () 5093{ 5094 5095 ; 5096 return 0; 5097} 5098_ACEOF 5099rm -f conftest.$ac_objext 5100if { (ac_try="$ac_compile" 5101case "(($ac_try" in 5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5103 *) ac_try_echo=$ac_try;; 5104esac 5105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5106 (eval "$ac_compile") 2>conftest.er1 5107 ac_status=$? 5108 grep -v '^ *+' conftest.er1 >conftest.err 5109 rm -f conftest.er1 5110 cat conftest.err >&5 5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5112 (exit $ac_status); } && { 5113 test -z "$ac_c_werror_flag" || 5114 test ! -s conftest.err 5115 } && test -s conftest.$ac_objext; then 5116 ac_cv_sys_large_files=1; break 5117else 5118 echo "$as_me: failed program was:" >&5 5119sed 's/^/| /' conftest.$ac_ext >&5 5120 5121 5122fi 5123 5124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5125 ac_cv_sys_large_files=unknown 5126 break 5127done 5128fi 5129{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 5130echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } 5131case $ac_cv_sys_large_files in #( 5132 no | unknown) ;; 5133 *) 5134cat >>confdefs.h <<_ACEOF 5135#define _LARGE_FILES $ac_cv_sys_large_files 5136_ACEOF 5137;; 5138esac 5139rm -f conftest* 5140 fi 5141fi 5142 5143 5144if test -z "$AR" ; then 5145 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5 5146echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;} 5147 { (exit 1); exit 1; }; } 5148fi 5149 5150# Use LOGIN_PROGRAM from environment if possible 5151if test ! -z "$LOGIN_PROGRAM" ; then 5152 5153cat >>confdefs.h <<_ACEOF 5154#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" 5155_ACEOF 5156 5157else 5158 # Search for login 5159 # Extract the first word of "login", so it can be a program name with args. 5160set dummy login; ac_word=$2 5161{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5163if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then 5164 echo $ECHO_N "(cached) $ECHO_C" >&6 5165else 5166 case $LOGIN_PROGRAM_FALLBACK in 5167 [\\/]* | ?:[\\/]*) 5168 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. 5169 ;; 5170 *) 5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5172for as_dir in $PATH 5173do 5174 IFS=$as_save_IFS 5175 test -z "$as_dir" && as_dir=. 5176 for ac_exec_ext in '' $ac_executable_extensions; do 5177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5178 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" 5179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5180 break 2 5181 fi 5182done 5183done 5184IFS=$as_save_IFS 5185 5186 ;; 5187esac 5188fi 5189LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK 5190if test -n "$LOGIN_PROGRAM_FALLBACK"; then 5191 { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5 5192echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; } 5193else 5194 { echo "$as_me:$LINENO: result: no" >&5 5195echo "${ECHO_T}no" >&6; } 5196fi 5197 5198 5199 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then 5200 cat >>confdefs.h <<_ACEOF 5201#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" 5202_ACEOF 5203 5204 fi 5205fi 5206 5207# Extract the first word of "passwd", so it can be a program name with args. 5208set dummy passwd; ac_word=$2 5209{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5211if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then 5212 echo $ECHO_N "(cached) $ECHO_C" >&6 5213else 5214 case $PATH_PASSWD_PROG in 5215 [\\/]* | ?:[\\/]*) 5216 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. 5217 ;; 5218 *) 5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5220for as_dir in $PATH 5221do 5222 IFS=$as_save_IFS 5223 test -z "$as_dir" && as_dir=. 5224 for ac_exec_ext in '' $ac_executable_extensions; do 5225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5226 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" 5227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5228 break 2 5229 fi 5230done 5231done 5232IFS=$as_save_IFS 5233 5234 ;; 5235esac 5236fi 5237PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG 5238if test -n "$PATH_PASSWD_PROG"; then 5239 { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5 5240echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; } 5241else 5242 { echo "$as_me:$LINENO: result: no" >&5 5243echo "${ECHO_T}no" >&6; } 5244fi 5245 5246 5247if test ! -z "$PATH_PASSWD_PROG" ; then 5248 5249cat >>confdefs.h <<_ACEOF 5250#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" 5251_ACEOF 5252 5253fi 5254 5255if test -z "$LD" ; then 5256 LD=$CC 5257fi 5258 5259 5260{ echo "$as_me:$LINENO: checking for inline" >&5 5261echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 5262if test "${ac_cv_c_inline+set}" = set; then 5263 echo $ECHO_N "(cached) $ECHO_C" >&6 5264else 5265 ac_cv_c_inline=no 5266for ac_kw in inline __inline__ __inline; do 5267 cat >conftest.$ac_ext <<_ACEOF 5268/* confdefs.h. */ 5269_ACEOF 5270cat confdefs.h >>conftest.$ac_ext 5271cat >>conftest.$ac_ext <<_ACEOF 5272/* end confdefs.h. */ 5273#ifndef __cplusplus 5274typedef int foo_t; 5275static $ac_kw foo_t static_foo () {return 0; } 5276$ac_kw foo_t foo () {return 0; } 5277#endif 5278 5279_ACEOF 5280rm -f conftest.$ac_objext 5281if { (ac_try="$ac_compile" 5282case "(($ac_try" in 5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5284 *) ac_try_echo=$ac_try;; 5285esac 5286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5287 (eval "$ac_compile") 2>conftest.er1 5288 ac_status=$? 5289 grep -v '^ *+' conftest.er1 >conftest.err 5290 rm -f conftest.er1 5291 cat conftest.err >&5 5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5293 (exit $ac_status); } && { 5294 test -z "$ac_c_werror_flag" || 5295 test ! -s conftest.err 5296 } && test -s conftest.$ac_objext; then 5297 ac_cv_c_inline=$ac_kw 5298else 5299 echo "$as_me: failed program was:" >&5 5300sed 's/^/| /' conftest.$ac_ext >&5 5301 5302 5303fi 5304 5305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5306 test "$ac_cv_c_inline" != no && break 5307done 5308 5309fi 5310{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 5311echo "${ECHO_T}$ac_cv_c_inline" >&6; } 5312 5313 5314case $ac_cv_c_inline in 5315 inline | yes) ;; 5316 *) 5317 case $ac_cv_c_inline in 5318 no) ac_val=;; 5319 *) ac_val=$ac_cv_c_inline;; 5320 esac 5321 cat >>confdefs.h <<_ACEOF 5322#ifndef __cplusplus 5323#define inline $ac_val 5324#endif 5325_ACEOF 5326 ;; 5327esac 5328 5329 5330{ echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 5331echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; } 5332if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then 5333 echo $ECHO_N "(cached) $ECHO_C" >&6 5334else 5335 cat >conftest.$ac_ext <<_ACEOF 5336/* confdefs.h. */ 5337_ACEOF 5338cat confdefs.h >>conftest.$ac_ext 5339cat >>conftest.$ac_ext <<_ACEOF 5340/* end confdefs.h. */ 5341#include <limits.h> 5342 5343int 5344main () 5345{ 5346#ifndef LLONG_MAX 5347 (void) LLONG_MAX; 5348#endif 5349 5350 ; 5351 return 0; 5352} 5353_ACEOF 5354rm -f conftest.$ac_objext 5355if { (ac_try="$ac_compile" 5356case "(($ac_try" in 5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5358 *) ac_try_echo=$ac_try;; 5359esac 5360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5361 (eval "$ac_compile") 2>conftest.er1 5362 ac_status=$? 5363 grep -v '^ *+' conftest.er1 >conftest.err 5364 rm -f conftest.er1 5365 cat conftest.err >&5 5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5367 (exit $ac_status); } && { 5368 test -z "$ac_c_werror_flag" || 5369 test ! -s conftest.err 5370 } && test -s conftest.$ac_objext; then 5371 ac_cv_have_decl_LLONG_MAX=yes 5372else 5373 echo "$as_me: failed program was:" >&5 5374sed 's/^/| /' conftest.$ac_ext >&5 5375 5376 ac_cv_have_decl_LLONG_MAX=no 5377fi 5378 5379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5380fi 5381{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 5382echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; } 5383if test $ac_cv_have_decl_LLONG_MAX = yes; then 5384 have_llong_max=1 5385fi 5386 5387 5388use_stack_protector=1 5389 5390# Check whether --with-stackprotect was given. 5391if test "${with_stackprotect+set}" = set; then 5392 withval=$with_stackprotect; 5393 if test "x$withval" = "xno"; then 5394 use_stack_protector=0 5395 fi 5396fi 5397 5398 5399if test "$GCC" = "yes" || test "$GCC" = "egcs"; then 5400 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized" 5401 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` 5402 case $GCC_VER in 5403 1.*) no_attrib_nonnull=1 ;; 5404 2.8* | 2.9*) 5405 CFLAGS="$CFLAGS -Wsign-compare" 5406 no_attrib_nonnull=1 5407 ;; 5408 2.*) no_attrib_nonnull=1 ;; 5409 3.*) CFLAGS="$CFLAGS -Wsign-compare -Wformat-security" ;; 5410 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign -Wformat-security" ;; 5411 *) ;; 5412 esac 5413 5414 { echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5 5415echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; } 5416 saved_CFLAGS="$CFLAGS" 5417 CFLAGS="$CFLAGS -fno-builtin-memset" 5418 cat >conftest.$ac_ext <<_ACEOF 5419/* confdefs.h. */ 5420_ACEOF 5421cat confdefs.h >>conftest.$ac_ext 5422cat >>conftest.$ac_ext <<_ACEOF 5423/* end confdefs.h. */ 5424 5425#include <string.h> 5426int main(void){char b[10]; memset(b, 0, sizeof(b));} 5427 5428_ACEOF 5429rm -f conftest.$ac_objext conftest$ac_exeext 5430if { (ac_try="$ac_link" 5431case "(($ac_try" in 5432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5433 *) ac_try_echo=$ac_try;; 5434esac 5435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5436 (eval "$ac_link") 2>conftest.er1 5437 ac_status=$? 5438 grep -v '^ *+' conftest.er1 >conftest.err 5439 rm -f conftest.er1 5440 cat conftest.err >&5 5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5442 (exit $ac_status); } && { 5443 test -z "$ac_c_werror_flag" || 5444 test ! -s conftest.err 5445 } && test -s conftest$ac_exeext && 5446 $as_test_x conftest$ac_exeext; then 5447 { echo "$as_me:$LINENO: result: yes" >&5 5448echo "${ECHO_T}yes" >&6; } 5449else 5450 echo "$as_me: failed program was:" >&5 5451sed 's/^/| /' conftest.$ac_ext >&5 5452 5453 { echo "$as_me:$LINENO: result: no" >&5 5454echo "${ECHO_T}no" >&6; } 5455 CFLAGS="$saved_CFLAGS" 5456 5457fi 5458 5459rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5460 conftest$ac_exeext conftest.$ac_ext 5461 5462 # -fstack-protector-all doesn't always work for some GCC versions 5463 # and/or platforms, so we test if we can. If it's not supported 5464 # on a given platform gcc will emit a warning so we use -Werror. 5465 if test "x$use_stack_protector" = "x1"; then 5466 for t in -fstack-protector-all -fstack-protector; do 5467 { echo "$as_me:$LINENO: checking if $CC supports $t" >&5 5468echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; } 5469 saved_CFLAGS="$CFLAGS" 5470 saved_LDFLAGS="$LDFLAGS" 5471 CFLAGS="$CFLAGS $t -Werror" 5472 LDFLAGS="$LDFLAGS $t -Werror" 5473 cat >conftest.$ac_ext <<_ACEOF 5474/* confdefs.h. */ 5475_ACEOF 5476cat confdefs.h >>conftest.$ac_ext 5477cat >>conftest.$ac_ext <<_ACEOF 5478/* end confdefs.h. */ 5479 5480#include <stdio.h> 5481int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;} 5482 5483_ACEOF 5484rm -f conftest.$ac_objext conftest$ac_exeext 5485if { (ac_try="$ac_link" 5486case "(($ac_try" in 5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5488 *) ac_try_echo=$ac_try;; 5489esac 5490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5491 (eval "$ac_link") 2>conftest.er1 5492 ac_status=$? 5493 grep -v '^ *+' conftest.er1 >conftest.err 5494 rm -f conftest.er1 5495 cat conftest.err >&5 5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5497 (exit $ac_status); } && { 5498 test -z "$ac_c_werror_flag" || 5499 test ! -s conftest.err 5500 } && test -s conftest$ac_exeext && 5501 $as_test_x conftest$ac_exeext; then 5502 { echo "$as_me:$LINENO: result: yes" >&5 5503echo "${ECHO_T}yes" >&6; } 5504 CFLAGS="$saved_CFLAGS $t" 5505 LDFLAGS="$saved_LDFLAGS $t" 5506 { echo "$as_me:$LINENO: checking if $t works" >&5 5507echo $ECHO_N "checking if $t works... $ECHO_C" >&6; } 5508 if test "$cross_compiling" = yes; then 5509 { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5 5510echo "$as_me: WARNING: cross compiling: cannot test" >&2;} 5511 break 5512 5513else 5514 cat >conftest.$ac_ext <<_ACEOF 5515/* confdefs.h. */ 5516_ACEOF 5517cat confdefs.h >>conftest.$ac_ext 5518cat >>conftest.$ac_ext <<_ACEOF 5519/* end confdefs.h. */ 5520 5521#include <stdio.h> 5522int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;} 5523 5524_ACEOF 5525rm -f conftest$ac_exeext 5526if { (ac_try="$ac_link" 5527case "(($ac_try" in 5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5529 *) ac_try_echo=$ac_try;; 5530esac 5531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5532 (eval "$ac_link") 2>&5 5533 ac_status=$? 5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5536 { (case "(($ac_try" in 5537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5538 *) ac_try_echo=$ac_try;; 5539esac 5540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5541 (eval "$ac_try") 2>&5 5542 ac_status=$? 5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5544 (exit $ac_status); }; }; then 5545 { echo "$as_me:$LINENO: result: yes" >&5 5546echo "${ECHO_T}yes" >&6; } 5547 break 5548else 5549 echo "$as_me: program exited with status $ac_status" >&5 5550echo "$as_me: failed program was:" >&5 5551sed 's/^/| /' conftest.$ac_ext >&5 5552 5553( exit $ac_status ) 5554 { echo "$as_me:$LINENO: result: no" >&5 5555echo "${ECHO_T}no" >&6; } 5556fi 5557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5558fi 5559 5560 5561 5562else 5563 echo "$as_me: failed program was:" >&5 5564sed 's/^/| /' conftest.$ac_ext >&5 5565 5566 { echo "$as_me:$LINENO: result: no" >&5 5567echo "${ECHO_T}no" >&6; } 5568 5569fi 5570 5571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5572 conftest$ac_exeext conftest.$ac_ext 5573 CFLAGS="$saved_CFLAGS" 5574 LDFLAGS="$saved_LDFLAGS" 5575 done 5576 fi 5577 5578 if test -z "$have_llong_max"; then 5579 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes 5580 unset ac_cv_have_decl_LLONG_MAX 5581 saved_CFLAGS="$CFLAGS" 5582 CFLAGS="$CFLAGS -std=gnu99" 5583 { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 5584echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; } 5585if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then 5586 echo $ECHO_N "(cached) $ECHO_C" >&6 5587else 5588 cat >conftest.$ac_ext <<_ACEOF 5589/* confdefs.h. */ 5590_ACEOF 5591cat confdefs.h >>conftest.$ac_ext 5592cat >>conftest.$ac_ext <<_ACEOF 5593/* end confdefs.h. */ 5594#include <limits.h> 5595 5596 5597int 5598main () 5599{ 5600#ifndef LLONG_MAX 5601 (void) LLONG_MAX; 5602#endif 5603 5604 ; 5605 return 0; 5606} 5607_ACEOF 5608rm -f conftest.$ac_objext 5609if { (ac_try="$ac_compile" 5610case "(($ac_try" in 5611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5612 *) ac_try_echo=$ac_try;; 5613esac 5614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5615 (eval "$ac_compile") 2>conftest.er1 5616 ac_status=$? 5617 grep -v '^ *+' conftest.er1 >conftest.err 5618 rm -f conftest.er1 5619 cat conftest.err >&5 5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5621 (exit $ac_status); } && { 5622 test -z "$ac_c_werror_flag" || 5623 test ! -s conftest.err 5624 } && test -s conftest.$ac_objext; then 5625 ac_cv_have_decl_LLONG_MAX=yes 5626else 5627 echo "$as_me: failed program was:" >&5 5628sed 's/^/| /' conftest.$ac_ext >&5 5629 5630 ac_cv_have_decl_LLONG_MAX=no 5631fi 5632 5633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5634fi 5635{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 5636echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; } 5637if test $ac_cv_have_decl_LLONG_MAX = yes; then 5638 have_llong_max=1 5639else 5640 CFLAGS="$saved_CFLAGS" 5641fi 5642 5643 fi 5644fi 5645 5646if test "x$no_attrib_nonnull" != "x1" ; then 5647 5648cat >>confdefs.h <<\_ACEOF 5649#define HAVE_ATTRIBUTE__NONNULL__ 1 5650_ACEOF 5651 5652fi 5653 5654 5655# Check whether --with-rpath was given. 5656if test "${with_rpath+set}" = set; then 5657 withval=$with_rpath; 5658 if test "x$withval" = "xno" ; then 5659 need_dash_r="" 5660 fi 5661 if test "x$withval" = "xyes" ; then 5662 need_dash_r=1 5663 fi 5664 5665 5666fi 5667 5668 5669# Allow user to specify flags 5670 5671# Check whether --with-cflags was given. 5672if test "${with_cflags+set}" = set; then 5673 withval=$with_cflags; 5674 if test -n "$withval" && test "x$withval" != "xno" && \ 5675 test "x${withval}" != "xyes"; then 5676 CFLAGS="$CFLAGS $withval" 5677 fi 5678 5679 5680fi 5681 5682 5683# Check whether --with-cppflags was given. 5684if test "${with_cppflags+set}" = set; then 5685 withval=$with_cppflags; 5686 if test -n "$withval" && test "x$withval" != "xno" && \ 5687 test "x${withval}" != "xyes"; then 5688 CPPFLAGS="$CPPFLAGS $withval" 5689 fi 5690 5691 5692fi 5693 5694 5695# Check whether --with-ldflags was given. 5696if test "${with_ldflags+set}" = set; then 5697 withval=$with_ldflags; 5698 if test -n "$withval" && test "x$withval" != "xno" && \ 5699 test "x${withval}" != "xyes"; then 5700 LDFLAGS="$LDFLAGS $withval" 5701 fi 5702 5703 5704fi 5705 5706 5707# Check whether --with-libs was given. 5708if test "${with_libs+set}" = set; then 5709 withval=$with_libs; 5710 if test -n "$withval" && test "x$withval" != "xno" && \ 5711 test "x${withval}" != "xyes"; then 5712 LIBS="$LIBS $withval" 5713 fi 5714 5715 5716fi 5717 5718 5719# Check whether --with-Werror was given. 5720if test "${with_Werror+set}" = set; then 5721 withval=$with_Werror; 5722 if test -n "$withval" && test "x$withval" != "xno"; then 5723 werror_flags="-Werror" 5724 if test "x${withval}" != "xyes"; then 5725 werror_flags="$withval" 5726 fi 5727 fi 5728 5729 5730fi 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797for ac_header in \ 5798 bstring.h \ 5799 crypt.h \ 5800 crypto/sha2.h \ 5801 dirent.h \ 5802 endian.h \ 5803 features.h \ 5804 fcntl.h \ 5805 floatingpoint.h \ 5806 getopt.h \ 5807 glob.h \ 5808 ia.h \ 5809 iaf.h \ 5810 limits.h \ 5811 login.h \ 5812 maillock.h \ 5813 ndir.h \ 5814 net/if_tun.h \ 5815 netdb.h \ 5816 netgroup.h \ 5817 pam/pam_appl.h \ 5818 paths.h \ 5819 poll.h \ 5820 pty.h \ 5821 readpassphrase.h \ 5822 rpc/types.h \ 5823 security/pam_appl.h \ 5824 sha2.h \ 5825 shadow.h \ 5826 stddef.h \ 5827 stdint.h \ 5828 string.h \ 5829 strings.h \ 5830 sys/audit.h \ 5831 sys/bitypes.h \ 5832 sys/bsdtty.h \ 5833 sys/cdefs.h \ 5834 sys/dir.h \ 5835 sys/mman.h \ 5836 sys/mount.h \ 5837 sys/ndir.h \ 5838 sys/poll.h \ 5839 sys/prctl.h \ 5840 sys/pstat.h \ 5841 sys/select.h \ 5842 sys/stat.h \ 5843 sys/stream.h \ 5844 sys/stropts.h \ 5845 sys/strtio.h \ 5846 sys/statvfs.h \ 5847 sys/sysmacros.h \ 5848 sys/time.h \ 5849 sys/timers.h \ 5850 sys/un.h \ 5851 time.h \ 5852 tmpdir.h \ 5853 ttyent.h \ 5854 ucred.h \ 5855 unistd.h \ 5856 usersec.h \ 5857 util.h \ 5858 utime.h \ 5859 utmp.h \ 5860 utmpx.h \ 5861 vis.h \ 5862 5863do 5864as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5865if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5866 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5867echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5868if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5869 echo $ECHO_N "(cached) $ECHO_C" >&6 5870fi 5871ac_res=`eval echo '${'$as_ac_Header'}'` 5872 { echo "$as_me:$LINENO: result: $ac_res" >&5 5873echo "${ECHO_T}$ac_res" >&6; } 5874else 5875 # Is the header compilable? 5876{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5877echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5878cat >conftest.$ac_ext <<_ACEOF 5879/* confdefs.h. */ 5880_ACEOF 5881cat confdefs.h >>conftest.$ac_ext 5882cat >>conftest.$ac_ext <<_ACEOF 5883/* end confdefs.h. */ 5884$ac_includes_default 5885#include <$ac_header> 5886_ACEOF 5887rm -f conftest.$ac_objext 5888if { (ac_try="$ac_compile" 5889case "(($ac_try" in 5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5891 *) ac_try_echo=$ac_try;; 5892esac 5893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5894 (eval "$ac_compile") 2>conftest.er1 5895 ac_status=$? 5896 grep -v '^ *+' conftest.er1 >conftest.err 5897 rm -f conftest.er1 5898 cat conftest.err >&5 5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5900 (exit $ac_status); } && { 5901 test -z "$ac_c_werror_flag" || 5902 test ! -s conftest.err 5903 } && test -s conftest.$ac_objext; then 5904 ac_header_compiler=yes 5905else 5906 echo "$as_me: failed program was:" >&5 5907sed 's/^/| /' conftest.$ac_ext >&5 5908 5909 ac_header_compiler=no 5910fi 5911 5912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5913{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5914echo "${ECHO_T}$ac_header_compiler" >&6; } 5915 5916# Is the header present? 5917{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5918echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5919cat >conftest.$ac_ext <<_ACEOF 5920/* confdefs.h. */ 5921_ACEOF 5922cat confdefs.h >>conftest.$ac_ext 5923cat >>conftest.$ac_ext <<_ACEOF 5924/* end confdefs.h. */ 5925#include <$ac_header> 5926_ACEOF 5927if { (ac_try="$ac_cpp conftest.$ac_ext" 5928case "(($ac_try" in 5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5930 *) ac_try_echo=$ac_try;; 5931esac 5932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5934 ac_status=$? 5935 grep -v '^ *+' conftest.er1 >conftest.err 5936 rm -f conftest.er1 5937 cat conftest.err >&5 5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5939 (exit $ac_status); } >/dev/null && { 5940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5941 test ! -s conftest.err 5942 }; then 5943 ac_header_preproc=yes 5944else 5945 echo "$as_me: failed program was:" >&5 5946sed 's/^/| /' conftest.$ac_ext >&5 5947 5948 ac_header_preproc=no 5949fi 5950 5951rm -f conftest.err conftest.$ac_ext 5952{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5953echo "${ECHO_T}$ac_header_preproc" >&6; } 5954 5955# So? What about this header? 5956case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5957 yes:no: ) 5958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5959echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5961echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5962 ac_header_preproc=yes 5963 ;; 5964 no:yes:* ) 5965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5966echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5968echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5970echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5972echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5974echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5976echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5977 ( cat <<\_ASBOX 5978## ------------------------------------------- ## 5979## Report this to openssh-unix-dev@mindrot.org ## 5980## ------------------------------------------- ## 5981_ASBOX 5982 ) | sed "s/^/$as_me: WARNING: /" >&2 5983 ;; 5984esac 5985{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5988 echo $ECHO_N "(cached) $ECHO_C" >&6 5989else 5990 eval "$as_ac_Header=\$ac_header_preproc" 5991fi 5992ac_res=`eval echo '${'$as_ac_Header'}'` 5993 { echo "$as_me:$LINENO: result: $ac_res" >&5 5994echo "${ECHO_T}$ac_res" >&6; } 5995 5996fi 5997if test `eval echo '${'$as_ac_Header'}'` = yes; then 5998 cat >>confdefs.h <<_ACEOF 5999#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6000_ACEOF 6001 6002fi 6003 6004done 6005 6006 6007# lastlog.h requires sys/time.h to be included first on Solaris 6008 6009for ac_header in lastlog.h 6010do 6011as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6012{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6015 echo $ECHO_N "(cached) $ECHO_C" >&6 6016else 6017 cat >conftest.$ac_ext <<_ACEOF 6018/* confdefs.h. */ 6019_ACEOF 6020cat confdefs.h >>conftest.$ac_ext 6021cat >>conftest.$ac_ext <<_ACEOF 6022/* end confdefs.h. */ 6023 6024#ifdef HAVE_SYS_TIME_H 6025# include <sys/time.h> 6026#endif 6027 6028 6029#include <$ac_header> 6030_ACEOF 6031rm -f conftest.$ac_objext 6032if { (ac_try="$ac_compile" 6033case "(($ac_try" in 6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6035 *) ac_try_echo=$ac_try;; 6036esac 6037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6038 (eval "$ac_compile") 2>conftest.er1 6039 ac_status=$? 6040 grep -v '^ *+' conftest.er1 >conftest.err 6041 rm -f conftest.er1 6042 cat conftest.err >&5 6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6044 (exit $ac_status); } && { 6045 test -z "$ac_c_werror_flag" || 6046 test ! -s conftest.err 6047 } && test -s conftest.$ac_objext; then 6048 eval "$as_ac_Header=yes" 6049else 6050 echo "$as_me: failed program was:" >&5 6051sed 's/^/| /' conftest.$ac_ext >&5 6052 6053 eval "$as_ac_Header=no" 6054fi 6055 6056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6057fi 6058ac_res=`eval echo '${'$as_ac_Header'}'` 6059 { echo "$as_me:$LINENO: result: $ac_res" >&5 6060echo "${ECHO_T}$ac_res" >&6; } 6061if test `eval echo '${'$as_ac_Header'}'` = yes; then 6062 cat >>confdefs.h <<_ACEOF 6063#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6064_ACEOF 6065 6066fi 6067 6068done 6069 6070 6071# sys/ptms.h requires sys/stream.h to be included first on Solaris 6072 6073for ac_header in sys/ptms.h 6074do 6075as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6076{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6079 echo $ECHO_N "(cached) $ECHO_C" >&6 6080else 6081 cat >conftest.$ac_ext <<_ACEOF 6082/* confdefs.h. */ 6083_ACEOF 6084cat confdefs.h >>conftest.$ac_ext 6085cat >>conftest.$ac_ext <<_ACEOF 6086/* end confdefs.h. */ 6087 6088#ifdef HAVE_SYS_STREAM_H 6089# include <sys/stream.h> 6090#endif 6091 6092 6093#include <$ac_header> 6094_ACEOF 6095rm -f conftest.$ac_objext 6096if { (ac_try="$ac_compile" 6097case "(($ac_try" in 6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6099 *) ac_try_echo=$ac_try;; 6100esac 6101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6102 (eval "$ac_compile") 2>conftest.er1 6103 ac_status=$? 6104 grep -v '^ *+' conftest.er1 >conftest.err 6105 rm -f conftest.er1 6106 cat conftest.err >&5 6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6108 (exit $ac_status); } && { 6109 test -z "$ac_c_werror_flag" || 6110 test ! -s conftest.err 6111 } && test -s conftest.$ac_objext; then 6112 eval "$as_ac_Header=yes" 6113else 6114 echo "$as_me: failed program was:" >&5 6115sed 's/^/| /' conftest.$ac_ext >&5 6116 6117 eval "$as_ac_Header=no" 6118fi 6119 6120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6121fi 6122ac_res=`eval echo '${'$as_ac_Header'}'` 6123 { echo "$as_me:$LINENO: result: $ac_res" >&5 6124echo "${ECHO_T}$ac_res" >&6; } 6125if test `eval echo '${'$as_ac_Header'}'` = yes; then 6126 cat >>confdefs.h <<_ACEOF 6127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6128_ACEOF 6129 6130fi 6131 6132done 6133 6134 6135# login_cap.h requires sys/types.h on NetBSD 6136 6137for ac_header in login_cap.h 6138do 6139as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6140{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6143 echo $ECHO_N "(cached) $ECHO_C" >&6 6144else 6145 cat >conftest.$ac_ext <<_ACEOF 6146/* confdefs.h. */ 6147_ACEOF 6148cat confdefs.h >>conftest.$ac_ext 6149cat >>conftest.$ac_ext <<_ACEOF 6150/* end confdefs.h. */ 6151 6152#include <sys/types.h> 6153 6154 6155#include <$ac_header> 6156_ACEOF 6157rm -f conftest.$ac_objext 6158if { (ac_try="$ac_compile" 6159case "(($ac_try" in 6160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6161 *) ac_try_echo=$ac_try;; 6162esac 6163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6164 (eval "$ac_compile") 2>conftest.er1 6165 ac_status=$? 6166 grep -v '^ *+' conftest.er1 >conftest.err 6167 rm -f conftest.er1 6168 cat conftest.err >&5 6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6170 (exit $ac_status); } && { 6171 test -z "$ac_c_werror_flag" || 6172 test ! -s conftest.err 6173 } && test -s conftest.$ac_objext; then 6174 eval "$as_ac_Header=yes" 6175else 6176 echo "$as_me: failed program was:" >&5 6177sed 's/^/| /' conftest.$ac_ext >&5 6178 6179 eval "$as_ac_Header=no" 6180fi 6181 6182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6183fi 6184ac_res=`eval echo '${'$as_ac_Header'}'` 6185 { echo "$as_me:$LINENO: result: $ac_res" >&5 6186echo "${ECHO_T}$ac_res" >&6; } 6187if test `eval echo '${'$as_ac_Header'}'` = yes; then 6188 cat >>confdefs.h <<_ACEOF 6189#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6190_ACEOF 6191 6192fi 6193 6194done 6195 6196 6197# Messages for features tested for in target-specific section 6198SIA_MSG="no" 6199SPC_MSG="no" 6200 6201# Check for some target-specific stuff 6202case "$host" in 6203*-*-aix*) 6204 # Some versions of VAC won't allow macro redefinitions at 6205 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that 6206 # particularly with older versions of vac or xlc. 6207 # It also throws errors about null macro argments, but these are 6208 # not fatal. 6209 { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5 6210echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; } 6211 cat >conftest.$ac_ext <<_ACEOF 6212/* confdefs.h. */ 6213_ACEOF 6214cat confdefs.h >>conftest.$ac_ext 6215cat >>conftest.$ac_ext <<_ACEOF 6216/* end confdefs.h. */ 6217 6218#define testmacro foo 6219#define testmacro bar 6220int main(void) { exit(0); } 6221 6222_ACEOF 6223rm -f conftest.$ac_objext 6224if { (ac_try="$ac_compile" 6225case "(($ac_try" in 6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6227 *) ac_try_echo=$ac_try;; 6228esac 6229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6230 (eval "$ac_compile") 2>conftest.er1 6231 ac_status=$? 6232 grep -v '^ *+' conftest.er1 >conftest.err 6233 rm -f conftest.er1 6234 cat conftest.err >&5 6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6236 (exit $ac_status); } && { 6237 test -z "$ac_c_werror_flag" || 6238 test ! -s conftest.err 6239 } && test -s conftest.$ac_objext; then 6240 { echo "$as_me:$LINENO: result: yes" >&5 6241echo "${ECHO_T}yes" >&6; } 6242else 6243 echo "$as_me: failed program was:" >&5 6244sed 's/^/| /' conftest.$ac_ext >&5 6245 6246 { echo "$as_me:$LINENO: result: no" >&5 6247echo "${ECHO_T}no" >&6; } 6248 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`" 6249 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`" 6250 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`" 6251 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`" 6252 6253 6254fi 6255 6256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6257 6258 { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5 6259echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; } 6260 if (test -z "$blibpath"); then 6261 blibpath="/usr/lib:/lib" 6262 fi 6263 saved_LDFLAGS="$LDFLAGS" 6264 if test "$GCC" = "yes"; then 6265 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:" 6266 else 6267 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath," 6268 fi 6269 for tryflags in $flags ;do 6270 if (test -z "$blibflags"); then 6271 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" 6272 cat >conftest.$ac_ext <<_ACEOF 6273/* confdefs.h. */ 6274_ACEOF 6275cat confdefs.h >>conftest.$ac_ext 6276cat >>conftest.$ac_ext <<_ACEOF 6277/* end confdefs.h. */ 6278 6279int 6280main () 6281{ 6282 6283 ; 6284 return 0; 6285} 6286_ACEOF 6287rm -f conftest.$ac_objext conftest$ac_exeext 6288if { (ac_try="$ac_link" 6289case "(($ac_try" in 6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6291 *) ac_try_echo=$ac_try;; 6292esac 6293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6294 (eval "$ac_link") 2>conftest.er1 6295 ac_status=$? 6296 grep -v '^ *+' conftest.er1 >conftest.err 6297 rm -f conftest.er1 6298 cat conftest.err >&5 6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6300 (exit $ac_status); } && { 6301 test -z "$ac_c_werror_flag" || 6302 test ! -s conftest.err 6303 } && test -s conftest$ac_exeext && 6304 $as_test_x conftest$ac_exeext; then 6305 blibflags=$tryflags 6306else 6307 echo "$as_me: failed program was:" >&5 6308sed 's/^/| /' conftest.$ac_ext >&5 6309 6310 6311fi 6312 6313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6314 conftest$ac_exeext conftest.$ac_ext 6315 fi 6316 done 6317 if (test -z "$blibflags"); then 6318 { echo "$as_me:$LINENO: result: not found" >&5 6319echo "${ECHO_T}not found" >&6; } 6320 { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5 6321echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;} 6322 { (exit 1); exit 1; }; } 6323 else 6324 { echo "$as_me:$LINENO: result: $blibflags" >&5 6325echo "${ECHO_T}$blibflags" >&6; } 6326 fi 6327 LDFLAGS="$saved_LDFLAGS" 6328 { echo "$as_me:$LINENO: checking for authenticate" >&5 6329echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; } 6330if test "${ac_cv_func_authenticate+set}" = set; then 6331 echo $ECHO_N "(cached) $ECHO_C" >&6 6332else 6333 cat >conftest.$ac_ext <<_ACEOF 6334/* confdefs.h. */ 6335_ACEOF 6336cat confdefs.h >>conftest.$ac_ext 6337cat >>conftest.$ac_ext <<_ACEOF 6338/* end confdefs.h. */ 6339/* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate. 6340 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6341#define authenticate innocuous_authenticate 6342 6343/* System header to define __stub macros and hopefully few prototypes, 6344 which can conflict with char authenticate (); below. 6345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6346 <limits.h> exists even on freestanding compilers. */ 6347 6348#ifdef __STDC__ 6349# include <limits.h> 6350#else 6351# include <assert.h> 6352#endif 6353 6354#undef authenticate 6355 6356/* Override any GCC internal prototype to avoid an error. 6357 Use char because int might match the return type of a GCC 6358 builtin and then its argument prototype would still apply. */ 6359#ifdef __cplusplus 6360extern "C" 6361#endif 6362char authenticate (); 6363/* The GNU C library defines this for functions which it implements 6364 to always fail with ENOSYS. Some functions are actually named 6365 something starting with __ and the normal name is an alias. */ 6366#if defined __stub_authenticate || defined __stub___authenticate 6367choke me 6368#endif 6369 6370int 6371main () 6372{ 6373return authenticate (); 6374 ; 6375 return 0; 6376} 6377_ACEOF 6378rm -f conftest.$ac_objext conftest$ac_exeext 6379if { (ac_try="$ac_link" 6380case "(($ac_try" in 6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6382 *) ac_try_echo=$ac_try;; 6383esac 6384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6385 (eval "$ac_link") 2>conftest.er1 6386 ac_status=$? 6387 grep -v '^ *+' conftest.er1 >conftest.err 6388 rm -f conftest.er1 6389 cat conftest.err >&5 6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6391 (exit $ac_status); } && { 6392 test -z "$ac_c_werror_flag" || 6393 test ! -s conftest.err 6394 } && test -s conftest$ac_exeext && 6395 $as_test_x conftest$ac_exeext; then 6396 ac_cv_func_authenticate=yes 6397else 6398 echo "$as_me: failed program was:" >&5 6399sed 's/^/| /' conftest.$ac_ext >&5 6400 6401 ac_cv_func_authenticate=no 6402fi 6403 6404rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6405 conftest$ac_exeext conftest.$ac_ext 6406fi 6407{ echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5 6408echo "${ECHO_T}$ac_cv_func_authenticate" >&6; } 6409if test $ac_cv_func_authenticate = yes; then 6410 6411cat >>confdefs.h <<\_ACEOF 6412#define WITH_AIXAUTHENTICATE 1 6413_ACEOF 6414 6415else 6416 { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5 6417echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; } 6418if test "${ac_cv_lib_s_authenticate+set}" = set; then 6419 echo $ECHO_N "(cached) $ECHO_C" >&6 6420else 6421 ac_check_lib_save_LIBS=$LIBS 6422LIBS="-ls $LIBS" 6423cat >conftest.$ac_ext <<_ACEOF 6424/* confdefs.h. */ 6425_ACEOF 6426cat confdefs.h >>conftest.$ac_ext 6427cat >>conftest.$ac_ext <<_ACEOF 6428/* end confdefs.h. */ 6429 6430/* Override any GCC internal prototype to avoid an error. 6431 Use char because int might match the return type of a GCC 6432 builtin and then its argument prototype would still apply. */ 6433#ifdef __cplusplus 6434extern "C" 6435#endif 6436char authenticate (); 6437int 6438main () 6439{ 6440return authenticate (); 6441 ; 6442 return 0; 6443} 6444_ACEOF 6445rm -f conftest.$ac_objext conftest$ac_exeext 6446if { (ac_try="$ac_link" 6447case "(($ac_try" in 6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6449 *) ac_try_echo=$ac_try;; 6450esac 6451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6452 (eval "$ac_link") 2>conftest.er1 6453 ac_status=$? 6454 grep -v '^ *+' conftest.er1 >conftest.err 6455 rm -f conftest.er1 6456 cat conftest.err >&5 6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6458 (exit $ac_status); } && { 6459 test -z "$ac_c_werror_flag" || 6460 test ! -s conftest.err 6461 } && test -s conftest$ac_exeext && 6462 $as_test_x conftest$ac_exeext; then 6463 ac_cv_lib_s_authenticate=yes 6464else 6465 echo "$as_me: failed program was:" >&5 6466sed 's/^/| /' conftest.$ac_ext >&5 6467 6468 ac_cv_lib_s_authenticate=no 6469fi 6470 6471rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6472 conftest$ac_exeext conftest.$ac_ext 6473LIBS=$ac_check_lib_save_LIBS 6474fi 6475{ echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5 6476echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; } 6477if test $ac_cv_lib_s_authenticate = yes; then 6478 cat >>confdefs.h <<\_ACEOF 6479#define WITH_AIXAUTHENTICATE 1 6480_ACEOF 6481 6482 LIBS="$LIBS -ls" 6483 6484fi 6485 6486 6487fi 6488 6489 { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5 6490echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; } 6491if test "${ac_cv_have_decl_authenticate+set}" = set; then 6492 echo $ECHO_N "(cached) $ECHO_C" >&6 6493else 6494 cat >conftest.$ac_ext <<_ACEOF 6495/* confdefs.h. */ 6496_ACEOF 6497cat confdefs.h >>conftest.$ac_ext 6498cat >>conftest.$ac_ext <<_ACEOF 6499/* end confdefs.h. */ 6500#include <usersec.h> 6501 6502int 6503main () 6504{ 6505#ifndef authenticate 6506 (void) authenticate; 6507#endif 6508 6509 ; 6510 return 0; 6511} 6512_ACEOF 6513rm -f conftest.$ac_objext 6514if { (ac_try="$ac_compile" 6515case "(($ac_try" in 6516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6517 *) ac_try_echo=$ac_try;; 6518esac 6519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6520 (eval "$ac_compile") 2>conftest.er1 6521 ac_status=$? 6522 grep -v '^ *+' conftest.er1 >conftest.err 6523 rm -f conftest.er1 6524 cat conftest.err >&5 6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6526 (exit $ac_status); } && { 6527 test -z "$ac_c_werror_flag" || 6528 test ! -s conftest.err 6529 } && test -s conftest.$ac_objext; then 6530 ac_cv_have_decl_authenticate=yes 6531else 6532 echo "$as_me: failed program was:" >&5 6533sed 's/^/| /' conftest.$ac_ext >&5 6534 6535 ac_cv_have_decl_authenticate=no 6536fi 6537 6538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6539fi 6540{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5 6541echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; } 6542if test $ac_cv_have_decl_authenticate = yes; then 6543 6544cat >>confdefs.h <<_ACEOF 6545#define HAVE_DECL_AUTHENTICATE 1 6546_ACEOF 6547 6548 6549else 6550 cat >>confdefs.h <<_ACEOF 6551#define HAVE_DECL_AUTHENTICATE 0 6552_ACEOF 6553 6554 6555fi 6556{ echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5 6557echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; } 6558if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then 6559 echo $ECHO_N "(cached) $ECHO_C" >&6 6560else 6561 cat >conftest.$ac_ext <<_ACEOF 6562/* confdefs.h. */ 6563_ACEOF 6564cat confdefs.h >>conftest.$ac_ext 6565cat >>conftest.$ac_ext <<_ACEOF 6566/* end confdefs.h. */ 6567#include <usersec.h> 6568 6569int 6570main () 6571{ 6572#ifndef loginrestrictions 6573 (void) loginrestrictions; 6574#endif 6575 6576 ; 6577 return 0; 6578} 6579_ACEOF 6580rm -f conftest.$ac_objext 6581if { (ac_try="$ac_compile" 6582case "(($ac_try" in 6583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6584 *) ac_try_echo=$ac_try;; 6585esac 6586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6587 (eval "$ac_compile") 2>conftest.er1 6588 ac_status=$? 6589 grep -v '^ *+' conftest.er1 >conftest.err 6590 rm -f conftest.er1 6591 cat conftest.err >&5 6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6593 (exit $ac_status); } && { 6594 test -z "$ac_c_werror_flag" || 6595 test ! -s conftest.err 6596 } && test -s conftest.$ac_objext; then 6597 ac_cv_have_decl_loginrestrictions=yes 6598else 6599 echo "$as_me: failed program was:" >&5 6600sed 's/^/| /' conftest.$ac_ext >&5 6601 6602 ac_cv_have_decl_loginrestrictions=no 6603fi 6604 6605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6606fi 6607{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5 6608echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; } 6609if test $ac_cv_have_decl_loginrestrictions = yes; then 6610 6611cat >>confdefs.h <<_ACEOF 6612#define HAVE_DECL_LOGINRESTRICTIONS 1 6613_ACEOF 6614 6615 6616else 6617 cat >>confdefs.h <<_ACEOF 6618#define HAVE_DECL_LOGINRESTRICTIONS 0 6619_ACEOF 6620 6621 6622fi 6623{ echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5 6624echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; } 6625if test "${ac_cv_have_decl_loginsuccess+set}" = set; then 6626 echo $ECHO_N "(cached) $ECHO_C" >&6 6627else 6628 cat >conftest.$ac_ext <<_ACEOF 6629/* confdefs.h. */ 6630_ACEOF 6631cat confdefs.h >>conftest.$ac_ext 6632cat >>conftest.$ac_ext <<_ACEOF 6633/* end confdefs.h. */ 6634#include <usersec.h> 6635 6636int 6637main () 6638{ 6639#ifndef loginsuccess 6640 (void) loginsuccess; 6641#endif 6642 6643 ; 6644 return 0; 6645} 6646_ACEOF 6647rm -f conftest.$ac_objext 6648if { (ac_try="$ac_compile" 6649case "(($ac_try" in 6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6651 *) ac_try_echo=$ac_try;; 6652esac 6653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6654 (eval "$ac_compile") 2>conftest.er1 6655 ac_status=$? 6656 grep -v '^ *+' conftest.er1 >conftest.err 6657 rm -f conftest.er1 6658 cat conftest.err >&5 6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6660 (exit $ac_status); } && { 6661 test -z "$ac_c_werror_flag" || 6662 test ! -s conftest.err 6663 } && test -s conftest.$ac_objext; then 6664 ac_cv_have_decl_loginsuccess=yes 6665else 6666 echo "$as_me: failed program was:" >&5 6667sed 's/^/| /' conftest.$ac_ext >&5 6668 6669 ac_cv_have_decl_loginsuccess=no 6670fi 6671 6672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6673fi 6674{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5 6675echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; } 6676if test $ac_cv_have_decl_loginsuccess = yes; then 6677 6678cat >>confdefs.h <<_ACEOF 6679#define HAVE_DECL_LOGINSUCCESS 1 6680_ACEOF 6681 6682 6683else 6684 cat >>confdefs.h <<_ACEOF 6685#define HAVE_DECL_LOGINSUCCESS 0 6686_ACEOF 6687 6688 6689fi 6690{ echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5 6691echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; } 6692if test "${ac_cv_have_decl_passwdexpired+set}" = set; then 6693 echo $ECHO_N "(cached) $ECHO_C" >&6 6694else 6695 cat >conftest.$ac_ext <<_ACEOF 6696/* confdefs.h. */ 6697_ACEOF 6698cat confdefs.h >>conftest.$ac_ext 6699cat >>conftest.$ac_ext <<_ACEOF 6700/* end confdefs.h. */ 6701#include <usersec.h> 6702 6703int 6704main () 6705{ 6706#ifndef passwdexpired 6707 (void) passwdexpired; 6708#endif 6709 6710 ; 6711 return 0; 6712} 6713_ACEOF 6714rm -f conftest.$ac_objext 6715if { (ac_try="$ac_compile" 6716case "(($ac_try" in 6717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6718 *) ac_try_echo=$ac_try;; 6719esac 6720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6721 (eval "$ac_compile") 2>conftest.er1 6722 ac_status=$? 6723 grep -v '^ *+' conftest.er1 >conftest.err 6724 rm -f conftest.er1 6725 cat conftest.err >&5 6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6727 (exit $ac_status); } && { 6728 test -z "$ac_c_werror_flag" || 6729 test ! -s conftest.err 6730 } && test -s conftest.$ac_objext; then 6731 ac_cv_have_decl_passwdexpired=yes 6732else 6733 echo "$as_me: failed program was:" >&5 6734sed 's/^/| /' conftest.$ac_ext >&5 6735 6736 ac_cv_have_decl_passwdexpired=no 6737fi 6738 6739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6740fi 6741{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5 6742echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; } 6743if test $ac_cv_have_decl_passwdexpired = yes; then 6744 6745cat >>confdefs.h <<_ACEOF 6746#define HAVE_DECL_PASSWDEXPIRED 1 6747_ACEOF 6748 6749 6750else 6751 cat >>confdefs.h <<_ACEOF 6752#define HAVE_DECL_PASSWDEXPIRED 0 6753_ACEOF 6754 6755 6756fi 6757{ echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5 6758echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; } 6759if test "${ac_cv_have_decl_setauthdb+set}" = set; then 6760 echo $ECHO_N "(cached) $ECHO_C" >&6 6761else 6762 cat >conftest.$ac_ext <<_ACEOF 6763/* confdefs.h. */ 6764_ACEOF 6765cat confdefs.h >>conftest.$ac_ext 6766cat >>conftest.$ac_ext <<_ACEOF 6767/* end confdefs.h. */ 6768#include <usersec.h> 6769 6770int 6771main () 6772{ 6773#ifndef setauthdb 6774 (void) setauthdb; 6775#endif 6776 6777 ; 6778 return 0; 6779} 6780_ACEOF 6781rm -f conftest.$ac_objext 6782if { (ac_try="$ac_compile" 6783case "(($ac_try" in 6784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6785 *) ac_try_echo=$ac_try;; 6786esac 6787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6788 (eval "$ac_compile") 2>conftest.er1 6789 ac_status=$? 6790 grep -v '^ *+' conftest.er1 >conftest.err 6791 rm -f conftest.er1 6792 cat conftest.err >&5 6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6794 (exit $ac_status); } && { 6795 test -z "$ac_c_werror_flag" || 6796 test ! -s conftest.err 6797 } && test -s conftest.$ac_objext; then 6798 ac_cv_have_decl_setauthdb=yes 6799else 6800 echo "$as_me: failed program was:" >&5 6801sed 's/^/| /' conftest.$ac_ext >&5 6802 6803 ac_cv_have_decl_setauthdb=no 6804fi 6805 6806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6807fi 6808{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5 6809echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; } 6810if test $ac_cv_have_decl_setauthdb = yes; then 6811 6812cat >>confdefs.h <<_ACEOF 6813#define HAVE_DECL_SETAUTHDB 1 6814_ACEOF 6815 6816 6817else 6818 cat >>confdefs.h <<_ACEOF 6819#define HAVE_DECL_SETAUTHDB 0 6820_ACEOF 6821 6822 6823fi 6824 6825 6826 { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5 6827echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; } 6828if test "${ac_cv_have_decl_loginfailed+set}" = set; then 6829 echo $ECHO_N "(cached) $ECHO_C" >&6 6830else 6831 cat >conftest.$ac_ext <<_ACEOF 6832/* confdefs.h. */ 6833_ACEOF 6834cat confdefs.h >>conftest.$ac_ext 6835cat >>conftest.$ac_ext <<_ACEOF 6836/* end confdefs.h. */ 6837#include <usersec.h> 6838 6839 6840int 6841main () 6842{ 6843#ifndef loginfailed 6844 (void) loginfailed; 6845#endif 6846 6847 ; 6848 return 0; 6849} 6850_ACEOF 6851rm -f conftest.$ac_objext 6852if { (ac_try="$ac_compile" 6853case "(($ac_try" in 6854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6855 *) ac_try_echo=$ac_try;; 6856esac 6857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6858 (eval "$ac_compile") 2>conftest.er1 6859 ac_status=$? 6860 grep -v '^ *+' conftest.er1 >conftest.err 6861 rm -f conftest.er1 6862 cat conftest.err >&5 6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6864 (exit $ac_status); } && { 6865 test -z "$ac_c_werror_flag" || 6866 test ! -s conftest.err 6867 } && test -s conftest.$ac_objext; then 6868 ac_cv_have_decl_loginfailed=yes 6869else 6870 echo "$as_me: failed program was:" >&5 6871sed 's/^/| /' conftest.$ac_ext >&5 6872 6873 ac_cv_have_decl_loginfailed=no 6874fi 6875 6876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6877fi 6878{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5 6879echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; } 6880if test $ac_cv_have_decl_loginfailed = yes; then 6881 6882cat >>confdefs.h <<_ACEOF 6883#define HAVE_DECL_LOGINFAILED 1 6884_ACEOF 6885 6886{ echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5 6887echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; } 6888 cat >conftest.$ac_ext <<_ACEOF 6889/* confdefs.h. */ 6890_ACEOF 6891cat confdefs.h >>conftest.$ac_ext 6892cat >>conftest.$ac_ext <<_ACEOF 6893/* end confdefs.h. */ 6894#include <usersec.h> 6895int 6896main () 6897{ 6898(void)loginfailed("user","host","tty",0); 6899 ; 6900 return 0; 6901} 6902_ACEOF 6903rm -f conftest.$ac_objext 6904if { (ac_try="$ac_compile" 6905case "(($ac_try" in 6906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6907 *) ac_try_echo=$ac_try;; 6908esac 6909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6910 (eval "$ac_compile") 2>conftest.er1 6911 ac_status=$? 6912 grep -v '^ *+' conftest.er1 >conftest.err 6913 rm -f conftest.er1 6914 cat conftest.err >&5 6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6916 (exit $ac_status); } && { 6917 test -z "$ac_c_werror_flag" || 6918 test ! -s conftest.err 6919 } && test -s conftest.$ac_objext; then 6920 { echo "$as_me:$LINENO: result: yes" >&5 6921echo "${ECHO_T}yes" >&6; } 6922 6923cat >>confdefs.h <<\_ACEOF 6924#define AIX_LOGINFAILED_4ARG 1 6925_ACEOF 6926 6927else 6928 echo "$as_me: failed program was:" >&5 6929sed 's/^/| /' conftest.$ac_ext >&5 6930 6931 { echo "$as_me:$LINENO: result: no" >&5 6932echo "${ECHO_T}no" >&6; } 6933 6934fi 6935 6936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6937else 6938 cat >>confdefs.h <<_ACEOF 6939#define HAVE_DECL_LOGINFAILED 0 6940_ACEOF 6941 6942 6943fi 6944 6945 6946 6947 6948for ac_func in getgrset setauthdb 6949do 6950as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6951{ echo "$as_me:$LINENO: checking for $ac_func" >&5 6952echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 6953if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 6954 echo $ECHO_N "(cached) $ECHO_C" >&6 6955else 6956 cat >conftest.$ac_ext <<_ACEOF 6957/* confdefs.h. */ 6958_ACEOF 6959cat confdefs.h >>conftest.$ac_ext 6960cat >>conftest.$ac_ext <<_ACEOF 6961/* end confdefs.h. */ 6962/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6963 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6964#define $ac_func innocuous_$ac_func 6965 6966/* System header to define __stub macros and hopefully few prototypes, 6967 which can conflict with char $ac_func (); below. 6968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6969 <limits.h> exists even on freestanding compilers. */ 6970 6971#ifdef __STDC__ 6972# include <limits.h> 6973#else 6974# include <assert.h> 6975#endif 6976 6977#undef $ac_func 6978 6979/* Override any GCC internal prototype to avoid an error. 6980 Use char because int might match the return type of a GCC 6981 builtin and then its argument prototype would still apply. */ 6982#ifdef __cplusplus 6983extern "C" 6984#endif 6985char $ac_func (); 6986/* The GNU C library defines this for functions which it implements 6987 to always fail with ENOSYS. Some functions are actually named 6988 something starting with __ and the normal name is an alias. */ 6989#if defined __stub_$ac_func || defined __stub___$ac_func 6990choke me 6991#endif 6992 6993int 6994main () 6995{ 6996return $ac_func (); 6997 ; 6998 return 0; 6999} 7000_ACEOF 7001rm -f conftest.$ac_objext conftest$ac_exeext 7002if { (ac_try="$ac_link" 7003case "(($ac_try" in 7004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7005 *) ac_try_echo=$ac_try;; 7006esac 7007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7008 (eval "$ac_link") 2>conftest.er1 7009 ac_status=$? 7010 grep -v '^ *+' conftest.er1 >conftest.err 7011 rm -f conftest.er1 7012 cat conftest.err >&5 7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7014 (exit $ac_status); } && { 7015 test -z "$ac_c_werror_flag" || 7016 test ! -s conftest.err 7017 } && test -s conftest$ac_exeext && 7018 $as_test_x conftest$ac_exeext; then 7019 eval "$as_ac_var=yes" 7020else 7021 echo "$as_me: failed program was:" >&5 7022sed 's/^/| /' conftest.$ac_ext >&5 7023 7024 eval "$as_ac_var=no" 7025fi 7026 7027rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7028 conftest$ac_exeext conftest.$ac_ext 7029fi 7030ac_res=`eval echo '${'$as_ac_var'}'` 7031 { echo "$as_me:$LINENO: result: $ac_res" >&5 7032echo "${ECHO_T}$ac_res" >&6; } 7033if test `eval echo '${'$as_ac_var'}'` = yes; then 7034 cat >>confdefs.h <<_ACEOF 7035#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7036_ACEOF 7037 7038fi 7039done 7040 7041 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5 7042echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; } 7043if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then 7044 echo $ECHO_N "(cached) $ECHO_C" >&6 7045else 7046 cat >conftest.$ac_ext <<_ACEOF 7047/* confdefs.h. */ 7048_ACEOF 7049cat confdefs.h >>conftest.$ac_ext 7050cat >>conftest.$ac_ext <<_ACEOF 7051/* end confdefs.h. */ 7052 #include <limits.h> 7053 #include <fcntl.h> 7054 7055 7056int 7057main () 7058{ 7059#ifndef F_CLOSEM 7060 (void) F_CLOSEM; 7061#endif 7062 7063 ; 7064 return 0; 7065} 7066_ACEOF 7067rm -f conftest.$ac_objext 7068if { (ac_try="$ac_compile" 7069case "(($ac_try" in 7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7071 *) ac_try_echo=$ac_try;; 7072esac 7073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7074 (eval "$ac_compile") 2>conftest.er1 7075 ac_status=$? 7076 grep -v '^ *+' conftest.er1 >conftest.err 7077 rm -f conftest.er1 7078 cat conftest.err >&5 7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7080 (exit $ac_status); } && { 7081 test -z "$ac_c_werror_flag" || 7082 test ! -s conftest.err 7083 } && test -s conftest.$ac_objext; then 7084 ac_cv_have_decl_F_CLOSEM=yes 7085else 7086 echo "$as_me: failed program was:" >&5 7087sed 's/^/| /' conftest.$ac_ext >&5 7088 7089 ac_cv_have_decl_F_CLOSEM=no 7090fi 7091 7092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7093fi 7094{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5 7095echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; } 7096if test $ac_cv_have_decl_F_CLOSEM = yes; then 7097 7098cat >>confdefs.h <<\_ACEOF 7099#define HAVE_FCNTL_CLOSEM 1 7100_ACEOF 7101 7102fi 7103 7104 check_for_aix_broken_getaddrinfo=1 7105 7106cat >>confdefs.h <<\_ACEOF 7107#define BROKEN_REALPATH 1 7108_ACEOF 7109 7110 7111cat >>confdefs.h <<\_ACEOF 7112#define SETEUID_BREAKS_SETUID 1 7113_ACEOF 7114 7115 7116cat >>confdefs.h <<\_ACEOF 7117#define BROKEN_SETREUID 1 7118_ACEOF 7119 7120 7121cat >>confdefs.h <<\_ACEOF 7122#define BROKEN_SETREGID 1 7123_ACEOF 7124 7125 7126cat >>confdefs.h <<\_ACEOF 7127#define DISABLE_LASTLOG 1 7128_ACEOF 7129 7130 7131cat >>confdefs.h <<\_ACEOF 7132#define LOGIN_NEEDS_UTMPX 1 7133_ACEOF 7134 7135 7136cat >>confdefs.h <<\_ACEOF 7137#define SPT_TYPE SPT_REUSEARGV 7138_ACEOF 7139 7140 7141cat >>confdefs.h <<\_ACEOF 7142#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 7143_ACEOF 7144 7145 7146cat >>confdefs.h <<\_ACEOF 7147#define PTY_ZEROREAD 1 7148_ACEOF 7149 7150 ;; 7151*-*-cygwin*) 7152 check_for_libcrypt_later=1 7153 LIBS="$LIBS /usr/lib/textreadmode.o" 7154 7155cat >>confdefs.h <<\_ACEOF 7156#define HAVE_CYGWIN 1 7157_ACEOF 7158 7159 7160cat >>confdefs.h <<\_ACEOF 7161#define USE_PIPES 1 7162_ACEOF 7163 7164 7165cat >>confdefs.h <<\_ACEOF 7166#define DISABLE_SHADOW 1 7167_ACEOF 7168 7169 7170cat >>confdefs.h <<\_ACEOF 7171#define IP_TOS_IS_BROKEN 1 7172_ACEOF 7173 7174 7175cat >>confdefs.h <<\_ACEOF 7176#define NO_X11_UNIX_SOCKETS 1 7177_ACEOF 7178 7179 7180cat >>confdefs.h <<\_ACEOF 7181#define NO_IPPORT_RESERVED_CONCEPT 1 7182_ACEOF 7183 7184 7185cat >>confdefs.h <<\_ACEOF 7186#define DISABLE_FD_PASSING 1 7187_ACEOF 7188 7189 ;; 7190*-*-dgux*) 7191 cat >>confdefs.h <<\_ACEOF 7192#define IP_TOS_IS_BROKEN 1 7193_ACEOF 7194 7195 cat >>confdefs.h <<\_ACEOF 7196#define SETEUID_BREAKS_SETUID 1 7197_ACEOF 7198 7199 cat >>confdefs.h <<\_ACEOF 7200#define BROKEN_SETREUID 1 7201_ACEOF 7202 7203 cat >>confdefs.h <<\_ACEOF 7204#define BROKEN_SETREGID 1 7205_ACEOF 7206 7207 ;; 7208*-*-darwin*) 7209 { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5 7210echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; } 7211 if test "$cross_compiling" = yes; then 7212 { echo "$as_me:$LINENO: result: assume it is working" >&5 7213echo "${ECHO_T}assume it is working" >&6; } 7214else 7215 cat >conftest.$ac_ext <<_ACEOF 7216/* confdefs.h. */ 7217_ACEOF 7218cat confdefs.h >>conftest.$ac_ext 7219cat >>conftest.$ac_ext <<_ACEOF 7220/* end confdefs.h. */ 7221#include <mach-o/dyld.h> 7222main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) 7223 exit(0); 7224 else 7225 exit(1); 7226} 7227_ACEOF 7228rm -f conftest$ac_exeext 7229if { (ac_try="$ac_link" 7230case "(($ac_try" in 7231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7232 *) ac_try_echo=$ac_try;; 7233esac 7234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7235 (eval "$ac_link") 2>&5 7236 ac_status=$? 7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7239 { (case "(($ac_try" in 7240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7241 *) ac_try_echo=$ac_try;; 7242esac 7243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7244 (eval "$ac_try") 2>&5 7245 ac_status=$? 7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7247 (exit $ac_status); }; }; then 7248 { echo "$as_me:$LINENO: result: working" >&5 7249echo "${ECHO_T}working" >&6; } 7250else 7251 echo "$as_me: program exited with status $ac_status" >&5 7252echo "$as_me: failed program was:" >&5 7253sed 's/^/| /' conftest.$ac_ext >&5 7254 7255( exit $ac_status ) 7256{ echo "$as_me:$LINENO: result: buggy" >&5 7257echo "${ECHO_T}buggy" >&6; } 7258 7259cat >>confdefs.h <<\_ACEOF 7260#define BROKEN_GETADDRINFO 1 7261_ACEOF 7262 7263fi 7264rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7265fi 7266 7267 7268 cat >>confdefs.h <<\_ACEOF 7269#define SETEUID_BREAKS_SETUID 1 7270_ACEOF 7271 7272 cat >>confdefs.h <<\_ACEOF 7273#define BROKEN_SETREUID 1 7274_ACEOF 7275 7276 cat >>confdefs.h <<\_ACEOF 7277#define BROKEN_SETREGID 1 7278_ACEOF 7279 7280 7281cat >>confdefs.h <<\_ACEOF 7282#define BROKEN_GLOB 1 7283_ACEOF 7284 7285 7286cat >>confdefs.h <<_ACEOF 7287#define BIND_8_COMPAT 1 7288_ACEOF 7289 7290 7291cat >>confdefs.h <<\_ACEOF 7292#define SSH_TUN_FREEBSD 1 7293_ACEOF 7294 7295 7296cat >>confdefs.h <<\_ACEOF 7297#define SSH_TUN_COMPAT_AF 1 7298_ACEOF 7299 7300 7301cat >>confdefs.h <<\_ACEOF 7302#define SSH_TUN_PREPEND_AF 1 7303_ACEOF 7304 7305 7306 { echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5 7307echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; } 7308if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then 7309 echo $ECHO_N "(cached) $ECHO_C" >&6 7310else 7311 cat >conftest.$ac_ext <<_ACEOF 7312/* confdefs.h. */ 7313_ACEOF 7314cat confdefs.h >>conftest.$ac_ext 7315cat >>conftest.$ac_ext <<_ACEOF 7316/* end confdefs.h. */ 7317$ac_includes_default 7318int 7319main () 7320{ 7321#ifndef AU_IPv4 7322 (void) AU_IPv4; 7323#endif 7324 7325 ; 7326 return 0; 7327} 7328_ACEOF 7329rm -f conftest.$ac_objext 7330if { (ac_try="$ac_compile" 7331case "(($ac_try" in 7332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7333 *) ac_try_echo=$ac_try;; 7334esac 7335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7336 (eval "$ac_compile") 2>conftest.er1 7337 ac_status=$? 7338 grep -v '^ *+' conftest.er1 >conftest.err 7339 rm -f conftest.er1 7340 cat conftest.err >&5 7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7342 (exit $ac_status); } && { 7343 test -z "$ac_c_werror_flag" || 7344 test ! -s conftest.err 7345 } && test -s conftest.$ac_objext; then 7346 ac_cv_have_decl_AU_IPv4=yes 7347else 7348 echo "$as_me: failed program was:" >&5 7349sed 's/^/| /' conftest.$ac_ext >&5 7350 7351 ac_cv_have_decl_AU_IPv4=no 7352fi 7353 7354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7355fi 7356{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5 7357echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; } 7358if test $ac_cv_have_decl_AU_IPv4 = yes; then 7359 : 7360else 7361 7362cat >>confdefs.h <<\_ACEOF 7363#define AU_IPv4 0 7364_ACEOF 7365 7366 #include <bsm/audit.h> 7367 7368cat >>confdefs.h <<\_ACEOF 7369#define LASTLOG_WRITE_PUTUTXLINE 1 7370_ACEOF 7371 7372 7373fi 7374 7375 ;; 7376*-*-dragonfly*) 7377 SSHDLIBS="$SSHDLIBS -lcrypt" 7378 ;; 7379*-*-hpux*) 7380 # first we define all of the options common to all HP-UX releases 7381 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" 7382 IPADDR_IN_DISPLAY=yes 7383 cat >>confdefs.h <<\_ACEOF 7384#define USE_PIPES 1 7385_ACEOF 7386 7387 7388cat >>confdefs.h <<\_ACEOF 7389#define LOGIN_NO_ENDOPT 1 7390_ACEOF 7391 7392 cat >>confdefs.h <<\_ACEOF 7393#define LOGIN_NEEDS_UTMPX 1 7394_ACEOF 7395 7396 7397cat >>confdefs.h <<\_ACEOF 7398#define LOCKED_PASSWD_STRING "*" 7399_ACEOF 7400 7401 cat >>confdefs.h <<\_ACEOF 7402#define SPT_TYPE SPT_PSTAT 7403_ACEOF 7404 7405 MAIL="/var/mail/username" 7406 LIBS="$LIBS -lsec" 7407 7408{ echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 7409echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; } 7410if test "${ac_cv_lib_xnet_t_error+set}" = set; then 7411 echo $ECHO_N "(cached) $ECHO_C" >&6 7412else 7413 ac_check_lib_save_LIBS=$LIBS 7414LIBS="-lxnet $LIBS" 7415cat >conftest.$ac_ext <<_ACEOF 7416/* confdefs.h. */ 7417_ACEOF 7418cat confdefs.h >>conftest.$ac_ext 7419cat >>conftest.$ac_ext <<_ACEOF 7420/* end confdefs.h. */ 7421 7422/* Override any GCC internal prototype to avoid an error. 7423 Use char because int might match the return type of a GCC 7424 builtin and then its argument prototype would still apply. */ 7425#ifdef __cplusplus 7426extern "C" 7427#endif 7428char t_error (); 7429int 7430main () 7431{ 7432return t_error (); 7433 ; 7434 return 0; 7435} 7436_ACEOF 7437rm -f conftest.$ac_objext conftest$ac_exeext 7438if { (ac_try="$ac_link" 7439case "(($ac_try" in 7440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7441 *) ac_try_echo=$ac_try;; 7442esac 7443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7444 (eval "$ac_link") 2>conftest.er1 7445 ac_status=$? 7446 grep -v '^ *+' conftest.er1 >conftest.err 7447 rm -f conftest.er1 7448 cat conftest.err >&5 7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7450 (exit $ac_status); } && { 7451 test -z "$ac_c_werror_flag" || 7452 test ! -s conftest.err 7453 } && test -s conftest$ac_exeext && 7454 $as_test_x conftest$ac_exeext; then 7455 ac_cv_lib_xnet_t_error=yes 7456else 7457 echo "$as_me: failed program was:" >&5 7458sed 's/^/| /' conftest.$ac_ext >&5 7459 7460 ac_cv_lib_xnet_t_error=no 7461fi 7462 7463rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7464 conftest$ac_exeext conftest.$ac_ext 7465LIBS=$ac_check_lib_save_LIBS 7466fi 7467{ echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 7468echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; } 7469if test $ac_cv_lib_xnet_t_error = yes; then 7470 cat >>confdefs.h <<_ACEOF 7471#define HAVE_LIBXNET 1 7472_ACEOF 7473 7474 LIBS="-lxnet $LIBS" 7475 7476else 7477 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 7478echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} 7479 { (exit 1); exit 1; }; } 7480fi 7481 7482 7483 # next, we define all of the options specific to major releases 7484 case "$host" in 7485 *-*-hpux10*) 7486 if test -z "$GCC"; then 7487 CFLAGS="$CFLAGS -Ae" 7488 fi 7489 ;; 7490 *-*-hpux11*) 7491 7492cat >>confdefs.h <<\_ACEOF 7493#define PAM_SUN_CODEBASE 1 7494_ACEOF 7495 7496 7497cat >>confdefs.h <<\_ACEOF 7498#define DISABLE_UTMP 1 7499_ACEOF 7500 7501 7502cat >>confdefs.h <<\_ACEOF 7503#define USE_BTMP 1 7504_ACEOF 7505 7506 check_for_hpux_broken_getaddrinfo=1 7507 check_for_conflicting_getspnam=1 7508 ;; 7509 esac 7510 7511 # lastly, we define options specific to minor releases 7512 case "$host" in 7513 *-*-hpux10.26) 7514 7515cat >>confdefs.h <<\_ACEOF 7516#define HAVE_SECUREWARE 1 7517_ACEOF 7518 7519 disable_ptmx_check=yes 7520 LIBS="$LIBS -lsecpw" 7521 ;; 7522 esac 7523 ;; 7524*-*-irix5*) 7525 PATH="$PATH:/usr/etc" 7526 7527cat >>confdefs.h <<\_ACEOF 7528#define BROKEN_INET_NTOA 1 7529_ACEOF 7530 7531 cat >>confdefs.h <<\_ACEOF 7532#define SETEUID_BREAKS_SETUID 1 7533_ACEOF 7534 7535 cat >>confdefs.h <<\_ACEOF 7536#define BROKEN_SETREUID 1 7537_ACEOF 7538 7539 cat >>confdefs.h <<\_ACEOF 7540#define BROKEN_SETREGID 1 7541_ACEOF 7542 7543 7544cat >>confdefs.h <<\_ACEOF 7545#define WITH_ABBREV_NO_TTY 1 7546_ACEOF 7547 7548 cat >>confdefs.h <<\_ACEOF 7549#define LOCKED_PASSWD_STRING "*LK*" 7550_ACEOF 7551 7552 ;; 7553*-*-irix6*) 7554 PATH="$PATH:/usr/etc" 7555 7556cat >>confdefs.h <<\_ACEOF 7557#define WITH_IRIX_ARRAY 1 7558_ACEOF 7559 7560 7561cat >>confdefs.h <<\_ACEOF 7562#define WITH_IRIX_PROJECT 1 7563_ACEOF 7564 7565 7566cat >>confdefs.h <<\_ACEOF 7567#define WITH_IRIX_AUDIT 1 7568_ACEOF 7569 7570 { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5 7571echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; } 7572if test "${ac_cv_func_jlimit_startjob+set}" = set; then 7573 echo $ECHO_N "(cached) $ECHO_C" >&6 7574else 7575 cat >conftest.$ac_ext <<_ACEOF 7576/* confdefs.h. */ 7577_ACEOF 7578cat confdefs.h >>conftest.$ac_ext 7579cat >>conftest.$ac_ext <<_ACEOF 7580/* end confdefs.h. */ 7581/* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob. 7582 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7583#define jlimit_startjob innocuous_jlimit_startjob 7584 7585/* System header to define __stub macros and hopefully few prototypes, 7586 which can conflict with char jlimit_startjob (); below. 7587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7588 <limits.h> exists even on freestanding compilers. */ 7589 7590#ifdef __STDC__ 7591# include <limits.h> 7592#else 7593# include <assert.h> 7594#endif 7595 7596#undef jlimit_startjob 7597 7598/* Override any GCC internal prototype to avoid an error. 7599 Use char because int might match the return type of a GCC 7600 builtin and then its argument prototype would still apply. */ 7601#ifdef __cplusplus 7602extern "C" 7603#endif 7604char jlimit_startjob (); 7605/* The GNU C library defines this for functions which it implements 7606 to always fail with ENOSYS. Some functions are actually named 7607 something starting with __ and the normal name is an alias. */ 7608#if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob 7609choke me 7610#endif 7611 7612int 7613main () 7614{ 7615return jlimit_startjob (); 7616 ; 7617 return 0; 7618} 7619_ACEOF 7620rm -f conftest.$ac_objext conftest$ac_exeext 7621if { (ac_try="$ac_link" 7622case "(($ac_try" in 7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7624 *) ac_try_echo=$ac_try;; 7625esac 7626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7627 (eval "$ac_link") 2>conftest.er1 7628 ac_status=$? 7629 grep -v '^ *+' conftest.er1 >conftest.err 7630 rm -f conftest.er1 7631 cat conftest.err >&5 7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7633 (exit $ac_status); } && { 7634 test -z "$ac_c_werror_flag" || 7635 test ! -s conftest.err 7636 } && test -s conftest$ac_exeext && 7637 $as_test_x conftest$ac_exeext; then 7638 ac_cv_func_jlimit_startjob=yes 7639else 7640 echo "$as_me: failed program was:" >&5 7641sed 's/^/| /' conftest.$ac_ext >&5 7642 7643 ac_cv_func_jlimit_startjob=no 7644fi 7645 7646rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7647 conftest$ac_exeext conftest.$ac_ext 7648fi 7649{ echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5 7650echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; } 7651if test $ac_cv_func_jlimit_startjob = yes; then 7652 7653cat >>confdefs.h <<\_ACEOF 7654#define WITH_IRIX_JOBS 1 7655_ACEOF 7656 7657fi 7658 7659 cat >>confdefs.h <<\_ACEOF 7660#define BROKEN_INET_NTOA 1 7661_ACEOF 7662 7663 cat >>confdefs.h <<\_ACEOF 7664#define SETEUID_BREAKS_SETUID 1 7665_ACEOF 7666 7667 cat >>confdefs.h <<\_ACEOF 7668#define BROKEN_SETREUID 1 7669_ACEOF 7670 7671 cat >>confdefs.h <<\_ACEOF 7672#define BROKEN_SETREGID 1 7673_ACEOF 7674 7675 7676cat >>confdefs.h <<\_ACEOF 7677#define BROKEN_UPDWTMPX 1 7678_ACEOF 7679 7680 cat >>confdefs.h <<\_ACEOF 7681#define WITH_ABBREV_NO_TTY 1 7682_ACEOF 7683 7684 cat >>confdefs.h <<\_ACEOF 7685#define LOCKED_PASSWD_STRING "*LK*" 7686_ACEOF 7687 7688 ;; 7689*-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) 7690 check_for_libcrypt_later=1 7691 cat >>confdefs.h <<\_ACEOF 7692#define PAM_TTY_KLUDGE 1 7693_ACEOF 7694 7695 cat >>confdefs.h <<\_ACEOF 7696#define LOCKED_PASSWD_PREFIX "!" 7697_ACEOF 7698 7699 cat >>confdefs.h <<\_ACEOF 7700#define SPT_TYPE SPT_REUSEARGV 7701_ACEOF 7702 7703 7704cat >>confdefs.h <<\_ACEOF 7705#define _PATH_BTMP "/var/log/btmp" 7706_ACEOF 7707 7708 7709cat >>confdefs.h <<\_ACEOF 7710#define USE_BTMP 1 7711_ACEOF 7712 7713 ;; 7714*-*-linux*) 7715 no_dev_ptmx=1 7716 check_for_libcrypt_later=1 7717 check_for_openpty_ctty_bug=1 7718 7719cat >>confdefs.h <<\_ACEOF 7720#define PAM_TTY_KLUDGE 1 7721_ACEOF 7722 7723 7724cat >>confdefs.h <<\_ACEOF 7725#define LOCKED_PASSWD_PREFIX "!" 7726_ACEOF 7727 7728 cat >>confdefs.h <<\_ACEOF 7729#define SPT_TYPE SPT_REUSEARGV 7730_ACEOF 7731 7732 7733cat >>confdefs.h <<\_ACEOF 7734#define LINK_OPNOTSUPP_ERRNO EPERM 7735_ACEOF 7736 7737 7738cat >>confdefs.h <<\_ACEOF 7739#define _PATH_BTMP "/var/log/btmp" 7740_ACEOF 7741 7742 cat >>confdefs.h <<\_ACEOF 7743#define USE_BTMP 1 7744_ACEOF 7745 7746 inet6_default_4in6=yes 7747 case `uname -r` in 7748 1.*|2.0.*) 7749 7750cat >>confdefs.h <<\_ACEOF 7751#define BROKEN_CMSG_TYPE 1 7752_ACEOF 7753 7754 ;; 7755 esac 7756 # tun(4) forwarding compat code 7757 7758for ac_header in linux/if_tun.h 7759do 7760as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7761if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7762 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7764if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7765 echo $ECHO_N "(cached) $ECHO_C" >&6 7766fi 7767ac_res=`eval echo '${'$as_ac_Header'}'` 7768 { echo "$as_me:$LINENO: result: $ac_res" >&5 7769echo "${ECHO_T}$ac_res" >&6; } 7770else 7771 # Is the header compilable? 7772{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 7773echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 7774cat >conftest.$ac_ext <<_ACEOF 7775/* confdefs.h. */ 7776_ACEOF 7777cat confdefs.h >>conftest.$ac_ext 7778cat >>conftest.$ac_ext <<_ACEOF 7779/* end confdefs.h. */ 7780$ac_includes_default 7781#include <$ac_header> 7782_ACEOF 7783rm -f conftest.$ac_objext 7784if { (ac_try="$ac_compile" 7785case "(($ac_try" in 7786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7787 *) ac_try_echo=$ac_try;; 7788esac 7789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7790 (eval "$ac_compile") 2>conftest.er1 7791 ac_status=$? 7792 grep -v '^ *+' conftest.er1 >conftest.err 7793 rm -f conftest.er1 7794 cat conftest.err >&5 7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7796 (exit $ac_status); } && { 7797 test -z "$ac_c_werror_flag" || 7798 test ! -s conftest.err 7799 } && test -s conftest.$ac_objext; then 7800 ac_header_compiler=yes 7801else 7802 echo "$as_me: failed program was:" >&5 7803sed 's/^/| /' conftest.$ac_ext >&5 7804 7805 ac_header_compiler=no 7806fi 7807 7808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7809{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7810echo "${ECHO_T}$ac_header_compiler" >&6; } 7811 7812# Is the header present? 7813{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 7814echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 7815cat >conftest.$ac_ext <<_ACEOF 7816/* confdefs.h. */ 7817_ACEOF 7818cat confdefs.h >>conftest.$ac_ext 7819cat >>conftest.$ac_ext <<_ACEOF 7820/* end confdefs.h. */ 7821#include <$ac_header> 7822_ACEOF 7823if { (ac_try="$ac_cpp conftest.$ac_ext" 7824case "(($ac_try" in 7825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7826 *) ac_try_echo=$ac_try;; 7827esac 7828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7830 ac_status=$? 7831 grep -v '^ *+' conftest.er1 >conftest.err 7832 rm -f conftest.er1 7833 cat conftest.err >&5 7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7835 (exit $ac_status); } >/dev/null && { 7836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7837 test ! -s conftest.err 7838 }; then 7839 ac_header_preproc=yes 7840else 7841 echo "$as_me: failed program was:" >&5 7842sed 's/^/| /' conftest.$ac_ext >&5 7843 7844 ac_header_preproc=no 7845fi 7846 7847rm -f conftest.err conftest.$ac_ext 7848{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7849echo "${ECHO_T}$ac_header_preproc" >&6; } 7850 7851# So? What about this header? 7852case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7853 yes:no: ) 7854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7855echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7857echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7858 ac_header_preproc=yes 7859 ;; 7860 no:yes:* ) 7861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7862echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7864echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7866echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7868echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7870echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7872echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7873 ( cat <<\_ASBOX 7874## ------------------------------------------- ## 7875## Report this to openssh-unix-dev@mindrot.org ## 7876## ------------------------------------------- ## 7877_ASBOX 7878 ) | sed "s/^/$as_me: WARNING: /" >&2 7879 ;; 7880esac 7881{ echo "$as_me:$LINENO: checking for $ac_header" >&5 7882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7883if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7884 echo $ECHO_N "(cached) $ECHO_C" >&6 7885else 7886 eval "$as_ac_Header=\$ac_header_preproc" 7887fi 7888ac_res=`eval echo '${'$as_ac_Header'}'` 7889 { echo "$as_me:$LINENO: result: $ac_res" >&5 7890echo "${ECHO_T}$ac_res" >&6; } 7891 7892fi 7893if test `eval echo '${'$as_ac_Header'}'` = yes; then 7894 cat >>confdefs.h <<_ACEOF 7895#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7896_ACEOF 7897 7898fi 7899 7900done 7901 7902 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then 7903 7904cat >>confdefs.h <<\_ACEOF 7905#define SSH_TUN_LINUX 1 7906_ACEOF 7907 7908 7909cat >>confdefs.h <<\_ACEOF 7910#define SSH_TUN_COMPAT_AF 1 7911_ACEOF 7912 7913 7914cat >>confdefs.h <<\_ACEOF 7915#define SSH_TUN_PREPEND_AF 1 7916_ACEOF 7917 7918 fi 7919 ;; 7920mips-sony-bsd|mips-sony-newsos4) 7921 7922cat >>confdefs.h <<\_ACEOF 7923#define NEED_SETPGRP 1 7924_ACEOF 7925 7926 SONY=1 7927 ;; 7928*-*-netbsd*) 7929 check_for_libcrypt_before=1 7930 if test "x$withval" != "xno" ; then 7931 need_dash_r=1 7932 fi 7933 7934cat >>confdefs.h <<\_ACEOF 7935#define SSH_TUN_FREEBSD 1 7936_ACEOF 7937 7938 if test "${ac_cv_header_net_if_tap_h+set}" = set; then 7939 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 7940echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } 7941if test "${ac_cv_header_net_if_tap_h+set}" = set; then 7942 echo $ECHO_N "(cached) $ECHO_C" >&6 7943fi 7944{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 7945echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } 7946else 7947 # Is the header compilable? 7948{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5 7949echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; } 7950cat >conftest.$ac_ext <<_ACEOF 7951/* confdefs.h. */ 7952_ACEOF 7953cat confdefs.h >>conftest.$ac_ext 7954cat >>conftest.$ac_ext <<_ACEOF 7955/* end confdefs.h. */ 7956$ac_includes_default 7957#include <net/if_tap.h> 7958_ACEOF 7959rm -f conftest.$ac_objext 7960if { (ac_try="$ac_compile" 7961case "(($ac_try" in 7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7963 *) ac_try_echo=$ac_try;; 7964esac 7965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7966 (eval "$ac_compile") 2>conftest.er1 7967 ac_status=$? 7968 grep -v '^ *+' conftest.er1 >conftest.err 7969 rm -f conftest.er1 7970 cat conftest.err >&5 7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7972 (exit $ac_status); } && { 7973 test -z "$ac_c_werror_flag" || 7974 test ! -s conftest.err 7975 } && test -s conftest.$ac_objext; then 7976 ac_header_compiler=yes 7977else 7978 echo "$as_me: failed program was:" >&5 7979sed 's/^/| /' conftest.$ac_ext >&5 7980 7981 ac_header_compiler=no 7982fi 7983 7984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7985{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7986echo "${ECHO_T}$ac_header_compiler" >&6; } 7987 7988# Is the header present? 7989{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5 7990echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; } 7991cat >conftest.$ac_ext <<_ACEOF 7992/* confdefs.h. */ 7993_ACEOF 7994cat confdefs.h >>conftest.$ac_ext 7995cat >>conftest.$ac_ext <<_ACEOF 7996/* end confdefs.h. */ 7997#include <net/if_tap.h> 7998_ACEOF 7999if { (ac_try="$ac_cpp conftest.$ac_ext" 8000case "(($ac_try" in 8001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8002 *) ac_try_echo=$ac_try;; 8003esac 8004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8006 ac_status=$? 8007 grep -v '^ *+' conftest.er1 >conftest.err 8008 rm -f conftest.er1 8009 cat conftest.err >&5 8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8011 (exit $ac_status); } >/dev/null && { 8012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8013 test ! -s conftest.err 8014 }; then 8015 ac_header_preproc=yes 8016else 8017 echo "$as_me: failed program was:" >&5 8018sed 's/^/| /' conftest.$ac_ext >&5 8019 8020 ac_header_preproc=no 8021fi 8022 8023rm -f conftest.err conftest.$ac_ext 8024{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8025echo "${ECHO_T}$ac_header_preproc" >&6; } 8026 8027# So? What about this header? 8028case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8029 yes:no: ) 8030 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5 8031echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8032 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5 8033echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;} 8034 ac_header_preproc=yes 8035 ;; 8036 no:yes:* ) 8037 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5 8038echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;} 8039 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5 8040echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;} 8041 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5 8042echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;} 8043 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5 8044echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;} 8045 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5 8046echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;} 8047 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5 8048echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;} 8049 ( cat <<\_ASBOX 8050## ------------------------------------------- ## 8051## Report this to openssh-unix-dev@mindrot.org ## 8052## ------------------------------------------- ## 8053_ASBOX 8054 ) | sed "s/^/$as_me: WARNING: /" >&2 8055 ;; 8056esac 8057{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 8058echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } 8059if test "${ac_cv_header_net_if_tap_h+set}" = set; then 8060 echo $ECHO_N "(cached) $ECHO_C" >&6 8061else 8062 ac_cv_header_net_if_tap_h=$ac_header_preproc 8063fi 8064{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 8065echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } 8066 8067fi 8068if test $ac_cv_header_net_if_tap_h = yes; then 8069 : 8070else 8071 8072cat >>confdefs.h <<\_ACEOF 8073#define SSH_TUN_NO_L2 1 8074_ACEOF 8075 8076fi 8077 8078 8079 8080cat >>confdefs.h <<\_ACEOF 8081#define SSH_TUN_PREPEND_AF 1 8082_ACEOF 8083 8084 ;; 8085*-*-freebsd*) 8086 check_for_libcrypt_later=1 8087 8088cat >>confdefs.h <<\_ACEOF 8089#define LOCKED_PASSWD_PREFIX "*LOCKED*" 8090_ACEOF 8091 8092 8093cat >>confdefs.h <<\_ACEOF 8094#define SSH_TUN_FREEBSD 1 8095_ACEOF 8096 8097 if test "${ac_cv_header_net_if_tap_h+set}" = set; then 8098 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 8099echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } 8100if test "${ac_cv_header_net_if_tap_h+set}" = set; then 8101 echo $ECHO_N "(cached) $ECHO_C" >&6 8102fi 8103{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 8104echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } 8105else 8106 # Is the header compilable? 8107{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5 8108echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; } 8109cat >conftest.$ac_ext <<_ACEOF 8110/* confdefs.h. */ 8111_ACEOF 8112cat confdefs.h >>conftest.$ac_ext 8113cat >>conftest.$ac_ext <<_ACEOF 8114/* end confdefs.h. */ 8115$ac_includes_default 8116#include <net/if_tap.h> 8117_ACEOF 8118rm -f conftest.$ac_objext 8119if { (ac_try="$ac_compile" 8120case "(($ac_try" in 8121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8122 *) ac_try_echo=$ac_try;; 8123esac 8124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8125 (eval "$ac_compile") 2>conftest.er1 8126 ac_status=$? 8127 grep -v '^ *+' conftest.er1 >conftest.err 8128 rm -f conftest.er1 8129 cat conftest.err >&5 8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8131 (exit $ac_status); } && { 8132 test -z "$ac_c_werror_flag" || 8133 test ! -s conftest.err 8134 } && test -s conftest.$ac_objext; then 8135 ac_header_compiler=yes 8136else 8137 echo "$as_me: failed program was:" >&5 8138sed 's/^/| /' conftest.$ac_ext >&5 8139 8140 ac_header_compiler=no 8141fi 8142 8143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8144{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8145echo "${ECHO_T}$ac_header_compiler" >&6; } 8146 8147# Is the header present? 8148{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5 8149echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; } 8150cat >conftest.$ac_ext <<_ACEOF 8151/* confdefs.h. */ 8152_ACEOF 8153cat confdefs.h >>conftest.$ac_ext 8154cat >>conftest.$ac_ext <<_ACEOF 8155/* end confdefs.h. */ 8156#include <net/if_tap.h> 8157_ACEOF 8158if { (ac_try="$ac_cpp conftest.$ac_ext" 8159case "(($ac_try" in 8160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8161 *) ac_try_echo=$ac_try;; 8162esac 8163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8165 ac_status=$? 8166 grep -v '^ *+' conftest.er1 >conftest.err 8167 rm -f conftest.er1 8168 cat conftest.err >&5 8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8170 (exit $ac_status); } >/dev/null && { 8171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8172 test ! -s conftest.err 8173 }; then 8174 ac_header_preproc=yes 8175else 8176 echo "$as_me: failed program was:" >&5 8177sed 's/^/| /' conftest.$ac_ext >&5 8178 8179 ac_header_preproc=no 8180fi 8181 8182rm -f conftest.err conftest.$ac_ext 8183{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8184echo "${ECHO_T}$ac_header_preproc" >&6; } 8185 8186# So? What about this header? 8187case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8188 yes:no: ) 8189 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5 8190echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8191 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5 8192echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;} 8193 ac_header_preproc=yes 8194 ;; 8195 no:yes:* ) 8196 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5 8197echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;} 8198 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5 8199echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;} 8200 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5 8201echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;} 8202 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5 8203echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;} 8204 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5 8205echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;} 8206 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5 8207echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;} 8208 ( cat <<\_ASBOX 8209## ------------------------------------------- ## 8210## Report this to openssh-unix-dev@mindrot.org ## 8211## ------------------------------------------- ## 8212_ASBOX 8213 ) | sed "s/^/$as_me: WARNING: /" >&2 8214 ;; 8215esac 8216{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 8217echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; } 8218if test "${ac_cv_header_net_if_tap_h+set}" = set; then 8219 echo $ECHO_N "(cached) $ECHO_C" >&6 8220else 8221 ac_cv_header_net_if_tap_h=$ac_header_preproc 8222fi 8223{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 8224echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; } 8225 8226fi 8227if test $ac_cv_header_net_if_tap_h = yes; then 8228 : 8229else 8230 8231cat >>confdefs.h <<\_ACEOF 8232#define SSH_TUN_NO_L2 1 8233_ACEOF 8234 8235fi 8236 8237 8238 8239cat >>confdefs.h <<\_ACEOF 8240#define BROKEN_GLOB 1 8241_ACEOF 8242 8243 ;; 8244*-*-bsdi*) 8245 cat >>confdefs.h <<\_ACEOF 8246#define SETEUID_BREAKS_SETUID 1 8247_ACEOF 8248 8249 cat >>confdefs.h <<\_ACEOF 8250#define BROKEN_SETREUID 1 8251_ACEOF 8252 8253 cat >>confdefs.h <<\_ACEOF 8254#define BROKEN_SETREGID 1 8255_ACEOF 8256 8257 ;; 8258*-next-*) 8259 conf_lastlog_location="/usr/adm/lastlog" 8260 conf_utmp_location=/etc/utmp 8261 conf_wtmp_location=/usr/adm/wtmp 8262 MAIL=/usr/spool/mail 8263 8264cat >>confdefs.h <<\_ACEOF 8265#define HAVE_NEXT 1 8266_ACEOF 8267 8268 cat >>confdefs.h <<\_ACEOF 8269#define BROKEN_REALPATH 1 8270_ACEOF 8271 8272 cat >>confdefs.h <<\_ACEOF 8273#define USE_PIPES 1 8274_ACEOF 8275 8276 8277cat >>confdefs.h <<\_ACEOF 8278#define BROKEN_SAVED_UIDS 1 8279_ACEOF 8280 8281 ;; 8282*-*-openbsd*) 8283 8284cat >>confdefs.h <<\_ACEOF 8285#define HAVE_ATTRIBUTE__SENTINEL__ 1 8286_ACEOF 8287 8288 8289cat >>confdefs.h <<\_ACEOF 8290#define HAVE_ATTRIBUTE__BOUNDED__ 1 8291_ACEOF 8292 8293 8294cat >>confdefs.h <<\_ACEOF 8295#define SSH_TUN_OPENBSD 1 8296_ACEOF 8297 8298 8299cat >>confdefs.h <<\_ACEOF 8300#define SYSLOG_R_SAFE_IN_SIGHAND 1 8301_ACEOF 8302 8303 ;; 8304*-*-solaris*) 8305 if test "x$withval" != "xno" ; then 8306 need_dash_r=1 8307 fi 8308 cat >>confdefs.h <<\_ACEOF 8309#define PAM_SUN_CODEBASE 1 8310_ACEOF 8311 8312 cat >>confdefs.h <<\_ACEOF 8313#define LOGIN_NEEDS_UTMPX 1 8314_ACEOF 8315 8316 8317cat >>confdefs.h <<\_ACEOF 8318#define LOGIN_NEEDS_TERM 1 8319_ACEOF 8320 8321 cat >>confdefs.h <<\_ACEOF 8322#define PAM_TTY_KLUDGE 1 8323_ACEOF 8324 8325 8326cat >>confdefs.h <<\_ACEOF 8327#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 8328_ACEOF 8329 8330 cat >>confdefs.h <<\_ACEOF 8331#define LOCKED_PASSWD_STRING "*LK*" 8332_ACEOF 8333 8334 # Pushing STREAMS modules will cause sshd to acquire a controlling tty. 8335 8336cat >>confdefs.h <<\_ACEOF 8337#define SSHD_ACQUIRES_CTTY 1 8338_ACEOF 8339 8340 8341cat >>confdefs.h <<\_ACEOF 8342#define PASSWD_NEEDS_USERNAME 1 8343_ACEOF 8344 8345 external_path_file=/etc/default/login 8346 # hardwire lastlog location (can't detect it on some versions) 8347 conf_lastlog_location="/var/adm/lastlog" 8348 { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 8349echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; } 8350 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` 8351 if test "$sol2ver" -ge 8; then 8352 { echo "$as_me:$LINENO: result: yes" >&5 8353echo "${ECHO_T}yes" >&6; } 8354 cat >>confdefs.h <<\_ACEOF 8355#define DISABLE_UTMP 1 8356_ACEOF 8357 8358 8359cat >>confdefs.h <<\_ACEOF 8360#define DISABLE_WTMP 1 8361_ACEOF 8362 8363 else 8364 { echo "$as_me:$LINENO: result: no" >&5 8365echo "${ECHO_T}no" >&6; } 8366 fi 8367 8368# Check whether --with-solaris-contracts was given. 8369if test "${with_solaris_contracts+set}" = set; then 8370 withval=$with_solaris_contracts; 8371 { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5 8372echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; } 8373if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then 8374 echo $ECHO_N "(cached) $ECHO_C" >&6 8375else 8376 ac_check_lib_save_LIBS=$LIBS 8377LIBS="-lcontract $LIBS" 8378cat >conftest.$ac_ext <<_ACEOF 8379/* confdefs.h. */ 8380_ACEOF 8381cat confdefs.h >>conftest.$ac_ext 8382cat >>conftest.$ac_ext <<_ACEOF 8383/* end confdefs.h. */ 8384 8385/* Override any GCC internal prototype to avoid an error. 8386 Use char because int might match the return type of a GCC 8387 builtin and then its argument prototype would still apply. */ 8388#ifdef __cplusplus 8389extern "C" 8390#endif 8391char ct_tmpl_activate (); 8392int 8393main () 8394{ 8395return ct_tmpl_activate (); 8396 ; 8397 return 0; 8398} 8399_ACEOF 8400rm -f conftest.$ac_objext conftest$ac_exeext 8401if { (ac_try="$ac_link" 8402case "(($ac_try" in 8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8404 *) ac_try_echo=$ac_try;; 8405esac 8406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8407 (eval "$ac_link") 2>conftest.er1 8408 ac_status=$? 8409 grep -v '^ *+' conftest.er1 >conftest.err 8410 rm -f conftest.er1 8411 cat conftest.err >&5 8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8413 (exit $ac_status); } && { 8414 test -z "$ac_c_werror_flag" || 8415 test ! -s conftest.err 8416 } && test -s conftest$ac_exeext && 8417 $as_test_x conftest$ac_exeext; then 8418 ac_cv_lib_contract_ct_tmpl_activate=yes 8419else 8420 echo "$as_me: failed program was:" >&5 8421sed 's/^/| /' conftest.$ac_ext >&5 8422 8423 ac_cv_lib_contract_ct_tmpl_activate=no 8424fi 8425 8426rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8427 conftest$ac_exeext conftest.$ac_ext 8428LIBS=$ac_check_lib_save_LIBS 8429fi 8430{ echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5 8431echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; } 8432if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then 8433 8434cat >>confdefs.h <<\_ACEOF 8435#define USE_SOLARIS_PROCESS_CONTRACTS 1 8436_ACEOF 8437 8438 SSHDLIBS="$SSHDLIBS -lcontract" 8439 8440 SPC_MSG="yes" 8441fi 8442 8443 8444fi 8445 8446 ;; 8447*-*-sunos4*) 8448 CPPFLAGS="$CPPFLAGS -DSUNOS4" 8449 8450for ac_func in getpwanam 8451do 8452as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8453{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8454echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8455if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8456 echo $ECHO_N "(cached) $ECHO_C" >&6 8457else 8458 cat >conftest.$ac_ext <<_ACEOF 8459/* confdefs.h. */ 8460_ACEOF 8461cat confdefs.h >>conftest.$ac_ext 8462cat >>conftest.$ac_ext <<_ACEOF 8463/* end confdefs.h. */ 8464/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8465 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8466#define $ac_func innocuous_$ac_func 8467 8468/* System header to define __stub macros and hopefully few prototypes, 8469 which can conflict with char $ac_func (); below. 8470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8471 <limits.h> exists even on freestanding compilers. */ 8472 8473#ifdef __STDC__ 8474# include <limits.h> 8475#else 8476# include <assert.h> 8477#endif 8478 8479#undef $ac_func 8480 8481/* Override any GCC internal prototype to avoid an error. 8482 Use char because int might match the return type of a GCC 8483 builtin and then its argument prototype would still apply. */ 8484#ifdef __cplusplus 8485extern "C" 8486#endif 8487char $ac_func (); 8488/* The GNU C library defines this for functions which it implements 8489 to always fail with ENOSYS. Some functions are actually named 8490 something starting with __ and the normal name is an alias. */ 8491#if defined __stub_$ac_func || defined __stub___$ac_func 8492choke me 8493#endif 8494 8495int 8496main () 8497{ 8498return $ac_func (); 8499 ; 8500 return 0; 8501} 8502_ACEOF 8503rm -f conftest.$ac_objext conftest$ac_exeext 8504if { (ac_try="$ac_link" 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_link") 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_exeext && 8520 $as_test_x conftest$ac_exeext; then 8521 eval "$as_ac_var=yes" 8522else 8523 echo "$as_me: failed program was:" >&5 8524sed 's/^/| /' conftest.$ac_ext >&5 8525 8526 eval "$as_ac_var=no" 8527fi 8528 8529rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8530 conftest$ac_exeext conftest.$ac_ext 8531fi 8532ac_res=`eval echo '${'$as_ac_var'}'` 8533 { echo "$as_me:$LINENO: result: $ac_res" >&5 8534echo "${ECHO_T}$ac_res" >&6; } 8535if test `eval echo '${'$as_ac_var'}'` = yes; then 8536 cat >>confdefs.h <<_ACEOF 8537#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8538_ACEOF 8539 8540fi 8541done 8542 8543 cat >>confdefs.h <<\_ACEOF 8544#define PAM_SUN_CODEBASE 1 8545_ACEOF 8546 8547 conf_utmp_location=/etc/utmp 8548 conf_wtmp_location=/var/adm/wtmp 8549 conf_lastlog_location=/var/adm/lastlog 8550 cat >>confdefs.h <<\_ACEOF 8551#define USE_PIPES 1 8552_ACEOF 8553 8554 ;; 8555*-ncr-sysv*) 8556 LIBS="$LIBS -lc89" 8557 cat >>confdefs.h <<\_ACEOF 8558#define USE_PIPES 1 8559_ACEOF 8560 8561 cat >>confdefs.h <<\_ACEOF 8562#define SSHD_ACQUIRES_CTTY 1 8563_ACEOF 8564 8565 cat >>confdefs.h <<\_ACEOF 8566#define SETEUID_BREAKS_SETUID 1 8567_ACEOF 8568 8569 cat >>confdefs.h <<\_ACEOF 8570#define BROKEN_SETREUID 1 8571_ACEOF 8572 8573 cat >>confdefs.h <<\_ACEOF 8574#define BROKEN_SETREGID 1 8575_ACEOF 8576 8577 ;; 8578*-sni-sysv*) 8579 # /usr/ucblib MUST NOT be searched on ReliantUNIX 8580 8581{ echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 8582echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; } 8583if test "${ac_cv_lib_dl_dlsym+set}" = set; then 8584 echo $ECHO_N "(cached) $ECHO_C" >&6 8585else 8586 ac_check_lib_save_LIBS=$LIBS 8587LIBS="-ldl $LIBS" 8588cat >conftest.$ac_ext <<_ACEOF 8589/* confdefs.h. */ 8590_ACEOF 8591cat confdefs.h >>conftest.$ac_ext 8592cat >>conftest.$ac_ext <<_ACEOF 8593/* end confdefs.h. */ 8594 8595/* Override any GCC internal prototype to avoid an error. 8596 Use char because int might match the return type of a GCC 8597 builtin and then its argument prototype would still apply. */ 8598#ifdef __cplusplus 8599extern "C" 8600#endif 8601char dlsym (); 8602int 8603main () 8604{ 8605return dlsym (); 8606 ; 8607 return 0; 8608} 8609_ACEOF 8610rm -f conftest.$ac_objext conftest$ac_exeext 8611if { (ac_try="$ac_link" 8612case "(($ac_try" in 8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8614 *) ac_try_echo=$ac_try;; 8615esac 8616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8617 (eval "$ac_link") 2>conftest.er1 8618 ac_status=$? 8619 grep -v '^ *+' conftest.er1 >conftest.err 8620 rm -f conftest.er1 8621 cat conftest.err >&5 8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8623 (exit $ac_status); } && { 8624 test -z "$ac_c_werror_flag" || 8625 test ! -s conftest.err 8626 } && test -s conftest$ac_exeext && 8627 $as_test_x conftest$ac_exeext; then 8628 ac_cv_lib_dl_dlsym=yes 8629else 8630 echo "$as_me: failed program was:" >&5 8631sed 's/^/| /' conftest.$ac_ext >&5 8632 8633 ac_cv_lib_dl_dlsym=no 8634fi 8635 8636rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8637 conftest$ac_exeext conftest.$ac_ext 8638LIBS=$ac_check_lib_save_LIBS 8639fi 8640{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 8641echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; } 8642if test $ac_cv_lib_dl_dlsym = yes; then 8643 cat >>confdefs.h <<_ACEOF 8644#define HAVE_LIBDL 1 8645_ACEOF 8646 8647 LIBS="-ldl $LIBS" 8648 8649fi 8650 8651 # -lresolv needs to be at the end of LIBS or DNS lookups break 8652 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 8653echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } 8654if test "${ac_cv_lib_resolv_res_query+set}" = set; then 8655 echo $ECHO_N "(cached) $ECHO_C" >&6 8656else 8657 ac_check_lib_save_LIBS=$LIBS 8658LIBS="-lresolv $LIBS" 8659cat >conftest.$ac_ext <<_ACEOF 8660/* confdefs.h. */ 8661_ACEOF 8662cat confdefs.h >>conftest.$ac_ext 8663cat >>conftest.$ac_ext <<_ACEOF 8664/* end confdefs.h. */ 8665 8666/* Override any GCC internal prototype to avoid an error. 8667 Use char because int might match the return type of a GCC 8668 builtin and then its argument prototype would still apply. */ 8669#ifdef __cplusplus 8670extern "C" 8671#endif 8672char res_query (); 8673int 8674main () 8675{ 8676return res_query (); 8677 ; 8678 return 0; 8679} 8680_ACEOF 8681rm -f conftest.$ac_objext conftest$ac_exeext 8682if { (ac_try="$ac_link" 8683case "(($ac_try" in 8684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8685 *) ac_try_echo=$ac_try;; 8686esac 8687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8688 (eval "$ac_link") 2>conftest.er1 8689 ac_status=$? 8690 grep -v '^ *+' conftest.er1 >conftest.err 8691 rm -f conftest.er1 8692 cat conftest.err >&5 8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8694 (exit $ac_status); } && { 8695 test -z "$ac_c_werror_flag" || 8696 test ! -s conftest.err 8697 } && test -s conftest$ac_exeext && 8698 $as_test_x conftest$ac_exeext; then 8699 ac_cv_lib_resolv_res_query=yes 8700else 8701 echo "$as_me: failed program was:" >&5 8702sed 's/^/| /' conftest.$ac_ext >&5 8703 8704 ac_cv_lib_resolv_res_query=no 8705fi 8706 8707rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8708 conftest$ac_exeext conftest.$ac_ext 8709LIBS=$ac_check_lib_save_LIBS 8710fi 8711{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5 8712echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; } 8713if test $ac_cv_lib_resolv_res_query = yes; then 8714 LIBS="$LIBS -lresolv" 8715fi 8716 8717 IPADDR_IN_DISPLAY=yes 8718 cat >>confdefs.h <<\_ACEOF 8719#define USE_PIPES 1 8720_ACEOF 8721 8722 cat >>confdefs.h <<\_ACEOF 8723#define IP_TOS_IS_BROKEN 1 8724_ACEOF 8725 8726 cat >>confdefs.h <<\_ACEOF 8727#define SETEUID_BREAKS_SETUID 1 8728_ACEOF 8729 8730 cat >>confdefs.h <<\_ACEOF 8731#define BROKEN_SETREUID 1 8732_ACEOF 8733 8734 cat >>confdefs.h <<\_ACEOF 8735#define BROKEN_SETREGID 1 8736_ACEOF 8737 8738 cat >>confdefs.h <<\_ACEOF 8739#define SSHD_ACQUIRES_CTTY 1 8740_ACEOF 8741 8742 external_path_file=/etc/default/login 8743 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX 8744 # Attention: always take care to bind libsocket and libnsl before libc, 8745 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog 8746 ;; 8747# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. 8748*-*-sysv4.2*) 8749 cat >>confdefs.h <<\_ACEOF 8750#define USE_PIPES 1 8751_ACEOF 8752 8753 cat >>confdefs.h <<\_ACEOF 8754#define SETEUID_BREAKS_SETUID 1 8755_ACEOF 8756 8757 cat >>confdefs.h <<\_ACEOF 8758#define BROKEN_SETREUID 1 8759_ACEOF 8760 8761 cat >>confdefs.h <<\_ACEOF 8762#define BROKEN_SETREGID 1 8763_ACEOF 8764 8765 8766cat >>confdefs.h <<\_ACEOF 8767#define PASSWD_NEEDS_USERNAME 1 8768_ACEOF 8769 8770 cat >>confdefs.h <<\_ACEOF 8771#define LOCKED_PASSWD_STRING "*LK*" 8772_ACEOF 8773 8774 ;; 8775# UnixWare 7.x, OpenUNIX 8 8776*-*-sysv5*) 8777 8778cat >>confdefs.h <<\_ACEOF 8779#define UNIXWARE_LONG_PASSWORDS 1 8780_ACEOF 8781 8782 cat >>confdefs.h <<\_ACEOF 8783#define USE_PIPES 1 8784_ACEOF 8785 8786 cat >>confdefs.h <<\_ACEOF 8787#define SETEUID_BREAKS_SETUID 1 8788_ACEOF 8789 8790 cat >>confdefs.h <<\_ACEOF 8791#define BROKEN_SETREUID 1 8792_ACEOF 8793 8794 cat >>confdefs.h <<\_ACEOF 8795#define BROKEN_SETREGID 1 8796_ACEOF 8797 8798 cat >>confdefs.h <<\_ACEOF 8799#define PASSWD_NEEDS_USERNAME 1 8800_ACEOF 8801 8802 case "$host" in 8803 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x 8804 TEST_SHELL=/u95/bin/sh 8805 8806cat >>confdefs.h <<\_ACEOF 8807#define BROKEN_LIBIAF 1 8808_ACEOF 8809 8810 cat >>confdefs.h <<\_ACEOF 8811#define BROKEN_UPDWTMPX 1 8812_ACEOF 8813 8814 { echo "$as_me:$LINENO: checking for getluid in -lprot" >&5 8815echo $ECHO_N "checking for getluid in -lprot... $ECHO_C" >&6; } 8816if test "${ac_cv_lib_prot_getluid+set}" = set; then 8817 echo $ECHO_N "(cached) $ECHO_C" >&6 8818else 8819 ac_check_lib_save_LIBS=$LIBS 8820LIBS="-lprot $LIBS" 8821cat >conftest.$ac_ext <<_ACEOF 8822/* confdefs.h. */ 8823_ACEOF 8824cat confdefs.h >>conftest.$ac_ext 8825cat >>conftest.$ac_ext <<_ACEOF 8826/* end confdefs.h. */ 8827 8828/* Override any GCC internal prototype to avoid an error. 8829 Use char because int might match the return type of a GCC 8830 builtin and then its argument prototype would still apply. */ 8831#ifdef __cplusplus 8832extern "C" 8833#endif 8834char getluid (); 8835int 8836main () 8837{ 8838return getluid (); 8839 ; 8840 return 0; 8841} 8842_ACEOF 8843rm -f conftest.$ac_objext conftest$ac_exeext 8844if { (ac_try="$ac_link" 8845case "(($ac_try" in 8846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8847 *) ac_try_echo=$ac_try;; 8848esac 8849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8850 (eval "$ac_link") 2>conftest.er1 8851 ac_status=$? 8852 grep -v '^ *+' conftest.er1 >conftest.err 8853 rm -f conftest.er1 8854 cat conftest.err >&5 8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8856 (exit $ac_status); } && { 8857 test -z "$ac_c_werror_flag" || 8858 test ! -s conftest.err 8859 } && test -s conftest$ac_exeext && 8860 $as_test_x conftest$ac_exeext; then 8861 ac_cv_lib_prot_getluid=yes 8862else 8863 echo "$as_me: failed program was:" >&5 8864sed 's/^/| /' conftest.$ac_ext >&5 8865 8866 ac_cv_lib_prot_getluid=no 8867fi 8868 8869rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8870 conftest$ac_exeext conftest.$ac_ext 8871LIBS=$ac_check_lib_save_LIBS 8872fi 8873{ echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getluid" >&5 8874echo "${ECHO_T}$ac_cv_lib_prot_getluid" >&6; } 8875if test $ac_cv_lib_prot_getluid = yes; then 8876 LIBS="$LIBS -lprot" 8877 8878 8879for ac_func in getluid setluid 8880do 8881as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8882{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8883echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8884if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8885 echo $ECHO_N "(cached) $ECHO_C" >&6 8886else 8887 cat >conftest.$ac_ext <<_ACEOF 8888/* confdefs.h. */ 8889_ACEOF 8890cat confdefs.h >>conftest.$ac_ext 8891cat >>conftest.$ac_ext <<_ACEOF 8892/* end confdefs.h. */ 8893/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8894 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8895#define $ac_func innocuous_$ac_func 8896 8897/* System header to define __stub macros and hopefully few prototypes, 8898 which can conflict with char $ac_func (); below. 8899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8900 <limits.h> exists even on freestanding compilers. */ 8901 8902#ifdef __STDC__ 8903# include <limits.h> 8904#else 8905# include <assert.h> 8906#endif 8907 8908#undef $ac_func 8909 8910/* Override any GCC internal prototype to avoid an error. 8911 Use char because int might match the return type of a GCC 8912 builtin and then its argument prototype would still apply. */ 8913#ifdef __cplusplus 8914extern "C" 8915#endif 8916char $ac_func (); 8917/* The GNU C library defines this for functions which it implements 8918 to always fail with ENOSYS. Some functions are actually named 8919 something starting with __ and the normal name is an alias. */ 8920#if defined __stub_$ac_func || defined __stub___$ac_func 8921choke me 8922#endif 8923 8924int 8925main () 8926{ 8927return $ac_func (); 8928 ; 8929 return 0; 8930} 8931_ACEOF 8932rm -f conftest.$ac_objext conftest$ac_exeext 8933if { (ac_try="$ac_link" 8934case "(($ac_try" in 8935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8936 *) ac_try_echo=$ac_try;; 8937esac 8938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8939 (eval "$ac_link") 2>conftest.er1 8940 ac_status=$? 8941 grep -v '^ *+' conftest.er1 >conftest.err 8942 rm -f conftest.er1 8943 cat conftest.err >&5 8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8945 (exit $ac_status); } && { 8946 test -z "$ac_c_werror_flag" || 8947 test ! -s conftest.err 8948 } && test -s conftest$ac_exeext && 8949 $as_test_x conftest$ac_exeext; then 8950 eval "$as_ac_var=yes" 8951else 8952 echo "$as_me: failed program was:" >&5 8953sed 's/^/| /' conftest.$ac_ext >&5 8954 8955 eval "$as_ac_var=no" 8956fi 8957 8958rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8959 conftest$ac_exeext conftest.$ac_ext 8960fi 8961ac_res=`eval echo '${'$as_ac_var'}'` 8962 { echo "$as_me:$LINENO: result: $ac_res" >&5 8963echo "${ECHO_T}$ac_res" >&6; } 8964if test `eval echo '${'$as_ac_var'}'` = yes; then 8965 cat >>confdefs.h <<_ACEOF 8966#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8967_ACEOF 8968 8969fi 8970done 8971 8972 cat >>confdefs.h <<\_ACEOF 8973#define HAVE_SECUREWARE 1 8974_ACEOF 8975 8976 cat >>confdefs.h <<\_ACEOF 8977#define DISABLE_SHADOW 1 8978_ACEOF 8979 8980 8981fi 8982 8983 ;; 8984 *) cat >>confdefs.h <<\_ACEOF 8985#define LOCKED_PASSWD_STRING "*LK*" 8986_ACEOF 8987 8988 check_for_libcrypt_later=1 8989 ;; 8990 esac 8991 ;; 8992*-*-sysv*) 8993 ;; 8994# SCO UNIX and OEM versions of SCO UNIX 8995*-*-sco3.2v4*) 8996 { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5 8997echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;} 8998 { (exit 1); exit 1; }; } 8999 ;; 9000# SCO OpenServer 5.x 9001*-*-sco3.2v5*) 9002 if test -z "$GCC"; then 9003 CFLAGS="$CFLAGS -belf" 9004 fi 9005 LIBS="$LIBS -lprot -lx -ltinfo -lm" 9006 no_dev_ptmx=1 9007 cat >>confdefs.h <<\_ACEOF 9008#define USE_PIPES 1 9009_ACEOF 9010 9011 cat >>confdefs.h <<\_ACEOF 9012#define HAVE_SECUREWARE 1 9013_ACEOF 9014 9015 cat >>confdefs.h <<\_ACEOF 9016#define DISABLE_SHADOW 1 9017_ACEOF 9018 9019 cat >>confdefs.h <<\_ACEOF 9020#define DISABLE_FD_PASSING 1 9021_ACEOF 9022 9023 cat >>confdefs.h <<\_ACEOF 9024#define SETEUID_BREAKS_SETUID 1 9025_ACEOF 9026 9027 cat >>confdefs.h <<\_ACEOF 9028#define BROKEN_SETREUID 1 9029_ACEOF 9030 9031 cat >>confdefs.h <<\_ACEOF 9032#define BROKEN_SETREGID 1 9033_ACEOF 9034 9035 cat >>confdefs.h <<\_ACEOF 9036#define WITH_ABBREV_NO_TTY 1 9037_ACEOF 9038 9039 cat >>confdefs.h <<\_ACEOF 9040#define BROKEN_UPDWTMPX 1 9041_ACEOF 9042 9043 cat >>confdefs.h <<\_ACEOF 9044#define PASSWD_NEEDS_USERNAME 1 9045_ACEOF 9046 9047 9048 9049for ac_func in getluid setluid 9050do 9051as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9052{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9053echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9054if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9055 echo $ECHO_N "(cached) $ECHO_C" >&6 9056else 9057 cat >conftest.$ac_ext <<_ACEOF 9058/* confdefs.h. */ 9059_ACEOF 9060cat confdefs.h >>conftest.$ac_ext 9061cat >>conftest.$ac_ext <<_ACEOF 9062/* end confdefs.h. */ 9063/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9064 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9065#define $ac_func innocuous_$ac_func 9066 9067/* System header to define __stub macros and hopefully few prototypes, 9068 which can conflict with char $ac_func (); below. 9069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9070 <limits.h> exists even on freestanding compilers. */ 9071 9072#ifdef __STDC__ 9073# include <limits.h> 9074#else 9075# include <assert.h> 9076#endif 9077 9078#undef $ac_func 9079 9080/* Override any GCC internal prototype to avoid an error. 9081 Use char because int might match the return type of a GCC 9082 builtin and then its argument prototype would still apply. */ 9083#ifdef __cplusplus 9084extern "C" 9085#endif 9086char $ac_func (); 9087/* The GNU C library defines this for functions which it implements 9088 to always fail with ENOSYS. Some functions are actually named 9089 something starting with __ and the normal name is an alias. */ 9090#if defined __stub_$ac_func || defined __stub___$ac_func 9091choke me 9092#endif 9093 9094int 9095main () 9096{ 9097return $ac_func (); 9098 ; 9099 return 0; 9100} 9101_ACEOF 9102rm -f conftest.$ac_objext conftest$ac_exeext 9103if { (ac_try="$ac_link" 9104case "(($ac_try" in 9105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9106 *) ac_try_echo=$ac_try;; 9107esac 9108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9109 (eval "$ac_link") 2>conftest.er1 9110 ac_status=$? 9111 grep -v '^ *+' conftest.er1 >conftest.err 9112 rm -f conftest.er1 9113 cat conftest.err >&5 9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9115 (exit $ac_status); } && { 9116 test -z "$ac_c_werror_flag" || 9117 test ! -s conftest.err 9118 } && test -s conftest$ac_exeext && 9119 $as_test_x conftest$ac_exeext; then 9120 eval "$as_ac_var=yes" 9121else 9122 echo "$as_me: failed program was:" >&5 9123sed 's/^/| /' conftest.$ac_ext >&5 9124 9125 eval "$as_ac_var=no" 9126fi 9127 9128rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9129 conftest$ac_exeext conftest.$ac_ext 9130fi 9131ac_res=`eval echo '${'$as_ac_var'}'` 9132 { echo "$as_me:$LINENO: result: $ac_res" >&5 9133echo "${ECHO_T}$ac_res" >&6; } 9134if test `eval echo '${'$as_ac_var'}'` = yes; then 9135 cat >>confdefs.h <<_ACEOF 9136#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9137_ACEOF 9138 9139fi 9140done 9141 9142 MANTYPE=man 9143 TEST_SHELL=ksh 9144 ;; 9145*-*-unicosmk*) 9146 9147cat >>confdefs.h <<\_ACEOF 9148#define NO_SSH_LASTLOG 1 9149_ACEOF 9150 9151 cat >>confdefs.h <<\_ACEOF 9152#define SETEUID_BREAKS_SETUID 1 9153_ACEOF 9154 9155 cat >>confdefs.h <<\_ACEOF 9156#define BROKEN_SETREUID 1 9157_ACEOF 9158 9159 cat >>confdefs.h <<\_ACEOF 9160#define BROKEN_SETREGID 1 9161_ACEOF 9162 9163 cat >>confdefs.h <<\_ACEOF 9164#define USE_PIPES 1 9165_ACEOF 9166 9167 cat >>confdefs.h <<\_ACEOF 9168#define DISABLE_FD_PASSING 1 9169_ACEOF 9170 9171 LDFLAGS="$LDFLAGS" 9172 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" 9173 MANTYPE=cat 9174 ;; 9175*-*-unicosmp*) 9176 cat >>confdefs.h <<\_ACEOF 9177#define SETEUID_BREAKS_SETUID 1 9178_ACEOF 9179 9180 cat >>confdefs.h <<\_ACEOF 9181#define BROKEN_SETREUID 1 9182_ACEOF 9183 9184 cat >>confdefs.h <<\_ACEOF 9185#define BROKEN_SETREGID 1 9186_ACEOF 9187 9188 cat >>confdefs.h <<\_ACEOF 9189#define WITH_ABBREV_NO_TTY 1 9190_ACEOF 9191 9192 cat >>confdefs.h <<\_ACEOF 9193#define USE_PIPES 1 9194_ACEOF 9195 9196 cat >>confdefs.h <<\_ACEOF 9197#define DISABLE_FD_PASSING 1 9198_ACEOF 9199 9200 LDFLAGS="$LDFLAGS" 9201 LIBS="$LIBS -lgen -lacid -ldb" 9202 MANTYPE=cat 9203 ;; 9204*-*-unicos*) 9205 cat >>confdefs.h <<\_ACEOF 9206#define SETEUID_BREAKS_SETUID 1 9207_ACEOF 9208 9209 cat >>confdefs.h <<\_ACEOF 9210#define BROKEN_SETREUID 1 9211_ACEOF 9212 9213 cat >>confdefs.h <<\_ACEOF 9214#define BROKEN_SETREGID 1 9215_ACEOF 9216 9217 cat >>confdefs.h <<\_ACEOF 9218#define USE_PIPES 1 9219_ACEOF 9220 9221 cat >>confdefs.h <<\_ACEOF 9222#define DISABLE_FD_PASSING 1 9223_ACEOF 9224 9225 cat >>confdefs.h <<\_ACEOF 9226#define NO_SSH_LASTLOG 1 9227_ACEOF 9228 9229 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" 9230 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" 9231 MANTYPE=cat 9232 ;; 9233*-dec-osf*) 9234 { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5 9235echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; } 9236 no_osfsia="" 9237 9238# Check whether --with-osfsia was given. 9239if test "${with_osfsia+set}" = set; then 9240 withval=$with_osfsia; 9241 if test "x$withval" = "xno" ; then 9242 { echo "$as_me:$LINENO: result: disabled" >&5 9243echo "${ECHO_T}disabled" >&6; } 9244 no_osfsia=1 9245 fi 9246 9247fi 9248 9249 if test -z "$no_osfsia" ; then 9250 if test -f /etc/sia/matrix.conf; then 9251 { echo "$as_me:$LINENO: result: yes" >&5 9252echo "${ECHO_T}yes" >&6; } 9253 9254cat >>confdefs.h <<\_ACEOF 9255#define HAVE_OSF_SIA 1 9256_ACEOF 9257 9258 9259cat >>confdefs.h <<\_ACEOF 9260#define DISABLE_LOGIN 1 9261_ACEOF 9262 9263 cat >>confdefs.h <<\_ACEOF 9264#define DISABLE_FD_PASSING 1 9265_ACEOF 9266 9267 LIBS="$LIBS -lsecurity -ldb -lm -laud" 9268 SIA_MSG="yes" 9269 else 9270 { echo "$as_me:$LINENO: result: no" >&5 9271echo "${ECHO_T}no" >&6; } 9272 9273cat >>confdefs.h <<\_ACEOF 9274#define LOCKED_PASSWD_SUBSTR "Nologin" 9275_ACEOF 9276 9277 fi 9278 fi 9279 cat >>confdefs.h <<\_ACEOF 9280#define BROKEN_GETADDRINFO 1 9281_ACEOF 9282 9283 cat >>confdefs.h <<\_ACEOF 9284#define SETEUID_BREAKS_SETUID 1 9285_ACEOF 9286 9287 cat >>confdefs.h <<\_ACEOF 9288#define BROKEN_SETREUID 1 9289_ACEOF 9290 9291 cat >>confdefs.h <<\_ACEOF 9292#define BROKEN_SETREGID 1 9293_ACEOF 9294 9295 9296cat >>confdefs.h <<\_ACEOF 9297#define BROKEN_READV_COMPARISON 1 9298_ACEOF 9299 9300 ;; 9301 9302*-*-nto-qnx*) 9303 cat >>confdefs.h <<\_ACEOF 9304#define USE_PIPES 1 9305_ACEOF 9306 9307 cat >>confdefs.h <<\_ACEOF 9308#define NO_X11_UNIX_SOCKETS 1 9309_ACEOF 9310 9311 9312cat >>confdefs.h <<\_ACEOF 9313#define MISSING_NFDBITS 1 9314_ACEOF 9315 9316 9317cat >>confdefs.h <<\_ACEOF 9318#define MISSING_HOWMANY 1 9319_ACEOF 9320 9321 9322cat >>confdefs.h <<\_ACEOF 9323#define MISSING_FD_MASK 1 9324_ACEOF 9325 9326 cat >>confdefs.h <<\_ACEOF 9327#define DISABLE_LASTLOG 1 9328_ACEOF 9329 9330 cat >>confdefs.h <<\_ACEOF 9331#define SSHD_ACQUIRES_CTTY 1 9332_ACEOF 9333 9334 9335cat >>confdefs.h <<\_ACEOF 9336#define BROKEN_SHADOW_EXPIRE 1 9337_ACEOF 9338 9339 enable_etc_default_login=no # has incompatible /etc/default/login 9340 case "$host" in 9341 *-*-nto-qnx6*) 9342 cat >>confdefs.h <<\_ACEOF 9343#define DISABLE_FD_PASSING 1 9344_ACEOF 9345 9346 ;; 9347 esac 9348 ;; 9349 9350*-*-ultrix*) 9351 9352cat >>confdefs.h <<\_ACEOF 9353#define BROKEN_GETGROUPS 1 9354_ACEOF 9355 9356 9357cat >>confdefs.h <<\_ACEOF 9358#define BROKEN_MMAP 1 9359_ACEOF 9360 9361 cat >>confdefs.h <<\_ACEOF 9362#define NEED_SETPGRP 1 9363_ACEOF 9364 9365 9366cat >>confdefs.h <<\_ACEOF 9367#define HAVE_SYS_SYSLOG_H 1 9368_ACEOF 9369 9370 ;; 9371 9372*-*-lynxos) 9373 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" 9374 cat >>confdefs.h <<\_ACEOF 9375#define MISSING_HOWMANY 1 9376_ACEOF 9377 9378 9379cat >>confdefs.h <<\_ACEOF 9380#define BROKEN_SETVBUF 1 9381_ACEOF 9382 9383 ;; 9384esac 9385 9386{ echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5 9387echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; } 9388if test "$cross_compiling" = yes; then 9389 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5 9390echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} 9391 9392else 9393 cat >conftest.$ac_ext <<_ACEOF 9394/* confdefs.h. */ 9395_ACEOF 9396cat confdefs.h >>conftest.$ac_ext 9397cat >>conftest.$ac_ext <<_ACEOF 9398/* end confdefs.h. */ 9399 9400#include <stdio.h> 9401int main(){exit(0);} 9402 9403_ACEOF 9404rm -f conftest$ac_exeext 9405if { (ac_try="$ac_link" 9406case "(($ac_try" in 9407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9408 *) ac_try_echo=$ac_try;; 9409esac 9410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9411 (eval "$ac_link") 2>&5 9412 ac_status=$? 9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9415 { (case "(($ac_try" in 9416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9417 *) ac_try_echo=$ac_try;; 9418esac 9419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9420 (eval "$ac_try") 2>&5 9421 ac_status=$? 9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9423 (exit $ac_status); }; }; then 9424 { echo "$as_me:$LINENO: result: yes" >&5 9425echo "${ECHO_T}yes" >&6; } 9426else 9427 echo "$as_me: program exited with status $ac_status" >&5 9428echo "$as_me: failed program was:" >&5 9429sed 's/^/| /' conftest.$ac_ext >&5 9430 9431( exit $ac_status ) 9432 9433 { echo "$as_me:$LINENO: result: no" >&5 9434echo "${ECHO_T}no" >&6; } 9435 { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5 9436echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;} 9437 { (exit 1); exit 1; }; } 9438 9439fi 9440rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9441fi 9442 9443 9444 9445# Checks for libraries. 9446{ echo "$as_me:$LINENO: checking for yp_match" >&5 9447echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; } 9448if test "${ac_cv_func_yp_match+set}" = set; then 9449 echo $ECHO_N "(cached) $ECHO_C" >&6 9450else 9451 cat >conftest.$ac_ext <<_ACEOF 9452/* confdefs.h. */ 9453_ACEOF 9454cat confdefs.h >>conftest.$ac_ext 9455cat >>conftest.$ac_ext <<_ACEOF 9456/* end confdefs.h. */ 9457/* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match. 9458 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9459#define yp_match innocuous_yp_match 9460 9461/* System header to define __stub macros and hopefully few prototypes, 9462 which can conflict with char yp_match (); below. 9463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9464 <limits.h> exists even on freestanding compilers. */ 9465 9466#ifdef __STDC__ 9467# include <limits.h> 9468#else 9469# include <assert.h> 9470#endif 9471 9472#undef yp_match 9473 9474/* Override any GCC internal prototype to avoid an error. 9475 Use char because int might match the return type of a GCC 9476 builtin and then its argument prototype would still apply. */ 9477#ifdef __cplusplus 9478extern "C" 9479#endif 9480char yp_match (); 9481/* The GNU C library defines this for functions which it implements 9482 to always fail with ENOSYS. Some functions are actually named 9483 something starting with __ and the normal name is an alias. */ 9484#if defined __stub_yp_match || defined __stub___yp_match 9485choke me 9486#endif 9487 9488int 9489main () 9490{ 9491return yp_match (); 9492 ; 9493 return 0; 9494} 9495_ACEOF 9496rm -f conftest.$ac_objext conftest$ac_exeext 9497if { (ac_try="$ac_link" 9498case "(($ac_try" in 9499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9500 *) ac_try_echo=$ac_try;; 9501esac 9502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9503 (eval "$ac_link") 2>conftest.er1 9504 ac_status=$? 9505 grep -v '^ *+' conftest.er1 >conftest.err 9506 rm -f conftest.er1 9507 cat conftest.err >&5 9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9509 (exit $ac_status); } && { 9510 test -z "$ac_c_werror_flag" || 9511 test ! -s conftest.err 9512 } && test -s conftest$ac_exeext && 9513 $as_test_x conftest$ac_exeext; then 9514 ac_cv_func_yp_match=yes 9515else 9516 echo "$as_me: failed program was:" >&5 9517sed 's/^/| /' conftest.$ac_ext >&5 9518 9519 ac_cv_func_yp_match=no 9520fi 9521 9522rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9523 conftest$ac_exeext conftest.$ac_ext 9524fi 9525{ echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5 9526echo "${ECHO_T}$ac_cv_func_yp_match" >&6; } 9527if test $ac_cv_func_yp_match = yes; then 9528 : 9529else 9530 9531{ echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5 9532echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; } 9533if test "${ac_cv_lib_nsl_yp_match+set}" = set; then 9534 echo $ECHO_N "(cached) $ECHO_C" >&6 9535else 9536 ac_check_lib_save_LIBS=$LIBS 9537LIBS="-lnsl $LIBS" 9538cat >conftest.$ac_ext <<_ACEOF 9539/* confdefs.h. */ 9540_ACEOF 9541cat confdefs.h >>conftest.$ac_ext 9542cat >>conftest.$ac_ext <<_ACEOF 9543/* end confdefs.h. */ 9544 9545/* Override any GCC internal prototype to avoid an error. 9546 Use char because int might match the return type of a GCC 9547 builtin and then its argument prototype would still apply. */ 9548#ifdef __cplusplus 9549extern "C" 9550#endif 9551char yp_match (); 9552int 9553main () 9554{ 9555return yp_match (); 9556 ; 9557 return 0; 9558} 9559_ACEOF 9560rm -f conftest.$ac_objext conftest$ac_exeext 9561if { (ac_try="$ac_link" 9562case "(($ac_try" in 9563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9564 *) ac_try_echo=$ac_try;; 9565esac 9566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9567 (eval "$ac_link") 2>conftest.er1 9568 ac_status=$? 9569 grep -v '^ *+' conftest.er1 >conftest.err 9570 rm -f conftest.er1 9571 cat conftest.err >&5 9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9573 (exit $ac_status); } && { 9574 test -z "$ac_c_werror_flag" || 9575 test ! -s conftest.err 9576 } && test -s conftest$ac_exeext && 9577 $as_test_x conftest$ac_exeext; then 9578 ac_cv_lib_nsl_yp_match=yes 9579else 9580 echo "$as_me: failed program was:" >&5 9581sed 's/^/| /' conftest.$ac_ext >&5 9582 9583 ac_cv_lib_nsl_yp_match=no 9584fi 9585 9586rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9587 conftest$ac_exeext conftest.$ac_ext 9588LIBS=$ac_check_lib_save_LIBS 9589fi 9590{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5 9591echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; } 9592if test $ac_cv_lib_nsl_yp_match = yes; then 9593 cat >>confdefs.h <<_ACEOF 9594#define HAVE_LIBNSL 1 9595_ACEOF 9596 9597 LIBS="-lnsl $LIBS" 9598 9599fi 9600 9601fi 9602 9603{ echo "$as_me:$LINENO: checking for setsockopt" >&5 9604echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 9605if test "${ac_cv_func_setsockopt+set}" = set; then 9606 echo $ECHO_N "(cached) $ECHO_C" >&6 9607else 9608 cat >conftest.$ac_ext <<_ACEOF 9609/* confdefs.h. */ 9610_ACEOF 9611cat confdefs.h >>conftest.$ac_ext 9612cat >>conftest.$ac_ext <<_ACEOF 9613/* end confdefs.h. */ 9614/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 9615 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9616#define setsockopt innocuous_setsockopt 9617 9618/* System header to define __stub macros and hopefully few prototypes, 9619 which can conflict with char setsockopt (); below. 9620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9621 <limits.h> exists even on freestanding compilers. */ 9622 9623#ifdef __STDC__ 9624# include <limits.h> 9625#else 9626# include <assert.h> 9627#endif 9628 9629#undef setsockopt 9630 9631/* Override any GCC internal prototype to avoid an error. 9632 Use char because int might match the return type of a GCC 9633 builtin and then its argument prototype would still apply. */ 9634#ifdef __cplusplus 9635extern "C" 9636#endif 9637char setsockopt (); 9638/* The GNU C library defines this for functions which it implements 9639 to always fail with ENOSYS. Some functions are actually named 9640 something starting with __ and the normal name is an alias. */ 9641#if defined __stub_setsockopt || defined __stub___setsockopt 9642choke me 9643#endif 9644 9645int 9646main () 9647{ 9648return setsockopt (); 9649 ; 9650 return 0; 9651} 9652_ACEOF 9653rm -f conftest.$ac_objext conftest$ac_exeext 9654if { (ac_try="$ac_link" 9655case "(($ac_try" in 9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9657 *) ac_try_echo=$ac_try;; 9658esac 9659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9660 (eval "$ac_link") 2>conftest.er1 9661 ac_status=$? 9662 grep -v '^ *+' conftest.er1 >conftest.err 9663 rm -f conftest.er1 9664 cat conftest.err >&5 9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9666 (exit $ac_status); } && { 9667 test -z "$ac_c_werror_flag" || 9668 test ! -s conftest.err 9669 } && test -s conftest$ac_exeext && 9670 $as_test_x conftest$ac_exeext; then 9671 ac_cv_func_setsockopt=yes 9672else 9673 echo "$as_me: failed program was:" >&5 9674sed 's/^/| /' conftest.$ac_ext >&5 9675 9676 ac_cv_func_setsockopt=no 9677fi 9678 9679rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9680 conftest$ac_exeext conftest.$ac_ext 9681fi 9682{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 9683echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 9684if test $ac_cv_func_setsockopt = yes; then 9685 : 9686else 9687 9688{ echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 9689echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 9690if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 9691 echo $ECHO_N "(cached) $ECHO_C" >&6 9692else 9693 ac_check_lib_save_LIBS=$LIBS 9694LIBS="-lsocket $LIBS" 9695cat >conftest.$ac_ext <<_ACEOF 9696/* confdefs.h. */ 9697_ACEOF 9698cat confdefs.h >>conftest.$ac_ext 9699cat >>conftest.$ac_ext <<_ACEOF 9700/* end confdefs.h. */ 9701 9702/* Override any GCC internal prototype to avoid an error. 9703 Use char because int might match the return type of a GCC 9704 builtin and then its argument prototype would still apply. */ 9705#ifdef __cplusplus 9706extern "C" 9707#endif 9708char setsockopt (); 9709int 9710main () 9711{ 9712return setsockopt (); 9713 ; 9714 return 0; 9715} 9716_ACEOF 9717rm -f conftest.$ac_objext conftest$ac_exeext 9718if { (ac_try="$ac_link" 9719case "(($ac_try" in 9720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9721 *) ac_try_echo=$ac_try;; 9722esac 9723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9724 (eval "$ac_link") 2>conftest.er1 9725 ac_status=$? 9726 grep -v '^ *+' conftest.er1 >conftest.err 9727 rm -f conftest.er1 9728 cat conftest.err >&5 9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9730 (exit $ac_status); } && { 9731 test -z "$ac_c_werror_flag" || 9732 test ! -s conftest.err 9733 } && test -s conftest$ac_exeext && 9734 $as_test_x conftest$ac_exeext; then 9735 ac_cv_lib_socket_setsockopt=yes 9736else 9737 echo "$as_me: failed program was:" >&5 9738sed 's/^/| /' conftest.$ac_ext >&5 9739 9740 ac_cv_lib_socket_setsockopt=no 9741fi 9742 9743rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9744 conftest$ac_exeext conftest.$ac_ext 9745LIBS=$ac_check_lib_save_LIBS 9746fi 9747{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 9748echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 9749if test $ac_cv_lib_socket_setsockopt = yes; then 9750 cat >>confdefs.h <<_ACEOF 9751#define HAVE_LIBSOCKET 1 9752_ACEOF 9753 9754 LIBS="-lsocket $LIBS" 9755 9756fi 9757 9758fi 9759 9760 9761 9762for ac_func in dirname 9763do 9764as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9765{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9766echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9767if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9768 echo $ECHO_N "(cached) $ECHO_C" >&6 9769else 9770 cat >conftest.$ac_ext <<_ACEOF 9771/* confdefs.h. */ 9772_ACEOF 9773cat confdefs.h >>conftest.$ac_ext 9774cat >>conftest.$ac_ext <<_ACEOF 9775/* end confdefs.h. */ 9776/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9777 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9778#define $ac_func innocuous_$ac_func 9779 9780/* System header to define __stub macros and hopefully few prototypes, 9781 which can conflict with char $ac_func (); below. 9782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9783 <limits.h> exists even on freestanding compilers. */ 9784 9785#ifdef __STDC__ 9786# include <limits.h> 9787#else 9788# include <assert.h> 9789#endif 9790 9791#undef $ac_func 9792 9793/* Override any GCC internal prototype to avoid an error. 9794 Use char because int might match the return type of a GCC 9795 builtin and then its argument prototype would still apply. */ 9796#ifdef __cplusplus 9797extern "C" 9798#endif 9799char $ac_func (); 9800/* The GNU C library defines this for functions which it implements 9801 to always fail with ENOSYS. Some functions are actually named 9802 something starting with __ and the normal name is an alias. */ 9803#if defined __stub_$ac_func || defined __stub___$ac_func 9804choke me 9805#endif 9806 9807int 9808main () 9809{ 9810return $ac_func (); 9811 ; 9812 return 0; 9813} 9814_ACEOF 9815rm -f conftest.$ac_objext conftest$ac_exeext 9816if { (ac_try="$ac_link" 9817case "(($ac_try" in 9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9819 *) ac_try_echo=$ac_try;; 9820esac 9821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9822 (eval "$ac_link") 2>conftest.er1 9823 ac_status=$? 9824 grep -v '^ *+' conftest.er1 >conftest.err 9825 rm -f conftest.er1 9826 cat conftest.err >&5 9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9828 (exit $ac_status); } && { 9829 test -z "$ac_c_werror_flag" || 9830 test ! -s conftest.err 9831 } && test -s conftest$ac_exeext && 9832 $as_test_x conftest$ac_exeext; then 9833 eval "$as_ac_var=yes" 9834else 9835 echo "$as_me: failed program was:" >&5 9836sed 's/^/| /' conftest.$ac_ext >&5 9837 9838 eval "$as_ac_var=no" 9839fi 9840 9841rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9842 conftest$ac_exeext conftest.$ac_ext 9843fi 9844ac_res=`eval echo '${'$as_ac_var'}'` 9845 { echo "$as_me:$LINENO: result: $ac_res" >&5 9846echo "${ECHO_T}$ac_res" >&6; } 9847if test `eval echo '${'$as_ac_var'}'` = yes; then 9848 cat >>confdefs.h <<_ACEOF 9849#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9850_ACEOF 9851 9852for ac_header in libgen.h 9853do 9854as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9856 { echo "$as_me:$LINENO: checking for $ac_header" >&5 9857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 9858if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9859 echo $ECHO_N "(cached) $ECHO_C" >&6 9860fi 9861ac_res=`eval echo '${'$as_ac_Header'}'` 9862 { echo "$as_me:$LINENO: result: $ac_res" >&5 9863echo "${ECHO_T}$ac_res" >&6; } 9864else 9865 # Is the header compilable? 9866{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 9867echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 9868cat >conftest.$ac_ext <<_ACEOF 9869/* confdefs.h. */ 9870_ACEOF 9871cat confdefs.h >>conftest.$ac_ext 9872cat >>conftest.$ac_ext <<_ACEOF 9873/* end confdefs.h. */ 9874$ac_includes_default 9875#include <$ac_header> 9876_ACEOF 9877rm -f conftest.$ac_objext 9878if { (ac_try="$ac_compile" 9879case "(($ac_try" in 9880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9881 *) ac_try_echo=$ac_try;; 9882esac 9883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9884 (eval "$ac_compile") 2>conftest.er1 9885 ac_status=$? 9886 grep -v '^ *+' conftest.er1 >conftest.err 9887 rm -f conftest.er1 9888 cat conftest.err >&5 9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9890 (exit $ac_status); } && { 9891 test -z "$ac_c_werror_flag" || 9892 test ! -s conftest.err 9893 } && test -s conftest.$ac_objext; then 9894 ac_header_compiler=yes 9895else 9896 echo "$as_me: failed program was:" >&5 9897sed 's/^/| /' conftest.$ac_ext >&5 9898 9899 ac_header_compiler=no 9900fi 9901 9902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9903{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9904echo "${ECHO_T}$ac_header_compiler" >&6; } 9905 9906# Is the header present? 9907{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 9908echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 9909cat >conftest.$ac_ext <<_ACEOF 9910/* confdefs.h. */ 9911_ACEOF 9912cat confdefs.h >>conftest.$ac_ext 9913cat >>conftest.$ac_ext <<_ACEOF 9914/* end confdefs.h. */ 9915#include <$ac_header> 9916_ACEOF 9917if { (ac_try="$ac_cpp conftest.$ac_ext" 9918case "(($ac_try" in 9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9920 *) ac_try_echo=$ac_try;; 9921esac 9922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 9924 ac_status=$? 9925 grep -v '^ *+' conftest.er1 >conftest.err 9926 rm -f conftest.er1 9927 cat conftest.err >&5 9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9929 (exit $ac_status); } >/dev/null && { 9930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 9931 test ! -s conftest.err 9932 }; then 9933 ac_header_preproc=yes 9934else 9935 echo "$as_me: failed program was:" >&5 9936sed 's/^/| /' conftest.$ac_ext >&5 9937 9938 ac_header_preproc=no 9939fi 9940 9941rm -f conftest.err conftest.$ac_ext 9942{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9943echo "${ECHO_T}$ac_header_preproc" >&6; } 9944 9945# So? What about this header? 9946case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9947 yes:no: ) 9948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9949echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9951echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9952 ac_header_preproc=yes 9953 ;; 9954 no:yes:* ) 9955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9956echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9958echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9960echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9962echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9964echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9966echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9967 ( cat <<\_ASBOX 9968## ------------------------------------------- ## 9969## Report this to openssh-unix-dev@mindrot.org ## 9970## ------------------------------------------- ## 9971_ASBOX 9972 ) | sed "s/^/$as_me: WARNING: /" >&2 9973 ;; 9974esac 9975{ echo "$as_me:$LINENO: checking for $ac_header" >&5 9976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 9977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9978 echo $ECHO_N "(cached) $ECHO_C" >&6 9979else 9980 eval "$as_ac_Header=\$ac_header_preproc" 9981fi 9982ac_res=`eval echo '${'$as_ac_Header'}'` 9983 { echo "$as_me:$LINENO: result: $ac_res" >&5 9984echo "${ECHO_T}$ac_res" >&6; } 9985 9986fi 9987if test `eval echo '${'$as_ac_Header'}'` = yes; then 9988 cat >>confdefs.h <<_ACEOF 9989#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9990_ACEOF 9991 9992fi 9993 9994done 9995 9996else 9997 9998 { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5 9999echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; } 10000if test "${ac_cv_lib_gen_dirname+set}" = set; then 10001 echo $ECHO_N "(cached) $ECHO_C" >&6 10002else 10003 ac_check_lib_save_LIBS=$LIBS 10004LIBS="-lgen $LIBS" 10005cat >conftest.$ac_ext <<_ACEOF 10006/* confdefs.h. */ 10007_ACEOF 10008cat confdefs.h >>conftest.$ac_ext 10009cat >>conftest.$ac_ext <<_ACEOF 10010/* end confdefs.h. */ 10011 10012/* Override any GCC internal prototype to avoid an error. 10013 Use char because int might match the return type of a GCC 10014 builtin and then its argument prototype would still apply. */ 10015#ifdef __cplusplus 10016extern "C" 10017#endif 10018char dirname (); 10019int 10020main () 10021{ 10022return dirname (); 10023 ; 10024 return 0; 10025} 10026_ACEOF 10027rm -f conftest.$ac_objext conftest$ac_exeext 10028if { (ac_try="$ac_link" 10029case "(($ac_try" in 10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10031 *) ac_try_echo=$ac_try;; 10032esac 10033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10034 (eval "$ac_link") 2>conftest.er1 10035 ac_status=$? 10036 grep -v '^ *+' conftest.er1 >conftest.err 10037 rm -f conftest.er1 10038 cat conftest.err >&5 10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10040 (exit $ac_status); } && { 10041 test -z "$ac_c_werror_flag" || 10042 test ! -s conftest.err 10043 } && test -s conftest$ac_exeext && 10044 $as_test_x conftest$ac_exeext; then 10045 ac_cv_lib_gen_dirname=yes 10046else 10047 echo "$as_me: failed program was:" >&5 10048sed 's/^/| /' conftest.$ac_ext >&5 10049 10050 ac_cv_lib_gen_dirname=no 10051fi 10052 10053rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10054 conftest$ac_exeext conftest.$ac_ext 10055LIBS=$ac_check_lib_save_LIBS 10056fi 10057{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5 10058echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; } 10059if test $ac_cv_lib_gen_dirname = yes; then 10060 10061 { echo "$as_me:$LINENO: checking for broken dirname" >&5 10062echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; } 10063if test "${ac_cv_have_broken_dirname+set}" = set; then 10064 echo $ECHO_N "(cached) $ECHO_C" >&6 10065else 10066 10067 save_LIBS="$LIBS" 10068 LIBS="$LIBS -lgen" 10069 if test "$cross_compiling" = yes; then 10070 ac_cv_have_broken_dirname="no" 10071else 10072 cat >conftest.$ac_ext <<_ACEOF 10073/* confdefs.h. */ 10074_ACEOF 10075cat confdefs.h >>conftest.$ac_ext 10076cat >>conftest.$ac_ext <<_ACEOF 10077/* end confdefs.h. */ 10078 10079#include <libgen.h> 10080#include <string.h> 10081 10082int main(int argc, char **argv) { 10083 char *s, buf[32]; 10084 10085 strncpy(buf,"/etc", 32); 10086 s = dirname(buf); 10087 if (!s || strncmp(s, "/", 32) != 0) { 10088 exit(1); 10089 } else { 10090 exit(0); 10091 } 10092} 10093 10094_ACEOF 10095rm -f conftest$ac_exeext 10096if { (ac_try="$ac_link" 10097case "(($ac_try" in 10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10099 *) ac_try_echo=$ac_try;; 10100esac 10101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10102 (eval "$ac_link") 2>&5 10103 ac_status=$? 10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10106 { (case "(($ac_try" in 10107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10108 *) ac_try_echo=$ac_try;; 10109esac 10110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10111 (eval "$ac_try") 2>&5 10112 ac_status=$? 10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10114 (exit $ac_status); }; }; then 10115 ac_cv_have_broken_dirname="no" 10116else 10117 echo "$as_me: program exited with status $ac_status" >&5 10118echo "$as_me: failed program was:" >&5 10119sed 's/^/| /' conftest.$ac_ext >&5 10120 10121( exit $ac_status ) 10122 ac_cv_have_broken_dirname="yes" 10123fi 10124rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10125fi 10126 10127 10128 LIBS="$save_LIBS" 10129 10130fi 10131{ echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5 10132echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; } 10133 if test "x$ac_cv_have_broken_dirname" = "xno" ; then 10134 LIBS="$LIBS -lgen" 10135 cat >>confdefs.h <<\_ACEOF 10136#define HAVE_DIRNAME 1 10137_ACEOF 10138 10139 10140for ac_header in libgen.h 10141do 10142as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10143if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10144 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10146if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10147 echo $ECHO_N "(cached) $ECHO_C" >&6 10148fi 10149ac_res=`eval echo '${'$as_ac_Header'}'` 10150 { echo "$as_me:$LINENO: result: $ac_res" >&5 10151echo "${ECHO_T}$ac_res" >&6; } 10152else 10153 # Is the header compilable? 10154{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 10155echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 10156cat >conftest.$ac_ext <<_ACEOF 10157/* confdefs.h. */ 10158_ACEOF 10159cat confdefs.h >>conftest.$ac_ext 10160cat >>conftest.$ac_ext <<_ACEOF 10161/* end confdefs.h. */ 10162$ac_includes_default 10163#include <$ac_header> 10164_ACEOF 10165rm -f conftest.$ac_objext 10166if { (ac_try="$ac_compile" 10167case "(($ac_try" in 10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10169 *) ac_try_echo=$ac_try;; 10170esac 10171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10172 (eval "$ac_compile") 2>conftest.er1 10173 ac_status=$? 10174 grep -v '^ *+' conftest.er1 >conftest.err 10175 rm -f conftest.er1 10176 cat conftest.err >&5 10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10178 (exit $ac_status); } && { 10179 test -z "$ac_c_werror_flag" || 10180 test ! -s conftest.err 10181 } && test -s conftest.$ac_objext; then 10182 ac_header_compiler=yes 10183else 10184 echo "$as_me: failed program was:" >&5 10185sed 's/^/| /' conftest.$ac_ext >&5 10186 10187 ac_header_compiler=no 10188fi 10189 10190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10191{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10192echo "${ECHO_T}$ac_header_compiler" >&6; } 10193 10194# Is the header present? 10195{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 10196echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 10197cat >conftest.$ac_ext <<_ACEOF 10198/* confdefs.h. */ 10199_ACEOF 10200cat confdefs.h >>conftest.$ac_ext 10201cat >>conftest.$ac_ext <<_ACEOF 10202/* end confdefs.h. */ 10203#include <$ac_header> 10204_ACEOF 10205if { (ac_try="$ac_cpp conftest.$ac_ext" 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_cpp conftest.$ac_ext") 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); } >/dev/null && { 10218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10219 test ! -s conftest.err 10220 }; then 10221 ac_header_preproc=yes 10222else 10223 echo "$as_me: failed program was:" >&5 10224sed 's/^/| /' conftest.$ac_ext >&5 10225 10226 ac_header_preproc=no 10227fi 10228 10229rm -f conftest.err conftest.$ac_ext 10230{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10231echo "${ECHO_T}$ac_header_preproc" >&6; } 10232 10233# So? What about this header? 10234case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10235 yes:no: ) 10236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10237echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10239echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10240 ac_header_preproc=yes 10241 ;; 10242 no:yes:* ) 10243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10244echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10246echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10248echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10250echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10252echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10254echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10255 ( cat <<\_ASBOX 10256## ------------------------------------------- ## 10257## Report this to openssh-unix-dev@mindrot.org ## 10258## ------------------------------------------- ## 10259_ASBOX 10260 ) | sed "s/^/$as_me: WARNING: /" >&2 10261 ;; 10262esac 10263{ echo "$as_me:$LINENO: checking for $ac_header" >&5 10264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10265if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10266 echo $ECHO_N "(cached) $ECHO_C" >&6 10267else 10268 eval "$as_ac_Header=\$ac_header_preproc" 10269fi 10270ac_res=`eval echo '${'$as_ac_Header'}'` 10271 { echo "$as_me:$LINENO: result: $ac_res" >&5 10272echo "${ECHO_T}$ac_res" >&6; } 10273 10274fi 10275if test `eval echo '${'$as_ac_Header'}'` = yes; then 10276 cat >>confdefs.h <<_ACEOF 10277#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10278_ACEOF 10279 10280fi 10281 10282done 10283 10284 fi 10285 10286fi 10287 10288 10289fi 10290done 10291 10292 10293{ echo "$as_me:$LINENO: checking for getspnam" >&5 10294echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; } 10295if test "${ac_cv_func_getspnam+set}" = set; then 10296 echo $ECHO_N "(cached) $ECHO_C" >&6 10297else 10298 cat >conftest.$ac_ext <<_ACEOF 10299/* confdefs.h. */ 10300_ACEOF 10301cat confdefs.h >>conftest.$ac_ext 10302cat >>conftest.$ac_ext <<_ACEOF 10303/* end confdefs.h. */ 10304/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam. 10305 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10306#define getspnam innocuous_getspnam 10307 10308/* System header to define __stub macros and hopefully few prototypes, 10309 which can conflict with char getspnam (); below. 10310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10311 <limits.h> exists even on freestanding compilers. */ 10312 10313#ifdef __STDC__ 10314# include <limits.h> 10315#else 10316# include <assert.h> 10317#endif 10318 10319#undef getspnam 10320 10321/* Override any GCC internal prototype to avoid an error. 10322 Use char because int might match the return type of a GCC 10323 builtin and then its argument prototype would still apply. */ 10324#ifdef __cplusplus 10325extern "C" 10326#endif 10327char getspnam (); 10328/* The GNU C library defines this for functions which it implements 10329 to always fail with ENOSYS. Some functions are actually named 10330 something starting with __ and the normal name is an alias. */ 10331#if defined __stub_getspnam || defined __stub___getspnam 10332choke me 10333#endif 10334 10335int 10336main () 10337{ 10338return getspnam (); 10339 ; 10340 return 0; 10341} 10342_ACEOF 10343rm -f conftest.$ac_objext conftest$ac_exeext 10344if { (ac_try="$ac_link" 10345case "(($ac_try" in 10346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10347 *) ac_try_echo=$ac_try;; 10348esac 10349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10350 (eval "$ac_link") 2>conftest.er1 10351 ac_status=$? 10352 grep -v '^ *+' conftest.er1 >conftest.err 10353 rm -f conftest.er1 10354 cat conftest.err >&5 10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10356 (exit $ac_status); } && { 10357 test -z "$ac_c_werror_flag" || 10358 test ! -s conftest.err 10359 } && test -s conftest$ac_exeext && 10360 $as_test_x conftest$ac_exeext; then 10361 ac_cv_func_getspnam=yes 10362else 10363 echo "$as_me: failed program was:" >&5 10364sed 's/^/| /' conftest.$ac_ext >&5 10365 10366 ac_cv_func_getspnam=no 10367fi 10368 10369rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10370 conftest$ac_exeext conftest.$ac_ext 10371fi 10372{ echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5 10373echo "${ECHO_T}$ac_cv_func_getspnam" >&6; } 10374if test $ac_cv_func_getspnam = yes; then 10375 : 10376else 10377 { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5 10378echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; } 10379if test "${ac_cv_lib_gen_getspnam+set}" = set; then 10380 echo $ECHO_N "(cached) $ECHO_C" >&6 10381else 10382 ac_check_lib_save_LIBS=$LIBS 10383LIBS="-lgen $LIBS" 10384cat >conftest.$ac_ext <<_ACEOF 10385/* confdefs.h. */ 10386_ACEOF 10387cat confdefs.h >>conftest.$ac_ext 10388cat >>conftest.$ac_ext <<_ACEOF 10389/* end confdefs.h. */ 10390 10391/* Override any GCC internal prototype to avoid an error. 10392 Use char because int might match the return type of a GCC 10393 builtin and then its argument prototype would still apply. */ 10394#ifdef __cplusplus 10395extern "C" 10396#endif 10397char getspnam (); 10398int 10399main () 10400{ 10401return getspnam (); 10402 ; 10403 return 0; 10404} 10405_ACEOF 10406rm -f conftest.$ac_objext conftest$ac_exeext 10407if { (ac_try="$ac_link" 10408case "(($ac_try" in 10409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10410 *) ac_try_echo=$ac_try;; 10411esac 10412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10413 (eval "$ac_link") 2>conftest.er1 10414 ac_status=$? 10415 grep -v '^ *+' conftest.er1 >conftest.err 10416 rm -f conftest.er1 10417 cat conftest.err >&5 10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10419 (exit $ac_status); } && { 10420 test -z "$ac_c_werror_flag" || 10421 test ! -s conftest.err 10422 } && test -s conftest$ac_exeext && 10423 $as_test_x conftest$ac_exeext; then 10424 ac_cv_lib_gen_getspnam=yes 10425else 10426 echo "$as_me: failed program was:" >&5 10427sed 's/^/| /' conftest.$ac_ext >&5 10428 10429 ac_cv_lib_gen_getspnam=no 10430fi 10431 10432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10433 conftest$ac_exeext conftest.$ac_ext 10434LIBS=$ac_check_lib_save_LIBS 10435fi 10436{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5 10437echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; } 10438if test $ac_cv_lib_gen_getspnam = yes; then 10439 LIBS="$LIBS -lgen" 10440fi 10441 10442fi 10443 10444{ echo "$as_me:$LINENO: checking for library containing basename" >&5 10445echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; } 10446if test "${ac_cv_search_basename+set}" = set; then 10447 echo $ECHO_N "(cached) $ECHO_C" >&6 10448else 10449 ac_func_search_save_LIBS=$LIBS 10450cat >conftest.$ac_ext <<_ACEOF 10451/* confdefs.h. */ 10452_ACEOF 10453cat confdefs.h >>conftest.$ac_ext 10454cat >>conftest.$ac_ext <<_ACEOF 10455/* end confdefs.h. */ 10456 10457/* Override any GCC internal prototype to avoid an error. 10458 Use char because int might match the return type of a GCC 10459 builtin and then its argument prototype would still apply. */ 10460#ifdef __cplusplus 10461extern "C" 10462#endif 10463char basename (); 10464int 10465main () 10466{ 10467return basename (); 10468 ; 10469 return 0; 10470} 10471_ACEOF 10472for ac_lib in '' gen; do 10473 if test -z "$ac_lib"; then 10474 ac_res="none required" 10475 else 10476 ac_res=-l$ac_lib 10477 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10478 fi 10479 rm -f conftest.$ac_objext conftest$ac_exeext 10480if { (ac_try="$ac_link" 10481case "(($ac_try" in 10482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10483 *) ac_try_echo=$ac_try;; 10484esac 10485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10486 (eval "$ac_link") 2>conftest.er1 10487 ac_status=$? 10488 grep -v '^ *+' conftest.er1 >conftest.err 10489 rm -f conftest.er1 10490 cat conftest.err >&5 10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10492 (exit $ac_status); } && { 10493 test -z "$ac_c_werror_flag" || 10494 test ! -s conftest.err 10495 } && test -s conftest$ac_exeext && 10496 $as_test_x conftest$ac_exeext; then 10497 ac_cv_search_basename=$ac_res 10498else 10499 echo "$as_me: failed program was:" >&5 10500sed 's/^/| /' conftest.$ac_ext >&5 10501 10502 10503fi 10504 10505rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10506 conftest$ac_exeext 10507 if test "${ac_cv_search_basename+set}" = set; then 10508 break 10509fi 10510done 10511if test "${ac_cv_search_basename+set}" = set; then 10512 : 10513else 10514 ac_cv_search_basename=no 10515fi 10516rm conftest.$ac_ext 10517LIBS=$ac_func_search_save_LIBS 10518fi 10519{ echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5 10520echo "${ECHO_T}$ac_cv_search_basename" >&6; } 10521ac_res=$ac_cv_search_basename 10522if test "$ac_res" != no; then 10523 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10524 10525cat >>confdefs.h <<\_ACEOF 10526#define HAVE_BASENAME 1 10527_ACEOF 10528 10529fi 10530 10531 10532 10533# Check whether --with-zlib was given. 10534if test "${with_zlib+set}" = set; then 10535 withval=$with_zlib; if test "x$withval" = "xno" ; then 10536 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5 10537echo "$as_me: error: *** zlib is required ***" >&2;} 10538 { (exit 1); exit 1; }; } 10539 elif test "x$withval" != "xyes"; then 10540 if test -d "$withval/lib"; then 10541 if test -n "${need_dash_r}"; then 10542 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" 10543 else 10544 LDFLAGS="-L${withval}/lib ${LDFLAGS}" 10545 fi 10546 else 10547 if test -n "${need_dash_r}"; then 10548 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" 10549 else 10550 LDFLAGS="-L${withval} ${LDFLAGS}" 10551 fi 10552 fi 10553 if test -d "$withval/include"; then 10554 CPPFLAGS="-I${withval}/include ${CPPFLAGS}" 10555 else 10556 CPPFLAGS="-I${withval} ${CPPFLAGS}" 10557 fi 10558 fi 10559 10560fi 10561 10562 10563 10564{ echo "$as_me:$LINENO: checking for deflate in -lz" >&5 10565echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; } 10566if test "${ac_cv_lib_z_deflate+set}" = set; then 10567 echo $ECHO_N "(cached) $ECHO_C" >&6 10568else 10569 ac_check_lib_save_LIBS=$LIBS 10570LIBS="-lz $LIBS" 10571cat >conftest.$ac_ext <<_ACEOF 10572/* confdefs.h. */ 10573_ACEOF 10574cat confdefs.h >>conftest.$ac_ext 10575cat >>conftest.$ac_ext <<_ACEOF 10576/* end confdefs.h. */ 10577 10578/* Override any GCC internal prototype to avoid an error. 10579 Use char because int might match the return type of a GCC 10580 builtin and then its argument prototype would still apply. */ 10581#ifdef __cplusplus 10582extern "C" 10583#endif 10584char deflate (); 10585int 10586main () 10587{ 10588return deflate (); 10589 ; 10590 return 0; 10591} 10592_ACEOF 10593rm -f conftest.$ac_objext conftest$ac_exeext 10594if { (ac_try="$ac_link" 10595case "(($ac_try" in 10596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10597 *) ac_try_echo=$ac_try;; 10598esac 10599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10600 (eval "$ac_link") 2>conftest.er1 10601 ac_status=$? 10602 grep -v '^ *+' conftest.er1 >conftest.err 10603 rm -f conftest.er1 10604 cat conftest.err >&5 10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10606 (exit $ac_status); } && { 10607 test -z "$ac_c_werror_flag" || 10608 test ! -s conftest.err 10609 } && test -s conftest$ac_exeext && 10610 $as_test_x conftest$ac_exeext; then 10611 ac_cv_lib_z_deflate=yes 10612else 10613 echo "$as_me: failed program was:" >&5 10614sed 's/^/| /' conftest.$ac_ext >&5 10615 10616 ac_cv_lib_z_deflate=no 10617fi 10618 10619rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10620 conftest$ac_exeext conftest.$ac_ext 10621LIBS=$ac_check_lib_save_LIBS 10622fi 10623{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 10624echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; } 10625if test $ac_cv_lib_z_deflate = yes; then 10626 cat >>confdefs.h <<_ACEOF 10627#define HAVE_LIBZ 1 10628_ACEOF 10629 10630 LIBS="-lz $LIBS" 10631 10632else 10633 10634 saved_CPPFLAGS="$CPPFLAGS" 10635 saved_LDFLAGS="$LDFLAGS" 10636 save_LIBS="$LIBS" 10637 if test -n "${need_dash_r}"; then 10638 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" 10639 else 10640 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" 10641 fi 10642 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" 10643 LIBS="$LIBS -lz" 10644 cat >conftest.$ac_ext <<_ACEOF 10645/* confdefs.h. */ 10646_ACEOF 10647cat confdefs.h >>conftest.$ac_ext 10648cat >>conftest.$ac_ext <<_ACEOF 10649/* end confdefs.h. */ 10650 10651/* Override any GCC internal prototype to avoid an error. 10652 Use char because int might match the return type of a GCC 10653 builtin and then its argument prototype would still apply. */ 10654#ifdef __cplusplus 10655extern "C" 10656#endif 10657char deflate (); 10658int 10659main () 10660{ 10661return deflate (); 10662 ; 10663 return 0; 10664} 10665_ACEOF 10666rm -f conftest.$ac_objext conftest$ac_exeext 10667if { (ac_try="$ac_link" 10668case "(($ac_try" in 10669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10670 *) ac_try_echo=$ac_try;; 10671esac 10672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10673 (eval "$ac_link") 2>conftest.er1 10674 ac_status=$? 10675 grep -v '^ *+' conftest.er1 >conftest.err 10676 rm -f conftest.er1 10677 cat conftest.err >&5 10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10679 (exit $ac_status); } && { 10680 test -z "$ac_c_werror_flag" || 10681 test ! -s conftest.err 10682 } && test -s conftest$ac_exeext && 10683 $as_test_x conftest$ac_exeext; then 10684 cat >>confdefs.h <<\_ACEOF 10685#define HAVE_LIBZ 1 10686_ACEOF 10687 10688else 10689 echo "$as_me: failed program was:" >&5 10690sed 's/^/| /' conftest.$ac_ext >&5 10691 10692 10693 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5 10694echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} 10695 { (exit 1); exit 1; }; } 10696 10697 10698fi 10699 10700rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10701 conftest$ac_exeext conftest.$ac_ext 10702 10703 10704fi 10705 10706if test "${ac_cv_header_zlib_h+set}" = set; then 10707 { echo "$as_me:$LINENO: checking for zlib.h" >&5 10708echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } 10709if test "${ac_cv_header_zlib_h+set}" = set; then 10710 echo $ECHO_N "(cached) $ECHO_C" >&6 10711fi 10712{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 10713echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } 10714else 10715 # Is the header compilable? 10716{ echo "$as_me:$LINENO: checking zlib.h usability" >&5 10717echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } 10718cat >conftest.$ac_ext <<_ACEOF 10719/* confdefs.h. */ 10720_ACEOF 10721cat confdefs.h >>conftest.$ac_ext 10722cat >>conftest.$ac_ext <<_ACEOF 10723/* end confdefs.h. */ 10724$ac_includes_default 10725#include <zlib.h> 10726_ACEOF 10727rm -f conftest.$ac_objext 10728if { (ac_try="$ac_compile" 10729case "(($ac_try" in 10730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10731 *) ac_try_echo=$ac_try;; 10732esac 10733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10734 (eval "$ac_compile") 2>conftest.er1 10735 ac_status=$? 10736 grep -v '^ *+' conftest.er1 >conftest.err 10737 rm -f conftest.er1 10738 cat conftest.err >&5 10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10740 (exit $ac_status); } && { 10741 test -z "$ac_c_werror_flag" || 10742 test ! -s conftest.err 10743 } && test -s conftest.$ac_objext; then 10744 ac_header_compiler=yes 10745else 10746 echo "$as_me: failed program was:" >&5 10747sed 's/^/| /' conftest.$ac_ext >&5 10748 10749 ac_header_compiler=no 10750fi 10751 10752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10753{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10754echo "${ECHO_T}$ac_header_compiler" >&6; } 10755 10756# Is the header present? 10757{ echo "$as_me:$LINENO: checking zlib.h presence" >&5 10758echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } 10759cat >conftest.$ac_ext <<_ACEOF 10760/* confdefs.h. */ 10761_ACEOF 10762cat confdefs.h >>conftest.$ac_ext 10763cat >>conftest.$ac_ext <<_ACEOF 10764/* end confdefs.h. */ 10765#include <zlib.h> 10766_ACEOF 10767if { (ac_try="$ac_cpp conftest.$ac_ext" 10768case "(($ac_try" in 10769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10770 *) ac_try_echo=$ac_try;; 10771esac 10772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10774 ac_status=$? 10775 grep -v '^ *+' conftest.er1 >conftest.err 10776 rm -f conftest.er1 10777 cat conftest.err >&5 10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10779 (exit $ac_status); } >/dev/null && { 10780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10781 test ! -s conftest.err 10782 }; then 10783 ac_header_preproc=yes 10784else 10785 echo "$as_me: failed program was:" >&5 10786sed 's/^/| /' conftest.$ac_ext >&5 10787 10788 ac_header_preproc=no 10789fi 10790 10791rm -f conftest.err conftest.$ac_ext 10792{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10793echo "${ECHO_T}$ac_header_preproc" >&6; } 10794 10795# So? What about this header? 10796case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10797 yes:no: ) 10798 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 10799echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10800 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 10801echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} 10802 ac_header_preproc=yes 10803 ;; 10804 no:yes:* ) 10805 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 10806echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} 10807 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 10808echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} 10809 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 10810echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} 10811 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 10812echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 10813 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 10814echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} 10815 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 10816echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} 10817 ( cat <<\_ASBOX 10818## ------------------------------------------- ## 10819## Report this to openssh-unix-dev@mindrot.org ## 10820## ------------------------------------------- ## 10821_ASBOX 10822 ) | sed "s/^/$as_me: WARNING: /" >&2 10823 ;; 10824esac 10825{ echo "$as_me:$LINENO: checking for zlib.h" >&5 10826echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } 10827if test "${ac_cv_header_zlib_h+set}" = set; then 10828 echo $ECHO_N "(cached) $ECHO_C" >&6 10829else 10830 ac_cv_header_zlib_h=$ac_header_preproc 10831fi 10832{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 10833echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } 10834 10835fi 10836if test $ac_cv_header_zlib_h = yes; then 10837 : 10838else 10839 { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5 10840echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;} 10841 { (exit 1); exit 1; }; } 10842fi 10843 10844 10845 10846 10847# Check whether --with-zlib-version-check was given. 10848if test "${with_zlib_version_check+set}" = set; then 10849 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then 10850 zlib_check_nonfatal=1 10851 fi 10852 10853 10854fi 10855 10856 10857{ echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5 10858echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; } 10859if test "$cross_compiling" = yes; then 10860 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5 10861echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} 10862 10863else 10864 cat >conftest.$ac_ext <<_ACEOF 10865/* confdefs.h. */ 10866_ACEOF 10867cat confdefs.h >>conftest.$ac_ext 10868cat >>conftest.$ac_ext <<_ACEOF 10869/* end confdefs.h. */ 10870 10871#include <stdio.h> 10872#include <zlib.h> 10873int main() 10874{ 10875 int a=0, b=0, c=0, d=0, n, v; 10876 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); 10877 if (n != 3 && n != 4) 10878 exit(1); 10879 v = a*1000000 + b*10000 + c*100 + d; 10880 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); 10881 10882 /* 1.1.4 is OK */ 10883 if (a == 1 && b == 1 && c >= 4) 10884 exit(0); 10885 10886 /* 1.2.3 and up are OK */ 10887 if (v >= 1020300) 10888 exit(0); 10889 10890 exit(2); 10891} 10892 10893_ACEOF 10894rm -f conftest$ac_exeext 10895if { (ac_try="$ac_link" 10896case "(($ac_try" in 10897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10898 *) ac_try_echo=$ac_try;; 10899esac 10900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10901 (eval "$ac_link") 2>&5 10902 ac_status=$? 10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10905 { (case "(($ac_try" in 10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10907 *) ac_try_echo=$ac_try;; 10908esac 10909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10910 (eval "$ac_try") 2>&5 10911 ac_status=$? 10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10913 (exit $ac_status); }; }; then 10914 { echo "$as_me:$LINENO: result: no" >&5 10915echo "${ECHO_T}no" >&6; } 10916else 10917 echo "$as_me: program exited with status $ac_status" >&5 10918echo "$as_me: failed program was:" >&5 10919sed 's/^/| /' conftest.$ac_ext >&5 10920 10921( exit $ac_status ) 10922 { echo "$as_me:$LINENO: result: yes" >&5 10923echo "${ECHO_T}yes" >&6; } 10924 if test -z "$zlib_check_nonfatal" ; then 10925 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log *** 10926Your reported zlib version has known security problems. It's possible your 10927vendor has fixed these problems without changing the version number. If you 10928are sure this is the case, you can disable the check by running 10929\"./configure --without-zlib-version-check\". 10930If you are in doubt, upgrade zlib to version 1.2.3 or greater. 10931See http://www.gzip.org/zlib/ for details." >&5 10932echo "$as_me: error: *** zlib too old - check config.log *** 10933Your reported zlib version has known security problems. It's possible your 10934vendor has fixed these problems without changing the version number. If you 10935are sure this is the case, you can disable the check by running 10936\"./configure --without-zlib-version-check\". 10937If you are in doubt, upgrade zlib to version 1.2.3 or greater. 10938See http://www.gzip.org/zlib/ for details." >&2;} 10939 { (exit 1); exit 1; }; } 10940 else 10941 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5 10942echo "$as_me: WARNING: zlib version may have security problems" >&2;} 10943 fi 10944 10945fi 10946rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10947fi 10948 10949 10950 10951{ echo "$as_me:$LINENO: checking for strcasecmp" >&5 10952echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; } 10953if test "${ac_cv_func_strcasecmp+set}" = set; then 10954 echo $ECHO_N "(cached) $ECHO_C" >&6 10955else 10956 cat >conftest.$ac_ext <<_ACEOF 10957/* confdefs.h. */ 10958_ACEOF 10959cat confdefs.h >>conftest.$ac_ext 10960cat >>conftest.$ac_ext <<_ACEOF 10961/* end confdefs.h. */ 10962/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp. 10963 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10964#define strcasecmp innocuous_strcasecmp 10965 10966/* System header to define __stub macros and hopefully few prototypes, 10967 which can conflict with char strcasecmp (); below. 10968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10969 <limits.h> exists even on freestanding compilers. */ 10970 10971#ifdef __STDC__ 10972# include <limits.h> 10973#else 10974# include <assert.h> 10975#endif 10976 10977#undef strcasecmp 10978 10979/* Override any GCC internal prototype to avoid an error. 10980 Use char because int might match the return type of a GCC 10981 builtin and then its argument prototype would still apply. */ 10982#ifdef __cplusplus 10983extern "C" 10984#endif 10985char strcasecmp (); 10986/* The GNU C library defines this for functions which it implements 10987 to always fail with ENOSYS. Some functions are actually named 10988 something starting with __ and the normal name is an alias. */ 10989#if defined __stub_strcasecmp || defined __stub___strcasecmp 10990choke me 10991#endif 10992 10993int 10994main () 10995{ 10996return strcasecmp (); 10997 ; 10998 return 0; 10999} 11000_ACEOF 11001rm -f conftest.$ac_objext conftest$ac_exeext 11002if { (ac_try="$ac_link" 11003case "(($ac_try" in 11004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11005 *) ac_try_echo=$ac_try;; 11006esac 11007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11008 (eval "$ac_link") 2>conftest.er1 11009 ac_status=$? 11010 grep -v '^ *+' conftest.er1 >conftest.err 11011 rm -f conftest.er1 11012 cat conftest.err >&5 11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11014 (exit $ac_status); } && { 11015 test -z "$ac_c_werror_flag" || 11016 test ! -s conftest.err 11017 } && test -s conftest$ac_exeext && 11018 $as_test_x conftest$ac_exeext; then 11019 ac_cv_func_strcasecmp=yes 11020else 11021 echo "$as_me: failed program was:" >&5 11022sed 's/^/| /' conftest.$ac_ext >&5 11023 11024 ac_cv_func_strcasecmp=no 11025fi 11026 11027rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11028 conftest$ac_exeext conftest.$ac_ext 11029fi 11030{ echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5 11031echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; } 11032if test $ac_cv_func_strcasecmp = yes; then 11033 : 11034else 11035 { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5 11036echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; } 11037if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then 11038 echo $ECHO_N "(cached) $ECHO_C" >&6 11039else 11040 ac_check_lib_save_LIBS=$LIBS 11041LIBS="-lresolv $LIBS" 11042cat >conftest.$ac_ext <<_ACEOF 11043/* confdefs.h. */ 11044_ACEOF 11045cat confdefs.h >>conftest.$ac_ext 11046cat >>conftest.$ac_ext <<_ACEOF 11047/* end confdefs.h. */ 11048 11049/* Override any GCC internal prototype to avoid an error. 11050 Use char because int might match the return type of a GCC 11051 builtin and then its argument prototype would still apply. */ 11052#ifdef __cplusplus 11053extern "C" 11054#endif 11055char strcasecmp (); 11056int 11057main () 11058{ 11059return strcasecmp (); 11060 ; 11061 return 0; 11062} 11063_ACEOF 11064rm -f conftest.$ac_objext conftest$ac_exeext 11065if { (ac_try="$ac_link" 11066case "(($ac_try" in 11067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11068 *) ac_try_echo=$ac_try;; 11069esac 11070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11071 (eval "$ac_link") 2>conftest.er1 11072 ac_status=$? 11073 grep -v '^ *+' conftest.er1 >conftest.err 11074 rm -f conftest.er1 11075 cat conftest.err >&5 11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11077 (exit $ac_status); } && { 11078 test -z "$ac_c_werror_flag" || 11079 test ! -s conftest.err 11080 } && test -s conftest$ac_exeext && 11081 $as_test_x conftest$ac_exeext; then 11082 ac_cv_lib_resolv_strcasecmp=yes 11083else 11084 echo "$as_me: failed program was:" >&5 11085sed 's/^/| /' conftest.$ac_ext >&5 11086 11087 ac_cv_lib_resolv_strcasecmp=no 11088fi 11089 11090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11091 conftest$ac_exeext conftest.$ac_ext 11092LIBS=$ac_check_lib_save_LIBS 11093fi 11094{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5 11095echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; } 11096if test $ac_cv_lib_resolv_strcasecmp = yes; then 11097 LIBS="$LIBS -lresolv" 11098fi 11099 11100 11101fi 11102 11103 11104for ac_func in utimes 11105do 11106as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11107{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11108echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11109if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11110 echo $ECHO_N "(cached) $ECHO_C" >&6 11111else 11112 cat >conftest.$ac_ext <<_ACEOF 11113/* confdefs.h. */ 11114_ACEOF 11115cat confdefs.h >>conftest.$ac_ext 11116cat >>conftest.$ac_ext <<_ACEOF 11117/* end confdefs.h. */ 11118/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11119 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11120#define $ac_func innocuous_$ac_func 11121 11122/* System header to define __stub macros and hopefully few prototypes, 11123 which can conflict with char $ac_func (); below. 11124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11125 <limits.h> exists even on freestanding compilers. */ 11126 11127#ifdef __STDC__ 11128# include <limits.h> 11129#else 11130# include <assert.h> 11131#endif 11132 11133#undef $ac_func 11134 11135/* Override any GCC internal prototype to avoid an error. 11136 Use char because int might match the return type of a GCC 11137 builtin and then its argument prototype would still apply. */ 11138#ifdef __cplusplus 11139extern "C" 11140#endif 11141char $ac_func (); 11142/* The GNU C library defines this for functions which it implements 11143 to always fail with ENOSYS. Some functions are actually named 11144 something starting with __ and the normal name is an alias. */ 11145#if defined __stub_$ac_func || defined __stub___$ac_func 11146choke me 11147#endif 11148 11149int 11150main () 11151{ 11152return $ac_func (); 11153 ; 11154 return 0; 11155} 11156_ACEOF 11157rm -f conftest.$ac_objext conftest$ac_exeext 11158if { (ac_try="$ac_link" 11159case "(($ac_try" in 11160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11161 *) ac_try_echo=$ac_try;; 11162esac 11163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11164 (eval "$ac_link") 2>conftest.er1 11165 ac_status=$? 11166 grep -v '^ *+' conftest.er1 >conftest.err 11167 rm -f conftest.er1 11168 cat conftest.err >&5 11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11170 (exit $ac_status); } && { 11171 test -z "$ac_c_werror_flag" || 11172 test ! -s conftest.err 11173 } && test -s conftest$ac_exeext && 11174 $as_test_x conftest$ac_exeext; then 11175 eval "$as_ac_var=yes" 11176else 11177 echo "$as_me: failed program was:" >&5 11178sed 's/^/| /' conftest.$ac_ext >&5 11179 11180 eval "$as_ac_var=no" 11181fi 11182 11183rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11184 conftest$ac_exeext conftest.$ac_ext 11185fi 11186ac_res=`eval echo '${'$as_ac_var'}'` 11187 { echo "$as_me:$LINENO: result: $ac_res" >&5 11188echo "${ECHO_T}$ac_res" >&6; } 11189if test `eval echo '${'$as_ac_var'}'` = yes; then 11190 cat >>confdefs.h <<_ACEOF 11191#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11192_ACEOF 11193 11194else 11195 { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5 11196echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; } 11197if test "${ac_cv_lib_c89_utimes+set}" = set; then 11198 echo $ECHO_N "(cached) $ECHO_C" >&6 11199else 11200 ac_check_lib_save_LIBS=$LIBS 11201LIBS="-lc89 $LIBS" 11202cat >conftest.$ac_ext <<_ACEOF 11203/* confdefs.h. */ 11204_ACEOF 11205cat confdefs.h >>conftest.$ac_ext 11206cat >>conftest.$ac_ext <<_ACEOF 11207/* end confdefs.h. */ 11208 11209/* Override any GCC internal prototype to avoid an error. 11210 Use char because int might match the return type of a GCC 11211 builtin and then its argument prototype would still apply. */ 11212#ifdef __cplusplus 11213extern "C" 11214#endif 11215char utimes (); 11216int 11217main () 11218{ 11219return utimes (); 11220 ; 11221 return 0; 11222} 11223_ACEOF 11224rm -f conftest.$ac_objext conftest$ac_exeext 11225if { (ac_try="$ac_link" 11226case "(($ac_try" in 11227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11228 *) ac_try_echo=$ac_try;; 11229esac 11230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11231 (eval "$ac_link") 2>conftest.er1 11232 ac_status=$? 11233 grep -v '^ *+' conftest.er1 >conftest.err 11234 rm -f conftest.er1 11235 cat conftest.err >&5 11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11237 (exit $ac_status); } && { 11238 test -z "$ac_c_werror_flag" || 11239 test ! -s conftest.err 11240 } && test -s conftest$ac_exeext && 11241 $as_test_x conftest$ac_exeext; then 11242 ac_cv_lib_c89_utimes=yes 11243else 11244 echo "$as_me: failed program was:" >&5 11245sed 's/^/| /' conftest.$ac_ext >&5 11246 11247 ac_cv_lib_c89_utimes=no 11248fi 11249 11250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11251 conftest$ac_exeext conftest.$ac_ext 11252LIBS=$ac_check_lib_save_LIBS 11253fi 11254{ echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5 11255echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; } 11256if test $ac_cv_lib_c89_utimes = yes; then 11257 cat >>confdefs.h <<\_ACEOF 11258#define HAVE_UTIMES 1 11259_ACEOF 11260 11261 LIBS="$LIBS -lc89" 11262fi 11263 11264 11265fi 11266done 11267 11268 11269 11270for ac_header in libutil.h 11271do 11272as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11273if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11274 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11275echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11276if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11277 echo $ECHO_N "(cached) $ECHO_C" >&6 11278fi 11279ac_res=`eval echo '${'$as_ac_Header'}'` 11280 { echo "$as_me:$LINENO: result: $ac_res" >&5 11281echo "${ECHO_T}$ac_res" >&6; } 11282else 11283 # Is the header compilable? 11284{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11285echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11286cat >conftest.$ac_ext <<_ACEOF 11287/* confdefs.h. */ 11288_ACEOF 11289cat confdefs.h >>conftest.$ac_ext 11290cat >>conftest.$ac_ext <<_ACEOF 11291/* end confdefs.h. */ 11292$ac_includes_default 11293#include <$ac_header> 11294_ACEOF 11295rm -f conftest.$ac_objext 11296if { (ac_try="$ac_compile" 11297case "(($ac_try" in 11298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11299 *) ac_try_echo=$ac_try;; 11300esac 11301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11302 (eval "$ac_compile") 2>conftest.er1 11303 ac_status=$? 11304 grep -v '^ *+' conftest.er1 >conftest.err 11305 rm -f conftest.er1 11306 cat conftest.err >&5 11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11308 (exit $ac_status); } && { 11309 test -z "$ac_c_werror_flag" || 11310 test ! -s conftest.err 11311 } && test -s conftest.$ac_objext; then 11312 ac_header_compiler=yes 11313else 11314 echo "$as_me: failed program was:" >&5 11315sed 's/^/| /' conftest.$ac_ext >&5 11316 11317 ac_header_compiler=no 11318fi 11319 11320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11321{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11322echo "${ECHO_T}$ac_header_compiler" >&6; } 11323 11324# Is the header present? 11325{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11326echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11327cat >conftest.$ac_ext <<_ACEOF 11328/* confdefs.h. */ 11329_ACEOF 11330cat confdefs.h >>conftest.$ac_ext 11331cat >>conftest.$ac_ext <<_ACEOF 11332/* end confdefs.h. */ 11333#include <$ac_header> 11334_ACEOF 11335if { (ac_try="$ac_cpp conftest.$ac_ext" 11336case "(($ac_try" in 11337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11338 *) ac_try_echo=$ac_try;; 11339esac 11340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11342 ac_status=$? 11343 grep -v '^ *+' conftest.er1 >conftest.err 11344 rm -f conftest.er1 11345 cat conftest.err >&5 11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11347 (exit $ac_status); } >/dev/null && { 11348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11349 test ! -s conftest.err 11350 }; then 11351 ac_header_preproc=yes 11352else 11353 echo "$as_me: failed program was:" >&5 11354sed 's/^/| /' conftest.$ac_ext >&5 11355 11356 ac_header_preproc=no 11357fi 11358 11359rm -f conftest.err conftest.$ac_ext 11360{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11361echo "${ECHO_T}$ac_header_preproc" >&6; } 11362 11363# So? What about this header? 11364case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11365 yes:no: ) 11366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11367echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11369echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11370 ac_header_preproc=yes 11371 ;; 11372 no:yes:* ) 11373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11374echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11376echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11378echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11380echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11382echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11384echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11385 ( cat <<\_ASBOX 11386## ------------------------------------------- ## 11387## Report this to openssh-unix-dev@mindrot.org ## 11388## ------------------------------------------- ## 11389_ASBOX 11390 ) | sed "s/^/$as_me: WARNING: /" >&2 11391 ;; 11392esac 11393{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11396 echo $ECHO_N "(cached) $ECHO_C" >&6 11397else 11398 eval "$as_ac_Header=\$ac_header_preproc" 11399fi 11400ac_res=`eval echo '${'$as_ac_Header'}'` 11401 { echo "$as_me:$LINENO: result: $ac_res" >&5 11402echo "${ECHO_T}$ac_res" >&6; } 11403 11404fi 11405if test `eval echo '${'$as_ac_Header'}'` = yes; then 11406 cat >>confdefs.h <<_ACEOF 11407#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11408_ACEOF 11409 11410fi 11411 11412done 11413 11414{ echo "$as_me:$LINENO: checking for library containing login" >&5 11415echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; } 11416if test "${ac_cv_search_login+set}" = set; then 11417 echo $ECHO_N "(cached) $ECHO_C" >&6 11418else 11419 ac_func_search_save_LIBS=$LIBS 11420cat >conftest.$ac_ext <<_ACEOF 11421/* confdefs.h. */ 11422_ACEOF 11423cat confdefs.h >>conftest.$ac_ext 11424cat >>conftest.$ac_ext <<_ACEOF 11425/* end confdefs.h. */ 11426 11427/* Override any GCC internal prototype to avoid an error. 11428 Use char because int might match the return type of a GCC 11429 builtin and then its argument prototype would still apply. */ 11430#ifdef __cplusplus 11431extern "C" 11432#endif 11433char login (); 11434int 11435main () 11436{ 11437return login (); 11438 ; 11439 return 0; 11440} 11441_ACEOF 11442for ac_lib in '' util bsd; do 11443 if test -z "$ac_lib"; then 11444 ac_res="none required" 11445 else 11446 ac_res=-l$ac_lib 11447 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11448 fi 11449 rm -f conftest.$ac_objext conftest$ac_exeext 11450if { (ac_try="$ac_link" 11451case "(($ac_try" in 11452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11453 *) ac_try_echo=$ac_try;; 11454esac 11455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11456 (eval "$ac_link") 2>conftest.er1 11457 ac_status=$? 11458 grep -v '^ *+' conftest.er1 >conftest.err 11459 rm -f conftest.er1 11460 cat conftest.err >&5 11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11462 (exit $ac_status); } && { 11463 test -z "$ac_c_werror_flag" || 11464 test ! -s conftest.err 11465 } && test -s conftest$ac_exeext && 11466 $as_test_x conftest$ac_exeext; then 11467 ac_cv_search_login=$ac_res 11468else 11469 echo "$as_me: failed program was:" >&5 11470sed 's/^/| /' conftest.$ac_ext >&5 11471 11472 11473fi 11474 11475rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11476 conftest$ac_exeext 11477 if test "${ac_cv_search_login+set}" = set; then 11478 break 11479fi 11480done 11481if test "${ac_cv_search_login+set}" = set; then 11482 : 11483else 11484 ac_cv_search_login=no 11485fi 11486rm conftest.$ac_ext 11487LIBS=$ac_func_search_save_LIBS 11488fi 11489{ echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5 11490echo "${ECHO_T}$ac_cv_search_login" >&6; } 11491ac_res=$ac_cv_search_login 11492if test "$ac_res" != no; then 11493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11494 11495cat >>confdefs.h <<\_ACEOF 11496#define HAVE_LOGIN 1 11497_ACEOF 11498 11499fi 11500 11501 11502 11503 11504 11505for ac_func in fmt_scaled logout updwtmp logwtmp 11506do 11507as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11508{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11509echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11510if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11511 echo $ECHO_N "(cached) $ECHO_C" >&6 11512else 11513 cat >conftest.$ac_ext <<_ACEOF 11514/* confdefs.h. */ 11515_ACEOF 11516cat confdefs.h >>conftest.$ac_ext 11517cat >>conftest.$ac_ext <<_ACEOF 11518/* end confdefs.h. */ 11519/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11520 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11521#define $ac_func innocuous_$ac_func 11522 11523/* System header to define __stub macros and hopefully few prototypes, 11524 which can conflict with char $ac_func (); below. 11525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11526 <limits.h> exists even on freestanding compilers. */ 11527 11528#ifdef __STDC__ 11529# include <limits.h> 11530#else 11531# include <assert.h> 11532#endif 11533 11534#undef $ac_func 11535 11536/* Override any GCC internal prototype to avoid an error. 11537 Use char because int might match the return type of a GCC 11538 builtin and then its argument prototype would still apply. */ 11539#ifdef __cplusplus 11540extern "C" 11541#endif 11542char $ac_func (); 11543/* The GNU C library defines this for functions which it implements 11544 to always fail with ENOSYS. Some functions are actually named 11545 something starting with __ and the normal name is an alias. */ 11546#if defined __stub_$ac_func || defined __stub___$ac_func 11547choke me 11548#endif 11549 11550int 11551main () 11552{ 11553return $ac_func (); 11554 ; 11555 return 0; 11556} 11557_ACEOF 11558rm -f conftest.$ac_objext conftest$ac_exeext 11559if { (ac_try="$ac_link" 11560case "(($ac_try" in 11561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11562 *) ac_try_echo=$ac_try;; 11563esac 11564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11565 (eval "$ac_link") 2>conftest.er1 11566 ac_status=$? 11567 grep -v '^ *+' conftest.er1 >conftest.err 11568 rm -f conftest.er1 11569 cat conftest.err >&5 11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11571 (exit $ac_status); } && { 11572 test -z "$ac_c_werror_flag" || 11573 test ! -s conftest.err 11574 } && test -s conftest$ac_exeext && 11575 $as_test_x conftest$ac_exeext; then 11576 eval "$as_ac_var=yes" 11577else 11578 echo "$as_me: failed program was:" >&5 11579sed 's/^/| /' conftest.$ac_ext >&5 11580 11581 eval "$as_ac_var=no" 11582fi 11583 11584rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11585 conftest$ac_exeext conftest.$ac_ext 11586fi 11587ac_res=`eval echo '${'$as_ac_var'}'` 11588 { echo "$as_me:$LINENO: result: $ac_res" >&5 11589echo "${ECHO_T}$ac_res" >&6; } 11590if test `eval echo '${'$as_ac_var'}'` = yes; then 11591 cat >>confdefs.h <<_ACEOF 11592#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11593_ACEOF 11594 11595fi 11596done 11597 11598 11599 11600for ac_func in strftime 11601do 11602as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11603{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11604echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11605if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11606 echo $ECHO_N "(cached) $ECHO_C" >&6 11607else 11608 cat >conftest.$ac_ext <<_ACEOF 11609/* confdefs.h. */ 11610_ACEOF 11611cat confdefs.h >>conftest.$ac_ext 11612cat >>conftest.$ac_ext <<_ACEOF 11613/* end confdefs.h. */ 11614/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11615 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11616#define $ac_func innocuous_$ac_func 11617 11618/* System header to define __stub macros and hopefully few prototypes, 11619 which can conflict with char $ac_func (); below. 11620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11621 <limits.h> exists even on freestanding compilers. */ 11622 11623#ifdef __STDC__ 11624# include <limits.h> 11625#else 11626# include <assert.h> 11627#endif 11628 11629#undef $ac_func 11630 11631/* Override any GCC internal prototype to avoid an error. 11632 Use char because int might match the return type of a GCC 11633 builtin and then its argument prototype would still apply. */ 11634#ifdef __cplusplus 11635extern "C" 11636#endif 11637char $ac_func (); 11638/* The GNU C library defines this for functions which it implements 11639 to always fail with ENOSYS. Some functions are actually named 11640 something starting with __ and the normal name is an alias. */ 11641#if defined __stub_$ac_func || defined __stub___$ac_func 11642choke me 11643#endif 11644 11645int 11646main () 11647{ 11648return $ac_func (); 11649 ; 11650 return 0; 11651} 11652_ACEOF 11653rm -f conftest.$ac_objext conftest$ac_exeext 11654if { (ac_try="$ac_link" 11655case "(($ac_try" in 11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11657 *) ac_try_echo=$ac_try;; 11658esac 11659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11660 (eval "$ac_link") 2>conftest.er1 11661 ac_status=$? 11662 grep -v '^ *+' conftest.er1 >conftest.err 11663 rm -f conftest.er1 11664 cat conftest.err >&5 11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11666 (exit $ac_status); } && { 11667 test -z "$ac_c_werror_flag" || 11668 test ! -s conftest.err 11669 } && test -s conftest$ac_exeext && 11670 $as_test_x conftest$ac_exeext; then 11671 eval "$as_ac_var=yes" 11672else 11673 echo "$as_me: failed program was:" >&5 11674sed 's/^/| /' conftest.$ac_ext >&5 11675 11676 eval "$as_ac_var=no" 11677fi 11678 11679rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11680 conftest$ac_exeext conftest.$ac_ext 11681fi 11682ac_res=`eval echo '${'$as_ac_var'}'` 11683 { echo "$as_me:$LINENO: result: $ac_res" >&5 11684echo "${ECHO_T}$ac_res" >&6; } 11685if test `eval echo '${'$as_ac_var'}'` = yes; then 11686 cat >>confdefs.h <<_ACEOF 11687#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11688_ACEOF 11689 11690else 11691 # strftime is in -lintl on SCO UNIX. 11692{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 11693echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } 11694if test "${ac_cv_lib_intl_strftime+set}" = set; then 11695 echo $ECHO_N "(cached) $ECHO_C" >&6 11696else 11697 ac_check_lib_save_LIBS=$LIBS 11698LIBS="-lintl $LIBS" 11699cat >conftest.$ac_ext <<_ACEOF 11700/* confdefs.h. */ 11701_ACEOF 11702cat confdefs.h >>conftest.$ac_ext 11703cat >>conftest.$ac_ext <<_ACEOF 11704/* end confdefs.h. */ 11705 11706/* Override any GCC internal prototype to avoid an error. 11707 Use char because int might match the return type of a GCC 11708 builtin and then its argument prototype would still apply. */ 11709#ifdef __cplusplus 11710extern "C" 11711#endif 11712char strftime (); 11713int 11714main () 11715{ 11716return strftime (); 11717 ; 11718 return 0; 11719} 11720_ACEOF 11721rm -f conftest.$ac_objext conftest$ac_exeext 11722if { (ac_try="$ac_link" 11723case "(($ac_try" in 11724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11725 *) ac_try_echo=$ac_try;; 11726esac 11727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11728 (eval "$ac_link") 2>conftest.er1 11729 ac_status=$? 11730 grep -v '^ *+' conftest.er1 >conftest.err 11731 rm -f conftest.er1 11732 cat conftest.err >&5 11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11734 (exit $ac_status); } && { 11735 test -z "$ac_c_werror_flag" || 11736 test ! -s conftest.err 11737 } && test -s conftest$ac_exeext && 11738 $as_test_x conftest$ac_exeext; then 11739 ac_cv_lib_intl_strftime=yes 11740else 11741 echo "$as_me: failed program was:" >&5 11742sed 's/^/| /' conftest.$ac_ext >&5 11743 11744 ac_cv_lib_intl_strftime=no 11745fi 11746 11747rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11748 conftest$ac_exeext conftest.$ac_ext 11749LIBS=$ac_check_lib_save_LIBS 11750fi 11751{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 11752echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } 11753if test $ac_cv_lib_intl_strftime = yes; then 11754 cat >>confdefs.h <<\_ACEOF 11755#define HAVE_STRFTIME 1 11756_ACEOF 11757 11758LIBS="-lintl $LIBS" 11759fi 11760 11761fi 11762done 11763 11764 11765# Check for ALTDIRFUNC glob() extension 11766{ echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5 11767echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; } 11768cat >conftest.$ac_ext <<_ACEOF 11769/* confdefs.h. */ 11770_ACEOF 11771cat confdefs.h >>conftest.$ac_ext 11772cat >>conftest.$ac_ext <<_ACEOF 11773/* end confdefs.h. */ 11774 11775 #include <glob.h> 11776 #ifdef GLOB_ALTDIRFUNC 11777 FOUNDIT 11778 #endif 11779 11780_ACEOF 11781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11782 $EGREP "FOUNDIT" >/dev/null 2>&1; then 11783 11784 11785cat >>confdefs.h <<\_ACEOF 11786#define GLOB_HAS_ALTDIRFUNC 1 11787_ACEOF 11788 11789 { echo "$as_me:$LINENO: result: yes" >&5 11790echo "${ECHO_T}yes" >&6; } 11791 11792else 11793 11794 { echo "$as_me:$LINENO: result: no" >&5 11795echo "${ECHO_T}no" >&6; } 11796 11797 11798fi 11799rm -f conftest* 11800 11801 11802# Check for g.gl_matchc glob() extension 11803{ echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5 11804echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; } 11805cat >conftest.$ac_ext <<_ACEOF 11806/* confdefs.h. */ 11807_ACEOF 11808cat confdefs.h >>conftest.$ac_ext 11809cat >>conftest.$ac_ext <<_ACEOF 11810/* end confdefs.h. */ 11811 #include <glob.h> 11812int 11813main () 11814{ 11815glob_t g; g.gl_matchc = 1; 11816 ; 11817 return 0; 11818} 11819_ACEOF 11820rm -f conftest.$ac_objext 11821if { (ac_try="$ac_compile" 11822case "(($ac_try" in 11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11824 *) ac_try_echo=$ac_try;; 11825esac 11826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11827 (eval "$ac_compile") 2>conftest.er1 11828 ac_status=$? 11829 grep -v '^ *+' conftest.er1 >conftest.err 11830 rm -f conftest.er1 11831 cat conftest.err >&5 11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11833 (exit $ac_status); } && { 11834 test -z "$ac_c_werror_flag" || 11835 test ! -s conftest.err 11836 } && test -s conftest.$ac_objext; then 11837 11838 11839cat >>confdefs.h <<\_ACEOF 11840#define GLOB_HAS_GL_MATCHC 1 11841_ACEOF 11842 11843 { echo "$as_me:$LINENO: result: yes" >&5 11844echo "${ECHO_T}yes" >&6; } 11845 11846else 11847 echo "$as_me: failed program was:" >&5 11848sed 's/^/| /' conftest.$ac_ext >&5 11849 11850 11851 { echo "$as_me:$LINENO: result: no" >&5 11852echo "${ECHO_T}no" >&6; } 11853 11854 11855fi 11856 11857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11858 11859{ echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5 11860echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; } 11861if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then 11862 echo $ECHO_N "(cached) $ECHO_C" >&6 11863else 11864 cat >conftest.$ac_ext <<_ACEOF 11865/* confdefs.h. */ 11866_ACEOF 11867cat confdefs.h >>conftest.$ac_ext 11868cat >>conftest.$ac_ext <<_ACEOF 11869/* end confdefs.h. */ 11870#include <glob.h> 11871 11872int 11873main () 11874{ 11875#ifndef GLOB_NOMATCH 11876 (void) GLOB_NOMATCH; 11877#endif 11878 11879 ; 11880 return 0; 11881} 11882_ACEOF 11883rm -f conftest.$ac_objext 11884if { (ac_try="$ac_compile" 11885case "(($ac_try" in 11886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11887 *) ac_try_echo=$ac_try;; 11888esac 11889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11890 (eval "$ac_compile") 2>conftest.er1 11891 ac_status=$? 11892 grep -v '^ *+' conftest.er1 >conftest.err 11893 rm -f conftest.er1 11894 cat conftest.err >&5 11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11896 (exit $ac_status); } && { 11897 test -z "$ac_c_werror_flag" || 11898 test ! -s conftest.err 11899 } && test -s conftest.$ac_objext; then 11900 ac_cv_have_decl_GLOB_NOMATCH=yes 11901else 11902 echo "$as_me: failed program was:" >&5 11903sed 's/^/| /' conftest.$ac_ext >&5 11904 11905 ac_cv_have_decl_GLOB_NOMATCH=no 11906fi 11907 11908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11909fi 11910{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5 11911echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; } 11912if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then 11913 11914cat >>confdefs.h <<_ACEOF 11915#define HAVE_DECL_GLOB_NOMATCH 1 11916_ACEOF 11917 11918 11919else 11920 cat >>confdefs.h <<_ACEOF 11921#define HAVE_DECL_GLOB_NOMATCH 0 11922_ACEOF 11923 11924 11925fi 11926 11927 11928 11929{ echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5 11930echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; } 11931if test "$cross_compiling" = yes; then 11932 11933 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 11934echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} 11935 cat >>confdefs.h <<\_ACEOF 11936#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 11937_ACEOF 11938 11939 11940 11941else 11942 cat >conftest.$ac_ext <<_ACEOF 11943/* confdefs.h. */ 11944_ACEOF 11945cat confdefs.h >>conftest.$ac_ext 11946cat >>conftest.$ac_ext <<_ACEOF 11947/* end confdefs.h. */ 11948 11949#include <sys/types.h> 11950#include <dirent.h> 11951int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));} 11952 11953_ACEOF 11954rm -f conftest$ac_exeext 11955if { (ac_try="$ac_link" 11956case "(($ac_try" in 11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11958 *) ac_try_echo=$ac_try;; 11959esac 11960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11961 (eval "$ac_link") 2>&5 11962 ac_status=$? 11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11965 { (case "(($ac_try" in 11966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11967 *) ac_try_echo=$ac_try;; 11968esac 11969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11970 (eval "$ac_try") 2>&5 11971 ac_status=$? 11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11973 (exit $ac_status); }; }; then 11974 { echo "$as_me:$LINENO: result: yes" >&5 11975echo "${ECHO_T}yes" >&6; } 11976else 11977 echo "$as_me: program exited with status $ac_status" >&5 11978echo "$as_me: failed program was:" >&5 11979sed 's/^/| /' conftest.$ac_ext >&5 11980 11981( exit $ac_status ) 11982 11983 { echo "$as_me:$LINENO: result: no" >&5 11984echo "${ECHO_T}no" >&6; } 11985 11986cat >>confdefs.h <<\_ACEOF 11987#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 11988_ACEOF 11989 11990 11991fi 11992rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11993fi 11994 11995 11996 11997{ echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5 11998echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; } 11999if test -d "/proc/$$/fd" ; then 12000 12001cat >>confdefs.h <<\_ACEOF 12002#define HAVE_PROC_PID 1 12003_ACEOF 12004 12005 { echo "$as_me:$LINENO: result: yes" >&5 12006echo "${ECHO_T}yes" >&6; } 12007else 12008 { echo "$as_me:$LINENO: result: no" >&5 12009echo "${ECHO_T}no" >&6; } 12010fi 12011 12012# Check whether user wants S/Key support 12013SKEY_MSG="no" 12014 12015# Check whether --with-skey was given. 12016if test "${with_skey+set}" = set; then 12017 withval=$with_skey; 12018 if test "x$withval" != "xno" ; then 12019 12020 if test "x$withval" != "xyes" ; then 12021 CPPFLAGS="$CPPFLAGS -I${withval}/include" 12022 LDFLAGS="$LDFLAGS -L${withval}/lib" 12023 fi 12024 12025 12026cat >>confdefs.h <<\_ACEOF 12027#define SKEY 1 12028_ACEOF 12029 12030 LIBS="-lskey $LIBS" 12031 SKEY_MSG="yes" 12032 12033 { echo "$as_me:$LINENO: checking for s/key support" >&5 12034echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; } 12035 cat >conftest.$ac_ext <<_ACEOF 12036/* confdefs.h. */ 12037_ACEOF 12038cat confdefs.h >>conftest.$ac_ext 12039cat >>conftest.$ac_ext <<_ACEOF 12040/* end confdefs.h. */ 12041 12042#include <stdio.h> 12043#include <skey.h> 12044int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); } 12045 12046_ACEOF 12047rm -f conftest.$ac_objext conftest$ac_exeext 12048if { (ac_try="$ac_link" 12049case "(($ac_try" in 12050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12051 *) ac_try_echo=$ac_try;; 12052esac 12053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12054 (eval "$ac_link") 2>conftest.er1 12055 ac_status=$? 12056 grep -v '^ *+' conftest.er1 >conftest.err 12057 rm -f conftest.er1 12058 cat conftest.err >&5 12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12060 (exit $ac_status); } && { 12061 test -z "$ac_c_werror_flag" || 12062 test ! -s conftest.err 12063 } && test -s conftest$ac_exeext && 12064 $as_test_x conftest$ac_exeext; then 12065 { echo "$as_me:$LINENO: result: yes" >&5 12066echo "${ECHO_T}yes" >&6; } 12067else 12068 echo "$as_me: failed program was:" >&5 12069sed 's/^/| /' conftest.$ac_ext >&5 12070 12071 12072 { echo "$as_me:$LINENO: result: no" >&5 12073echo "${ECHO_T}no" >&6; } 12074 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5 12075echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;} 12076 { (exit 1); exit 1; }; } 12077 12078fi 12079 12080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12081 conftest$ac_exeext conftest.$ac_ext 12082 { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5 12083echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; } 12084 cat >conftest.$ac_ext <<_ACEOF 12085/* confdefs.h. */ 12086_ACEOF 12087cat confdefs.h >>conftest.$ac_ext 12088cat >>conftest.$ac_ext <<_ACEOF 12089/* end confdefs.h. */ 12090#include <stdio.h> 12091 #include <skey.h> 12092int 12093main () 12094{ 12095(void)skeychallenge(NULL,"name","",0); 12096 ; 12097 return 0; 12098} 12099_ACEOF 12100rm -f conftest.$ac_objext 12101if { (ac_try="$ac_compile" 12102case "(($ac_try" in 12103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12104 *) ac_try_echo=$ac_try;; 12105esac 12106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12107 (eval "$ac_compile") 2>conftest.er1 12108 ac_status=$? 12109 grep -v '^ *+' conftest.er1 >conftest.err 12110 rm -f conftest.er1 12111 cat conftest.err >&5 12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12113 (exit $ac_status); } && { 12114 test -z "$ac_c_werror_flag" || 12115 test ! -s conftest.err 12116 } && test -s conftest.$ac_objext; then 12117 { echo "$as_me:$LINENO: result: yes" >&5 12118echo "${ECHO_T}yes" >&6; } 12119 12120cat >>confdefs.h <<\_ACEOF 12121#define SKEYCHALLENGE_4ARG 1 12122_ACEOF 12123 12124else 12125 echo "$as_me: failed program was:" >&5 12126sed 's/^/| /' conftest.$ac_ext >&5 12127 12128 { echo "$as_me:$LINENO: result: no" >&5 12129echo "${ECHO_T}no" >&6; } 12130 12131fi 12132 12133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12134 fi 12135 12136 12137fi 12138 12139 12140# Check whether user wants TCP wrappers support 12141TCPW_MSG="no" 12142 12143# Check whether --with-tcp-wrappers was given. 12144if test "${with_tcp_wrappers+set}" = set; then 12145 withval=$with_tcp_wrappers; 12146 if test "x$withval" != "xno" ; then 12147 saved_LIBS="$LIBS" 12148 saved_LDFLAGS="$LDFLAGS" 12149 saved_CPPFLAGS="$CPPFLAGS" 12150 if test -n "${withval}" && \ 12151 test "x${withval}" != "xyes"; then 12152 if test -d "${withval}/lib"; then 12153 if test -n "${need_dash_r}"; then 12154 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" 12155 else 12156 LDFLAGS="-L${withval}/lib ${LDFLAGS}" 12157 fi 12158 else 12159 if test -n "${need_dash_r}"; then 12160 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" 12161 else 12162 LDFLAGS="-L${withval} ${LDFLAGS}" 12163 fi 12164 fi 12165 if test -d "${withval}/include"; then 12166 CPPFLAGS="-I${withval}/include ${CPPFLAGS}" 12167 else 12168 CPPFLAGS="-I${withval} ${CPPFLAGS}" 12169 fi 12170 fi 12171 LIBS="-lwrap $LIBS" 12172 { echo "$as_me:$LINENO: checking for libwrap" >&5 12173echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; } 12174 cat >conftest.$ac_ext <<_ACEOF 12175/* confdefs.h. */ 12176_ACEOF 12177cat confdefs.h >>conftest.$ac_ext 12178cat >>conftest.$ac_ext <<_ACEOF 12179/* end confdefs.h. */ 12180 12181#include <sys/types.h> 12182#include <sys/socket.h> 12183#include <netinet/in.h> 12184#include <tcpd.h> 12185 int deny_severity = 0, allow_severity = 0; 12186 12187int 12188main () 12189{ 12190hosts_access(0); 12191 ; 12192 return 0; 12193} 12194_ACEOF 12195rm -f conftest.$ac_objext conftest$ac_exeext 12196if { (ac_try="$ac_link" 12197case "(($ac_try" in 12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12199 *) ac_try_echo=$ac_try;; 12200esac 12201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12202 (eval "$ac_link") 2>conftest.er1 12203 ac_status=$? 12204 grep -v '^ *+' conftest.er1 >conftest.err 12205 rm -f conftest.er1 12206 cat conftest.err >&5 12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12208 (exit $ac_status); } && { 12209 test -z "$ac_c_werror_flag" || 12210 test ! -s conftest.err 12211 } && test -s conftest$ac_exeext && 12212 $as_test_x conftest$ac_exeext; then 12213 12214 { echo "$as_me:$LINENO: result: yes" >&5 12215echo "${ECHO_T}yes" >&6; } 12216 12217cat >>confdefs.h <<\_ACEOF 12218#define LIBWRAP 1 12219_ACEOF 12220 12221 SSHDLIBS="$SSHDLIBS -lwrap" 12222 TCPW_MSG="yes" 12223 12224else 12225 echo "$as_me: failed program was:" >&5 12226sed 's/^/| /' conftest.$ac_ext >&5 12227 12228 12229 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5 12230echo "$as_me: error: *** libwrap missing" >&2;} 12231 { (exit 1); exit 1; }; } 12232 12233 12234fi 12235 12236rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12237 conftest$ac_exeext conftest.$ac_ext 12238 LIBS="$saved_LIBS" 12239 fi 12240 12241 12242fi 12243 12244 12245# Check whether user wants libedit support 12246LIBEDIT_MSG="no" 12247 12248# Check whether --with-libedit was given. 12249if test "${with_libedit+set}" = set; then 12250 withval=$with_libedit; if test "x$withval" != "xno" ; then 12251 if test "x$withval" != "xyes"; then 12252 CPPFLAGS="$CPPFLAGS -I${withval}/include" 12253 if test -n "${need_dash_r}"; then 12254 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" 12255 else 12256 LDFLAGS="-L${withval}/lib ${LDFLAGS}" 12257 fi 12258 fi 12259 { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5 12260echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; } 12261if test "${ac_cv_lib_edit_el_init+set}" = set; then 12262 echo $ECHO_N "(cached) $ECHO_C" >&6 12263else 12264 ac_check_lib_save_LIBS=$LIBS 12265LIBS="-ledit -lcurses 12266 $LIBS" 12267cat >conftest.$ac_ext <<_ACEOF 12268/* confdefs.h. */ 12269_ACEOF 12270cat confdefs.h >>conftest.$ac_ext 12271cat >>conftest.$ac_ext <<_ACEOF 12272/* end confdefs.h. */ 12273 12274/* Override any GCC internal prototype to avoid an error. 12275 Use char because int might match the return type of a GCC 12276 builtin and then its argument prototype would still apply. */ 12277#ifdef __cplusplus 12278extern "C" 12279#endif 12280char el_init (); 12281int 12282main () 12283{ 12284return el_init (); 12285 ; 12286 return 0; 12287} 12288_ACEOF 12289rm -f conftest.$ac_objext conftest$ac_exeext 12290if { (ac_try="$ac_link" 12291case "(($ac_try" in 12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12293 *) ac_try_echo=$ac_try;; 12294esac 12295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12296 (eval "$ac_link") 2>conftest.er1 12297 ac_status=$? 12298 grep -v '^ *+' conftest.er1 >conftest.err 12299 rm -f conftest.er1 12300 cat conftest.err >&5 12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12302 (exit $ac_status); } && { 12303 test -z "$ac_c_werror_flag" || 12304 test ! -s conftest.err 12305 } && test -s conftest$ac_exeext && 12306 $as_test_x conftest$ac_exeext; then 12307 ac_cv_lib_edit_el_init=yes 12308else 12309 echo "$as_me: failed program was:" >&5 12310sed 's/^/| /' conftest.$ac_ext >&5 12311 12312 ac_cv_lib_edit_el_init=no 12313fi 12314 12315rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12316 conftest$ac_exeext conftest.$ac_ext 12317LIBS=$ac_check_lib_save_LIBS 12318fi 12319{ echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5 12320echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; } 12321if test $ac_cv_lib_edit_el_init = yes; then 12322 12323cat >>confdefs.h <<\_ACEOF 12324#define USE_LIBEDIT 1 12325_ACEOF 12326 12327 LIBEDIT="-ledit -lcurses" 12328 LIBEDIT_MSG="yes" 12329 12330 12331else 12332 { { echo "$as_me:$LINENO: error: libedit not found" >&5 12333echo "$as_me: error: libedit not found" >&2;} 12334 { (exit 1); exit 1; }; } 12335fi 12336 12337 { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5 12338echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; } 12339 cat >conftest.$ac_ext <<_ACEOF 12340/* confdefs.h. */ 12341_ACEOF 12342cat confdefs.h >>conftest.$ac_ext 12343cat >>conftest.$ac_ext <<_ACEOF 12344/* end confdefs.h. */ 12345 12346#include <histedit.h> 12347int main(void) 12348{ 12349 int i = H_SETSIZE; 12350 el_init("", NULL, NULL, NULL); 12351 exit(0); 12352} 12353 12354_ACEOF 12355rm -f conftest.$ac_objext 12356if { (ac_try="$ac_compile" 12357case "(($ac_try" in 12358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12359 *) ac_try_echo=$ac_try;; 12360esac 12361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12362 (eval "$ac_compile") 2>conftest.er1 12363 ac_status=$? 12364 grep -v '^ *+' conftest.er1 >conftest.err 12365 rm -f conftest.er1 12366 cat conftest.err >&5 12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12368 (exit $ac_status); } && { 12369 test -z "$ac_c_werror_flag" || 12370 test ! -s conftest.err 12371 } && test -s conftest.$ac_objext; then 12372 { echo "$as_me:$LINENO: result: yes" >&5 12373echo "${ECHO_T}yes" >&6; } 12374else 12375 echo "$as_me: failed program was:" >&5 12376sed 's/^/| /' conftest.$ac_ext >&5 12377 12378 { echo "$as_me:$LINENO: result: no" >&5 12379echo "${ECHO_T}no" >&6; } 12380 { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5 12381echo "$as_me: error: libedit version is not compatible" >&2;} 12382 { (exit 1); exit 1; }; } 12383 12384fi 12385 12386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12387 fi 12388 12389fi 12390 12391 12392AUDIT_MODULE=none 12393 12394# Check whether --with-audit was given. 12395if test "${with_audit+set}" = set; then 12396 withval=$with_audit; 12397 { echo "$as_me:$LINENO: checking for supported audit module" >&5 12398echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; } 12399 case "$withval" in 12400 bsm) 12401 { echo "$as_me:$LINENO: result: bsm" >&5 12402echo "${ECHO_T}bsm" >&6; } 12403 AUDIT_MODULE=bsm 12404 12405for ac_header in bsm/audit.h 12406do 12407as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12408{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12410if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12411 echo $ECHO_N "(cached) $ECHO_C" >&6 12412else 12413 cat >conftest.$ac_ext <<_ACEOF 12414/* confdefs.h. */ 12415_ACEOF 12416cat confdefs.h >>conftest.$ac_ext 12417cat >>conftest.$ac_ext <<_ACEOF 12418/* end confdefs.h. */ 12419 12420#ifdef HAVE_TIME_H 12421# include <time.h> 12422#endif 12423 12424 12425 12426#include <$ac_header> 12427_ACEOF 12428rm -f conftest.$ac_objext 12429if { (ac_try="$ac_compile" 12430case "(($ac_try" in 12431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12432 *) ac_try_echo=$ac_try;; 12433esac 12434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12435 (eval "$ac_compile") 2>conftest.er1 12436 ac_status=$? 12437 grep -v '^ *+' conftest.er1 >conftest.err 12438 rm -f conftest.er1 12439 cat conftest.err >&5 12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12441 (exit $ac_status); } && { 12442 test -z "$ac_c_werror_flag" || 12443 test ! -s conftest.err 12444 } && test -s conftest.$ac_objext; then 12445 eval "$as_ac_Header=yes" 12446else 12447 echo "$as_me: failed program was:" >&5 12448sed 's/^/| /' conftest.$ac_ext >&5 12449 12450 eval "$as_ac_Header=no" 12451fi 12452 12453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12454fi 12455ac_res=`eval echo '${'$as_ac_Header'}'` 12456 { echo "$as_me:$LINENO: result: $ac_res" >&5 12457echo "${ECHO_T}$ac_res" >&6; } 12458if test `eval echo '${'$as_ac_Header'}'` = yes; then 12459 cat >>confdefs.h <<_ACEOF 12460#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12461_ACEOF 12462 12463else 12464 { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5 12465echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;} 12466 { (exit 1); exit 1; }; } 12467fi 12468 12469done 12470 12471 12472{ echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5 12473echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; } 12474if test "${ac_cv_lib_bsm_getaudit+set}" = set; then 12475 echo $ECHO_N "(cached) $ECHO_C" >&6 12476else 12477 ac_check_lib_save_LIBS=$LIBS 12478LIBS="-lbsm $LIBS" 12479cat >conftest.$ac_ext <<_ACEOF 12480/* confdefs.h. */ 12481_ACEOF 12482cat confdefs.h >>conftest.$ac_ext 12483cat >>conftest.$ac_ext <<_ACEOF 12484/* end confdefs.h. */ 12485 12486/* Override any GCC internal prototype to avoid an error. 12487 Use char because int might match the return type of a GCC 12488 builtin and then its argument prototype would still apply. */ 12489#ifdef __cplusplus 12490extern "C" 12491#endif 12492char getaudit (); 12493int 12494main () 12495{ 12496return getaudit (); 12497 ; 12498 return 0; 12499} 12500_ACEOF 12501rm -f conftest.$ac_objext conftest$ac_exeext 12502if { (ac_try="$ac_link" 12503case "(($ac_try" in 12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12505 *) ac_try_echo=$ac_try;; 12506esac 12507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12508 (eval "$ac_link") 2>conftest.er1 12509 ac_status=$? 12510 grep -v '^ *+' conftest.er1 >conftest.err 12511 rm -f conftest.er1 12512 cat conftest.err >&5 12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12514 (exit $ac_status); } && { 12515 test -z "$ac_c_werror_flag" || 12516 test ! -s conftest.err 12517 } && test -s conftest$ac_exeext && 12518 $as_test_x conftest$ac_exeext; then 12519 ac_cv_lib_bsm_getaudit=yes 12520else 12521 echo "$as_me: failed program was:" >&5 12522sed 's/^/| /' conftest.$ac_ext >&5 12523 12524 ac_cv_lib_bsm_getaudit=no 12525fi 12526 12527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12528 conftest$ac_exeext conftest.$ac_ext 12529LIBS=$ac_check_lib_save_LIBS 12530fi 12531{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5 12532echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; } 12533if test $ac_cv_lib_bsm_getaudit = yes; then 12534 cat >>confdefs.h <<_ACEOF 12535#define HAVE_LIBBSM 1 12536_ACEOF 12537 12538 LIBS="-lbsm $LIBS" 12539 12540else 12541 { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5 12542echo "$as_me: error: BSM enabled and required library not found" >&2;} 12543 { (exit 1); exit 1; }; } 12544fi 12545 12546 12547for ac_func in getaudit 12548do 12549as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12550{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12551echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12552if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12553 echo $ECHO_N "(cached) $ECHO_C" >&6 12554else 12555 cat >conftest.$ac_ext <<_ACEOF 12556/* confdefs.h. */ 12557_ACEOF 12558cat confdefs.h >>conftest.$ac_ext 12559cat >>conftest.$ac_ext <<_ACEOF 12560/* end confdefs.h. */ 12561/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12562 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12563#define $ac_func innocuous_$ac_func 12564 12565/* System header to define __stub macros and hopefully few prototypes, 12566 which can conflict with char $ac_func (); below. 12567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12568 <limits.h> exists even on freestanding compilers. */ 12569 12570#ifdef __STDC__ 12571# include <limits.h> 12572#else 12573# include <assert.h> 12574#endif 12575 12576#undef $ac_func 12577 12578/* Override any GCC internal prototype to avoid an error. 12579 Use char because int might match the return type of a GCC 12580 builtin and then its argument prototype would still apply. */ 12581#ifdef __cplusplus 12582extern "C" 12583#endif 12584char $ac_func (); 12585/* The GNU C library defines this for functions which it implements 12586 to always fail with ENOSYS. Some functions are actually named 12587 something starting with __ and the normal name is an alias. */ 12588#if defined __stub_$ac_func || defined __stub___$ac_func 12589choke me 12590#endif 12591 12592int 12593main () 12594{ 12595return $ac_func (); 12596 ; 12597 return 0; 12598} 12599_ACEOF 12600rm -f conftest.$ac_objext conftest$ac_exeext 12601if { (ac_try="$ac_link" 12602case "(($ac_try" in 12603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12604 *) ac_try_echo=$ac_try;; 12605esac 12606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12607 (eval "$ac_link") 2>conftest.er1 12608 ac_status=$? 12609 grep -v '^ *+' conftest.er1 >conftest.err 12610 rm -f conftest.er1 12611 cat conftest.err >&5 12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12613 (exit $ac_status); } && { 12614 test -z "$ac_c_werror_flag" || 12615 test ! -s conftest.err 12616 } && test -s conftest$ac_exeext && 12617 $as_test_x conftest$ac_exeext; then 12618 eval "$as_ac_var=yes" 12619else 12620 echo "$as_me: failed program was:" >&5 12621sed 's/^/| /' conftest.$ac_ext >&5 12622 12623 eval "$as_ac_var=no" 12624fi 12625 12626rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12627 conftest$ac_exeext conftest.$ac_ext 12628fi 12629ac_res=`eval echo '${'$as_ac_var'}'` 12630 { echo "$as_me:$LINENO: result: $ac_res" >&5 12631echo "${ECHO_T}$ac_res" >&6; } 12632if test `eval echo '${'$as_ac_var'}'` = yes; then 12633 cat >>confdefs.h <<_ACEOF 12634#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12635_ACEOF 12636 12637else 12638 { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5 12639echo "$as_me: error: BSM enabled and required function not found" >&2;} 12640 { (exit 1); exit 1; }; } 12641fi 12642done 12643 12644 # These are optional 12645 12646 12647for ac_func in getaudit_addr aug_get_machine 12648do 12649as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12650{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12651echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12652if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12653 echo $ECHO_N "(cached) $ECHO_C" >&6 12654else 12655 cat >conftest.$ac_ext <<_ACEOF 12656/* confdefs.h. */ 12657_ACEOF 12658cat confdefs.h >>conftest.$ac_ext 12659cat >>conftest.$ac_ext <<_ACEOF 12660/* end confdefs.h. */ 12661/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12662 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12663#define $ac_func innocuous_$ac_func 12664 12665/* System header to define __stub macros and hopefully few prototypes, 12666 which can conflict with char $ac_func (); below. 12667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12668 <limits.h> exists even on freestanding compilers. */ 12669 12670#ifdef __STDC__ 12671# include <limits.h> 12672#else 12673# include <assert.h> 12674#endif 12675 12676#undef $ac_func 12677 12678/* Override any GCC internal prototype to avoid an error. 12679 Use char because int might match the return type of a GCC 12680 builtin and then its argument prototype would still apply. */ 12681#ifdef __cplusplus 12682extern "C" 12683#endif 12684char $ac_func (); 12685/* The GNU C library defines this for functions which it implements 12686 to always fail with ENOSYS. Some functions are actually named 12687 something starting with __ and the normal name is an alias. */ 12688#if defined __stub_$ac_func || defined __stub___$ac_func 12689choke me 12690#endif 12691 12692int 12693main () 12694{ 12695return $ac_func (); 12696 ; 12697 return 0; 12698} 12699_ACEOF 12700rm -f conftest.$ac_objext conftest$ac_exeext 12701if { (ac_try="$ac_link" 12702case "(($ac_try" in 12703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12704 *) ac_try_echo=$ac_try;; 12705esac 12706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12707 (eval "$ac_link") 2>conftest.er1 12708 ac_status=$? 12709 grep -v '^ *+' conftest.er1 >conftest.err 12710 rm -f conftest.er1 12711 cat conftest.err >&5 12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12713 (exit $ac_status); } && { 12714 test -z "$ac_c_werror_flag" || 12715 test ! -s conftest.err 12716 } && test -s conftest$ac_exeext && 12717 $as_test_x conftest$ac_exeext; then 12718 eval "$as_ac_var=yes" 12719else 12720 echo "$as_me: failed program was:" >&5 12721sed 's/^/| /' conftest.$ac_ext >&5 12722 12723 eval "$as_ac_var=no" 12724fi 12725 12726rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12727 conftest$ac_exeext conftest.$ac_ext 12728fi 12729ac_res=`eval echo '${'$as_ac_var'}'` 12730 { echo "$as_me:$LINENO: result: $ac_res" >&5 12731echo "${ECHO_T}$ac_res" >&6; } 12732if test `eval echo '${'$as_ac_var'}'` = yes; then 12733 cat >>confdefs.h <<_ACEOF 12734#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12735_ACEOF 12736 12737fi 12738done 12739 12740 12741cat >>confdefs.h <<\_ACEOF 12742#define USE_BSM_AUDIT 1 12743_ACEOF 12744 12745 ;; 12746 debug) 12747 AUDIT_MODULE=debug 12748 { echo "$as_me:$LINENO: result: debug" >&5 12749echo "${ECHO_T}debug" >&6; } 12750 12751cat >>confdefs.h <<\_ACEOF 12752#define SSH_AUDIT_EVENTS 1 12753_ACEOF 12754 12755 ;; 12756 no) 12757 { echo "$as_me:$LINENO: result: no" >&5 12758echo "${ECHO_T}no" >&6; } 12759 ;; 12760 *) 12761 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5 12762echo "$as_me: error: Unknown audit module $withval" >&2;} 12763 { (exit 1); exit 1; }; } 12764 ;; 12765 esac 12766 12767fi 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859for ac_func in \ 12860 arc4random \ 12861 arc4random_buf \ 12862 arc4random_uniform \ 12863 asprintf \ 12864 b64_ntop \ 12865 __b64_ntop \ 12866 b64_pton \ 12867 __b64_pton \ 12868 bcopy \ 12869 bindresvport_sa \ 12870 clock \ 12871 closefrom \ 12872 dirfd \ 12873 fchmod \ 12874 fchown \ 12875 freeaddrinfo \ 12876 fstatvfs \ 12877 futimes \ 12878 getaddrinfo \ 12879 getcwd \ 12880 getgrouplist \ 12881 getnameinfo \ 12882 getopt \ 12883 getpeereid \ 12884 getpeerucred \ 12885 _getpty \ 12886 getrlimit \ 12887 getttyent \ 12888 glob \ 12889 inet_aton \ 12890 inet_ntoa \ 12891 inet_ntop \ 12892 innetgr \ 12893 login_getcapbool \ 12894 md5_crypt \ 12895 memmove \ 12896 mkdtemp \ 12897 mmap \ 12898 ngetaddrinfo \ 12899 nsleep \ 12900 ogetaddrinfo \ 12901 openlog_r \ 12902 openpty \ 12903 poll \ 12904 prctl \ 12905 pstat \ 12906 readpassphrase \ 12907 realpath \ 12908 recvmsg \ 12909 rresvport_af \ 12910 sendmsg \ 12911 setdtablesize \ 12912 setegid \ 12913 setenv \ 12914 seteuid \ 12915 setgroups \ 12916 setlogin \ 12917 setpcred \ 12918 setproctitle \ 12919 setregid \ 12920 setreuid \ 12921 setrlimit \ 12922 setsid \ 12923 setvbuf \ 12924 sigaction \ 12925 sigvec \ 12926 snprintf \ 12927 socketpair \ 12928 statfs \ 12929 statvfs \ 12930 strdup \ 12931 strerror \ 12932 strlcat \ 12933 strlcpy \ 12934 strmode \ 12935 strnvis \ 12936 strtonum \ 12937 strtoll \ 12938 strtoul \ 12939 swap32 \ 12940 sysconf \ 12941 tcgetpgrp \ 12942 truncate \ 12943 unsetenv \ 12944 updwtmpx \ 12945 vasprintf \ 12946 vhangup \ 12947 vsnprintf \ 12948 waitpid \ 12949 12950do 12951as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12952{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12953echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12954if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12955 echo $ECHO_N "(cached) $ECHO_C" >&6 12956else 12957 cat >conftest.$ac_ext <<_ACEOF 12958/* confdefs.h. */ 12959_ACEOF 12960cat confdefs.h >>conftest.$ac_ext 12961cat >>conftest.$ac_ext <<_ACEOF 12962/* end confdefs.h. */ 12963/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12964 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12965#define $ac_func innocuous_$ac_func 12966 12967/* System header to define __stub macros and hopefully few prototypes, 12968 which can conflict with char $ac_func (); below. 12969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12970 <limits.h> exists even on freestanding compilers. */ 12971 12972#ifdef __STDC__ 12973# include <limits.h> 12974#else 12975# include <assert.h> 12976#endif 12977 12978#undef $ac_func 12979 12980/* Override any GCC internal prototype to avoid an error. 12981 Use char because int might match the return type of a GCC 12982 builtin and then its argument prototype would still apply. */ 12983#ifdef __cplusplus 12984extern "C" 12985#endif 12986char $ac_func (); 12987/* The GNU C library defines this for functions which it implements 12988 to always fail with ENOSYS. Some functions are actually named 12989 something starting with __ and the normal name is an alias. */ 12990#if defined __stub_$ac_func || defined __stub___$ac_func 12991choke me 12992#endif 12993 12994int 12995main () 12996{ 12997return $ac_func (); 12998 ; 12999 return 0; 13000} 13001_ACEOF 13002rm -f conftest.$ac_objext conftest$ac_exeext 13003if { (ac_try="$ac_link" 13004case "(($ac_try" in 13005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13006 *) ac_try_echo=$ac_try;; 13007esac 13008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13009 (eval "$ac_link") 2>conftest.er1 13010 ac_status=$? 13011 grep -v '^ *+' conftest.er1 >conftest.err 13012 rm -f conftest.er1 13013 cat conftest.err >&5 13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13015 (exit $ac_status); } && { 13016 test -z "$ac_c_werror_flag" || 13017 test ! -s conftest.err 13018 } && test -s conftest$ac_exeext && 13019 $as_test_x conftest$ac_exeext; then 13020 eval "$as_ac_var=yes" 13021else 13022 echo "$as_me: failed program was:" >&5 13023sed 's/^/| /' conftest.$ac_ext >&5 13024 13025 eval "$as_ac_var=no" 13026fi 13027 13028rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13029 conftest$ac_exeext conftest.$ac_ext 13030fi 13031ac_res=`eval echo '${'$as_ac_var'}'` 13032 { echo "$as_me:$LINENO: result: $ac_res" >&5 13033echo "${ECHO_T}$ac_res" >&6; } 13034if test `eval echo '${'$as_ac_var'}'` = yes; then 13035 cat >>confdefs.h <<_ACEOF 13036#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13037_ACEOF 13038 13039fi 13040done 13041 13042 13043# IRIX has a const char return value for gai_strerror() 13044 13045for ac_func in gai_strerror 13046do 13047as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13048{ echo "$as_me:$LINENO: checking for $ac_func" >&5 13049echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 13050if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13051 echo $ECHO_N "(cached) $ECHO_C" >&6 13052else 13053 cat >conftest.$ac_ext <<_ACEOF 13054/* confdefs.h. */ 13055_ACEOF 13056cat confdefs.h >>conftest.$ac_ext 13057cat >>conftest.$ac_ext <<_ACEOF 13058/* end confdefs.h. */ 13059/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13060 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13061#define $ac_func innocuous_$ac_func 13062 13063/* System header to define __stub macros and hopefully few prototypes, 13064 which can conflict with char $ac_func (); below. 13065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13066 <limits.h> exists even on freestanding compilers. */ 13067 13068#ifdef __STDC__ 13069# include <limits.h> 13070#else 13071# include <assert.h> 13072#endif 13073 13074#undef $ac_func 13075 13076/* Override any GCC internal prototype to avoid an error. 13077 Use char because int might match the return type of a GCC 13078 builtin and then its argument prototype would still apply. */ 13079#ifdef __cplusplus 13080extern "C" 13081#endif 13082char $ac_func (); 13083/* The GNU C library defines this for functions which it implements 13084 to always fail with ENOSYS. Some functions are actually named 13085 something starting with __ and the normal name is an alias. */ 13086#if defined __stub_$ac_func || defined __stub___$ac_func 13087choke me 13088#endif 13089 13090int 13091main () 13092{ 13093return $ac_func (); 13094 ; 13095 return 0; 13096} 13097_ACEOF 13098rm -f conftest.$ac_objext conftest$ac_exeext 13099if { (ac_try="$ac_link" 13100case "(($ac_try" in 13101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13102 *) ac_try_echo=$ac_try;; 13103esac 13104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13105 (eval "$ac_link") 2>conftest.er1 13106 ac_status=$? 13107 grep -v '^ *+' conftest.er1 >conftest.err 13108 rm -f conftest.er1 13109 cat conftest.err >&5 13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13111 (exit $ac_status); } && { 13112 test -z "$ac_c_werror_flag" || 13113 test ! -s conftest.err 13114 } && test -s conftest$ac_exeext && 13115 $as_test_x conftest$ac_exeext; then 13116 eval "$as_ac_var=yes" 13117else 13118 echo "$as_me: failed program was:" >&5 13119sed 's/^/| /' conftest.$ac_ext >&5 13120 13121 eval "$as_ac_var=no" 13122fi 13123 13124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13125 conftest$ac_exeext conftest.$ac_ext 13126fi 13127ac_res=`eval echo '${'$as_ac_var'}'` 13128 { echo "$as_me:$LINENO: result: $ac_res" >&5 13129echo "${ECHO_T}$ac_res" >&6; } 13130if test `eval echo '${'$as_ac_var'}'` = yes; then 13131 cat >>confdefs.h <<_ACEOF 13132#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13133_ACEOF 13134 13135 cat >>confdefs.h <<\_ACEOF 13136#define HAVE_GAI_STRERROR 1 13137_ACEOF 13138 13139 cat >conftest.$ac_ext <<_ACEOF 13140/* confdefs.h. */ 13141_ACEOF 13142cat confdefs.h >>conftest.$ac_ext 13143cat >>conftest.$ac_ext <<_ACEOF 13144/* end confdefs.h. */ 13145 13146#include <sys/types.h> 13147#include <sys/socket.h> 13148#include <netdb.h> 13149 13150const char *gai_strerror(int); 13151int 13152main () 13153{ 13154 13155char *str; 13156 13157str = gai_strerror(0); 13158 ; 13159 return 0; 13160} 13161_ACEOF 13162rm -f conftest.$ac_objext 13163if { (ac_try="$ac_compile" 13164case "(($ac_try" in 13165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13166 *) ac_try_echo=$ac_try;; 13167esac 13168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13169 (eval "$ac_compile") 2>conftest.er1 13170 ac_status=$? 13171 grep -v '^ *+' conftest.er1 >conftest.err 13172 rm -f conftest.er1 13173 cat conftest.err >&5 13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13175 (exit $ac_status); } && { 13176 test -z "$ac_c_werror_flag" || 13177 test ! -s conftest.err 13178 } && test -s conftest.$ac_objext; then 13179 13180 13181cat >>confdefs.h <<\_ACEOF 13182#define HAVE_CONST_GAI_STRERROR_PROTO 1 13183_ACEOF 13184 13185else 13186 echo "$as_me: failed program was:" >&5 13187sed 's/^/| /' conftest.$ac_ext >&5 13188 13189 13190fi 13191 13192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13193fi 13194done 13195 13196 13197{ echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 13198echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; } 13199if test "${ac_cv_search_nanosleep+set}" = set; then 13200 echo $ECHO_N "(cached) $ECHO_C" >&6 13201else 13202 ac_func_search_save_LIBS=$LIBS 13203cat >conftest.$ac_ext <<_ACEOF 13204/* confdefs.h. */ 13205_ACEOF 13206cat confdefs.h >>conftest.$ac_ext 13207cat >>conftest.$ac_ext <<_ACEOF 13208/* end confdefs.h. */ 13209 13210/* Override any GCC internal prototype to avoid an error. 13211 Use char because int might match the return type of a GCC 13212 builtin and then its argument prototype would still apply. */ 13213#ifdef __cplusplus 13214extern "C" 13215#endif 13216char nanosleep (); 13217int 13218main () 13219{ 13220return nanosleep (); 13221 ; 13222 return 0; 13223} 13224_ACEOF 13225for ac_lib in '' rt posix4; do 13226 if test -z "$ac_lib"; then 13227 ac_res="none required" 13228 else 13229 ac_res=-l$ac_lib 13230 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13231 fi 13232 rm -f conftest.$ac_objext conftest$ac_exeext 13233if { (ac_try="$ac_link" 13234case "(($ac_try" in 13235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13236 *) ac_try_echo=$ac_try;; 13237esac 13238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13239 (eval "$ac_link") 2>conftest.er1 13240 ac_status=$? 13241 grep -v '^ *+' conftest.er1 >conftest.err 13242 rm -f conftest.er1 13243 cat conftest.err >&5 13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13245 (exit $ac_status); } && { 13246 test -z "$ac_c_werror_flag" || 13247 test ! -s conftest.err 13248 } && test -s conftest$ac_exeext && 13249 $as_test_x conftest$ac_exeext; then 13250 ac_cv_search_nanosleep=$ac_res 13251else 13252 echo "$as_me: failed program was:" >&5 13253sed 's/^/| /' conftest.$ac_ext >&5 13254 13255 13256fi 13257 13258rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13259 conftest$ac_exeext 13260 if test "${ac_cv_search_nanosleep+set}" = set; then 13261 break 13262fi 13263done 13264if test "${ac_cv_search_nanosleep+set}" = set; then 13265 : 13266else 13267 ac_cv_search_nanosleep=no 13268fi 13269rm conftest.$ac_ext 13270LIBS=$ac_func_search_save_LIBS 13271fi 13272{ echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 13273echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; } 13274ac_res=$ac_cv_search_nanosleep 13275if test "$ac_res" != no; then 13276 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13277 13278cat >>confdefs.h <<\_ACEOF 13279#define HAVE_NANOSLEEP 1 13280_ACEOF 13281 13282fi 13283 13284 13285{ echo "$as_me:$LINENO: checking whether getrusage is declared" >&5 13286echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; } 13287if test "${ac_cv_have_decl_getrusage+set}" = set; then 13288 echo $ECHO_N "(cached) $ECHO_C" >&6 13289else 13290 cat >conftest.$ac_ext <<_ACEOF 13291/* confdefs.h. */ 13292_ACEOF 13293cat confdefs.h >>conftest.$ac_ext 13294cat >>conftest.$ac_ext <<_ACEOF 13295/* end confdefs.h. */ 13296$ac_includes_default 13297int 13298main () 13299{ 13300#ifndef getrusage 13301 (void) getrusage; 13302#endif 13303 13304 ; 13305 return 0; 13306} 13307_ACEOF 13308rm -f conftest.$ac_objext 13309if { (ac_try="$ac_compile" 13310case "(($ac_try" in 13311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13312 *) ac_try_echo=$ac_try;; 13313esac 13314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13315 (eval "$ac_compile") 2>conftest.er1 13316 ac_status=$? 13317 grep -v '^ *+' conftest.er1 >conftest.err 13318 rm -f conftest.er1 13319 cat conftest.err >&5 13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13321 (exit $ac_status); } && { 13322 test -z "$ac_c_werror_flag" || 13323 test ! -s conftest.err 13324 } && test -s conftest.$ac_objext; then 13325 ac_cv_have_decl_getrusage=yes 13326else 13327 echo "$as_me: failed program was:" >&5 13328sed 's/^/| /' conftest.$ac_ext >&5 13329 13330 ac_cv_have_decl_getrusage=no 13331fi 13332 13333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13334fi 13335{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5 13336echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; } 13337if test $ac_cv_have_decl_getrusage = yes; then 13338 13339for ac_func in getrusage 13340do 13341as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13342{ echo "$as_me:$LINENO: checking for $ac_func" >&5 13343echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 13344if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13345 echo $ECHO_N "(cached) $ECHO_C" >&6 13346else 13347 cat >conftest.$ac_ext <<_ACEOF 13348/* confdefs.h. */ 13349_ACEOF 13350cat confdefs.h >>conftest.$ac_ext 13351cat >>conftest.$ac_ext <<_ACEOF 13352/* end confdefs.h. */ 13353/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13354 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13355#define $ac_func innocuous_$ac_func 13356 13357/* System header to define __stub macros and hopefully few prototypes, 13358 which can conflict with char $ac_func (); below. 13359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13360 <limits.h> exists even on freestanding compilers. */ 13361 13362#ifdef __STDC__ 13363# include <limits.h> 13364#else 13365# include <assert.h> 13366#endif 13367 13368#undef $ac_func 13369 13370/* Override any GCC internal prototype to avoid an error. 13371 Use char because int might match the return type of a GCC 13372 builtin and then its argument prototype would still apply. */ 13373#ifdef __cplusplus 13374extern "C" 13375#endif 13376char $ac_func (); 13377/* The GNU C library defines this for functions which it implements 13378 to always fail with ENOSYS. Some functions are actually named 13379 something starting with __ and the normal name is an alias. */ 13380#if defined __stub_$ac_func || defined __stub___$ac_func 13381choke me 13382#endif 13383 13384int 13385main () 13386{ 13387return $ac_func (); 13388 ; 13389 return 0; 13390} 13391_ACEOF 13392rm -f conftest.$ac_objext conftest$ac_exeext 13393if { (ac_try="$ac_link" 13394case "(($ac_try" in 13395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13396 *) ac_try_echo=$ac_try;; 13397esac 13398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13399 (eval "$ac_link") 2>conftest.er1 13400 ac_status=$? 13401 grep -v '^ *+' conftest.er1 >conftest.err 13402 rm -f conftest.er1 13403 cat conftest.err >&5 13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13405 (exit $ac_status); } && { 13406 test -z "$ac_c_werror_flag" || 13407 test ! -s conftest.err 13408 } && test -s conftest$ac_exeext && 13409 $as_test_x conftest$ac_exeext; then 13410 eval "$as_ac_var=yes" 13411else 13412 echo "$as_me: failed program was:" >&5 13413sed 's/^/| /' conftest.$ac_ext >&5 13414 13415 eval "$as_ac_var=no" 13416fi 13417 13418rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13419 conftest$ac_exeext conftest.$ac_ext 13420fi 13421ac_res=`eval echo '${'$as_ac_var'}'` 13422 { echo "$as_me:$LINENO: result: $ac_res" >&5 13423echo "${ECHO_T}$ac_res" >&6; } 13424if test `eval echo '${'$as_ac_var'}'` = yes; then 13425 cat >>confdefs.h <<_ACEOF 13426#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13427_ACEOF 13428 13429fi 13430done 13431 13432fi 13433 13434{ echo "$as_me:$LINENO: checking whether strsep is declared" >&5 13435echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; } 13436if test "${ac_cv_have_decl_strsep+set}" = set; then 13437 echo $ECHO_N "(cached) $ECHO_C" >&6 13438else 13439 cat >conftest.$ac_ext <<_ACEOF 13440/* confdefs.h. */ 13441_ACEOF 13442cat confdefs.h >>conftest.$ac_ext 13443cat >>conftest.$ac_ext <<_ACEOF 13444/* end confdefs.h. */ 13445 13446#ifdef HAVE_STRING_H 13447# include <string.h> 13448#endif 13449 13450 13451int 13452main () 13453{ 13454#ifndef strsep 13455 (void) strsep; 13456#endif 13457 13458 ; 13459 return 0; 13460} 13461_ACEOF 13462rm -f conftest.$ac_objext 13463if { (ac_try="$ac_compile" 13464case "(($ac_try" in 13465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13466 *) ac_try_echo=$ac_try;; 13467esac 13468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13469 (eval "$ac_compile") 2>conftest.er1 13470 ac_status=$? 13471 grep -v '^ *+' conftest.er1 >conftest.err 13472 rm -f conftest.er1 13473 cat conftest.err >&5 13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13475 (exit $ac_status); } && { 13476 test -z "$ac_c_werror_flag" || 13477 test ! -s conftest.err 13478 } && test -s conftest.$ac_objext; then 13479 ac_cv_have_decl_strsep=yes 13480else 13481 echo "$as_me: failed program was:" >&5 13482sed 's/^/| /' conftest.$ac_ext >&5 13483 13484 ac_cv_have_decl_strsep=no 13485fi 13486 13487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13488fi 13489{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5 13490echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; } 13491if test $ac_cv_have_decl_strsep = yes; then 13492 13493for ac_func in strsep 13494do 13495as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13496{ echo "$as_me:$LINENO: checking for $ac_func" >&5 13497echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 13498if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13499 echo $ECHO_N "(cached) $ECHO_C" >&6 13500else 13501 cat >conftest.$ac_ext <<_ACEOF 13502/* confdefs.h. */ 13503_ACEOF 13504cat confdefs.h >>conftest.$ac_ext 13505cat >>conftest.$ac_ext <<_ACEOF 13506/* end confdefs.h. */ 13507/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13508 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13509#define $ac_func innocuous_$ac_func 13510 13511/* System header to define __stub macros and hopefully few prototypes, 13512 which can conflict with char $ac_func (); below. 13513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13514 <limits.h> exists even on freestanding compilers. */ 13515 13516#ifdef __STDC__ 13517# include <limits.h> 13518#else 13519# include <assert.h> 13520#endif 13521 13522#undef $ac_func 13523 13524/* Override any GCC internal prototype to avoid an error. 13525 Use char because int might match the return type of a GCC 13526 builtin and then its argument prototype would still apply. */ 13527#ifdef __cplusplus 13528extern "C" 13529#endif 13530char $ac_func (); 13531/* The GNU C library defines this for functions which it implements 13532 to always fail with ENOSYS. Some functions are actually named 13533 something starting with __ and the normal name is an alias. */ 13534#if defined __stub_$ac_func || defined __stub___$ac_func 13535choke me 13536#endif 13537 13538int 13539main () 13540{ 13541return $ac_func (); 13542 ; 13543 return 0; 13544} 13545_ACEOF 13546rm -f conftest.$ac_objext conftest$ac_exeext 13547if { (ac_try="$ac_link" 13548case "(($ac_try" in 13549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13550 *) ac_try_echo=$ac_try;; 13551esac 13552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13553 (eval "$ac_link") 2>conftest.er1 13554 ac_status=$? 13555 grep -v '^ *+' conftest.er1 >conftest.err 13556 rm -f conftest.er1 13557 cat conftest.err >&5 13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13559 (exit $ac_status); } && { 13560 test -z "$ac_c_werror_flag" || 13561 test ! -s conftest.err 13562 } && test -s conftest$ac_exeext && 13563 $as_test_x conftest$ac_exeext; then 13564 eval "$as_ac_var=yes" 13565else 13566 echo "$as_me: failed program was:" >&5 13567sed 's/^/| /' conftest.$ac_ext >&5 13568 13569 eval "$as_ac_var=no" 13570fi 13571 13572rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13573 conftest$ac_exeext conftest.$ac_ext 13574fi 13575ac_res=`eval echo '${'$as_ac_var'}'` 13576 { echo "$as_me:$LINENO: result: $ac_res" >&5 13577echo "${ECHO_T}$ac_res" >&6; } 13578if test `eval echo '${'$as_ac_var'}'` = yes; then 13579 cat >>confdefs.h <<_ACEOF 13580#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13581_ACEOF 13582 13583fi 13584done 13585 13586fi 13587 13588 13589{ echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5 13590echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; } 13591if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then 13592 echo $ECHO_N "(cached) $ECHO_C" >&6 13593else 13594 cat >conftest.$ac_ext <<_ACEOF 13595/* confdefs.h. */ 13596_ACEOF 13597cat confdefs.h >>conftest.$ac_ext 13598cat >>conftest.$ac_ext <<_ACEOF 13599/* end confdefs.h. */ 13600#include <termios.h> 13601 13602 13603int 13604main () 13605{ 13606#ifndef tcsendbreak 13607 (void) tcsendbreak; 13608#endif 13609 13610 ; 13611 return 0; 13612} 13613_ACEOF 13614rm -f conftest.$ac_objext 13615if { (ac_try="$ac_compile" 13616case "(($ac_try" in 13617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13618 *) ac_try_echo=$ac_try;; 13619esac 13620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13621 (eval "$ac_compile") 2>conftest.er1 13622 ac_status=$? 13623 grep -v '^ *+' conftest.er1 >conftest.err 13624 rm -f conftest.er1 13625 cat conftest.err >&5 13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13627 (exit $ac_status); } && { 13628 test -z "$ac_c_werror_flag" || 13629 test ! -s conftest.err 13630 } && test -s conftest.$ac_objext; then 13631 ac_cv_have_decl_tcsendbreak=yes 13632else 13633 echo "$as_me: failed program was:" >&5 13634sed 's/^/| /' conftest.$ac_ext >&5 13635 13636 ac_cv_have_decl_tcsendbreak=no 13637fi 13638 13639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13640fi 13641{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5 13642echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; } 13643if test $ac_cv_have_decl_tcsendbreak = yes; then 13644 cat >>confdefs.h <<\_ACEOF 13645#define HAVE_TCSENDBREAK 1 13646_ACEOF 13647 13648else 13649 13650for ac_func in tcsendbreak 13651do 13652as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13653{ echo "$as_me:$LINENO: checking for $ac_func" >&5 13654echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 13655if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13656 echo $ECHO_N "(cached) $ECHO_C" >&6 13657else 13658 cat >conftest.$ac_ext <<_ACEOF 13659/* confdefs.h. */ 13660_ACEOF 13661cat confdefs.h >>conftest.$ac_ext 13662cat >>conftest.$ac_ext <<_ACEOF 13663/* end confdefs.h. */ 13664/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13665 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13666#define $ac_func innocuous_$ac_func 13667 13668/* System header to define __stub macros and hopefully few prototypes, 13669 which can conflict with char $ac_func (); below. 13670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13671 <limits.h> exists even on freestanding compilers. */ 13672 13673#ifdef __STDC__ 13674# include <limits.h> 13675#else 13676# include <assert.h> 13677#endif 13678 13679#undef $ac_func 13680 13681/* Override any GCC internal prototype to avoid an error. 13682 Use char because int might match the return type of a GCC 13683 builtin and then its argument prototype would still apply. */ 13684#ifdef __cplusplus 13685extern "C" 13686#endif 13687char $ac_func (); 13688/* The GNU C library defines this for functions which it implements 13689 to always fail with ENOSYS. Some functions are actually named 13690 something starting with __ and the normal name is an alias. */ 13691#if defined __stub_$ac_func || defined __stub___$ac_func 13692choke me 13693#endif 13694 13695int 13696main () 13697{ 13698return $ac_func (); 13699 ; 13700 return 0; 13701} 13702_ACEOF 13703rm -f conftest.$ac_objext conftest$ac_exeext 13704if { (ac_try="$ac_link" 13705case "(($ac_try" in 13706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13707 *) ac_try_echo=$ac_try;; 13708esac 13709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13710 (eval "$ac_link") 2>conftest.er1 13711 ac_status=$? 13712 grep -v '^ *+' conftest.er1 >conftest.err 13713 rm -f conftest.er1 13714 cat conftest.err >&5 13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13716 (exit $ac_status); } && { 13717 test -z "$ac_c_werror_flag" || 13718 test ! -s conftest.err 13719 } && test -s conftest$ac_exeext && 13720 $as_test_x conftest$ac_exeext; then 13721 eval "$as_ac_var=yes" 13722else 13723 echo "$as_me: failed program was:" >&5 13724sed 's/^/| /' conftest.$ac_ext >&5 13725 13726 eval "$as_ac_var=no" 13727fi 13728 13729rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13730 conftest$ac_exeext conftest.$ac_ext 13731fi 13732ac_res=`eval echo '${'$as_ac_var'}'` 13733 { echo "$as_me:$LINENO: result: $ac_res" >&5 13734echo "${ECHO_T}$ac_res" >&6; } 13735if test `eval echo '${'$as_ac_var'}'` = yes; then 13736 cat >>confdefs.h <<_ACEOF 13737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13738_ACEOF 13739 13740fi 13741done 13742 13743fi 13744 13745 13746{ echo "$as_me:$LINENO: checking whether h_errno is declared" >&5 13747echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; } 13748if test "${ac_cv_have_decl_h_errno+set}" = set; then 13749 echo $ECHO_N "(cached) $ECHO_C" >&6 13750else 13751 cat >conftest.$ac_ext <<_ACEOF 13752/* confdefs.h. */ 13753_ACEOF 13754cat confdefs.h >>conftest.$ac_ext 13755cat >>conftest.$ac_ext <<_ACEOF 13756/* end confdefs.h. */ 13757#include <netdb.h> 13758 13759int 13760main () 13761{ 13762#ifndef h_errno 13763 (void) h_errno; 13764#endif 13765 13766 ; 13767 return 0; 13768} 13769_ACEOF 13770rm -f conftest.$ac_objext 13771if { (ac_try="$ac_compile" 13772case "(($ac_try" in 13773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13774 *) ac_try_echo=$ac_try;; 13775esac 13776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13777 (eval "$ac_compile") 2>conftest.er1 13778 ac_status=$? 13779 grep -v '^ *+' conftest.er1 >conftest.err 13780 rm -f conftest.er1 13781 cat conftest.err >&5 13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13783 (exit $ac_status); } && { 13784 test -z "$ac_c_werror_flag" || 13785 test ! -s conftest.err 13786 } && test -s conftest.$ac_objext; then 13787 ac_cv_have_decl_h_errno=yes 13788else 13789 echo "$as_me: failed program was:" >&5 13790sed 's/^/| /' conftest.$ac_ext >&5 13791 13792 ac_cv_have_decl_h_errno=no 13793fi 13794 13795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13796fi 13797{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5 13798echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; } 13799if test $ac_cv_have_decl_h_errno = yes; then 13800 13801cat >>confdefs.h <<_ACEOF 13802#define HAVE_DECL_H_ERRNO 1 13803_ACEOF 13804 13805 13806else 13807 cat >>confdefs.h <<_ACEOF 13808#define HAVE_DECL_H_ERRNO 0 13809_ACEOF 13810 13811 13812fi 13813 13814 13815 13816{ echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5 13817echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; } 13818if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then 13819 echo $ECHO_N "(cached) $ECHO_C" >&6 13820else 13821 cat >conftest.$ac_ext <<_ACEOF 13822/* confdefs.h. */ 13823_ACEOF 13824cat confdefs.h >>conftest.$ac_ext 13825cat >>conftest.$ac_ext <<_ACEOF 13826/* end confdefs.h. */ 13827 13828#include <sys/types.h> 13829#include <sys/socket.h> 13830 13831 13832int 13833main () 13834{ 13835#ifndef SHUT_RD 13836 (void) SHUT_RD; 13837#endif 13838 13839 ; 13840 return 0; 13841} 13842_ACEOF 13843rm -f conftest.$ac_objext 13844if { (ac_try="$ac_compile" 13845case "(($ac_try" in 13846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13847 *) ac_try_echo=$ac_try;; 13848esac 13849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13850 (eval "$ac_compile") 2>conftest.er1 13851 ac_status=$? 13852 grep -v '^ *+' conftest.er1 >conftest.err 13853 rm -f conftest.er1 13854 cat conftest.err >&5 13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13856 (exit $ac_status); } && { 13857 test -z "$ac_c_werror_flag" || 13858 test ! -s conftest.err 13859 } && test -s conftest.$ac_objext; then 13860 ac_cv_have_decl_SHUT_RD=yes 13861else 13862 echo "$as_me: failed program was:" >&5 13863sed 's/^/| /' conftest.$ac_ext >&5 13864 13865 ac_cv_have_decl_SHUT_RD=no 13866fi 13867 13868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13869fi 13870{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5 13871echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; } 13872if test $ac_cv_have_decl_SHUT_RD = yes; then 13873 13874cat >>confdefs.h <<_ACEOF 13875#define HAVE_DECL_SHUT_RD 1 13876_ACEOF 13877 13878 13879else 13880 cat >>confdefs.h <<_ACEOF 13881#define HAVE_DECL_SHUT_RD 0 13882_ACEOF 13883 13884 13885fi 13886 13887 13888 13889{ echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5 13890echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; } 13891if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then 13892 echo $ECHO_N "(cached) $ECHO_C" >&6 13893else 13894 cat >conftest.$ac_ext <<_ACEOF 13895/* confdefs.h. */ 13896_ACEOF 13897cat confdefs.h >>conftest.$ac_ext 13898cat >>conftest.$ac_ext <<_ACEOF 13899/* end confdefs.h. */ 13900 13901#include <sys/types.h> 13902#ifdef HAVE_SYS_STAT_H 13903# include <sys/stat.h> 13904#endif 13905#ifdef HAVE_FCNTL_H 13906# include <fcntl.h> 13907#endif 13908 13909 13910int 13911main () 13912{ 13913#ifndef O_NONBLOCK 13914 (void) O_NONBLOCK; 13915#endif 13916 13917 ; 13918 return 0; 13919} 13920_ACEOF 13921rm -f conftest.$ac_objext 13922if { (ac_try="$ac_compile" 13923case "(($ac_try" in 13924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13925 *) ac_try_echo=$ac_try;; 13926esac 13927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13928 (eval "$ac_compile") 2>conftest.er1 13929 ac_status=$? 13930 grep -v '^ *+' conftest.er1 >conftest.err 13931 rm -f conftest.er1 13932 cat conftest.err >&5 13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13934 (exit $ac_status); } && { 13935 test -z "$ac_c_werror_flag" || 13936 test ! -s conftest.err 13937 } && test -s conftest.$ac_objext; then 13938 ac_cv_have_decl_O_NONBLOCK=yes 13939else 13940 echo "$as_me: failed program was:" >&5 13941sed 's/^/| /' conftest.$ac_ext >&5 13942 13943 ac_cv_have_decl_O_NONBLOCK=no 13944fi 13945 13946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13947fi 13948{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5 13949echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; } 13950if test $ac_cv_have_decl_O_NONBLOCK = yes; then 13951 13952cat >>confdefs.h <<_ACEOF 13953#define HAVE_DECL_O_NONBLOCK 1 13954_ACEOF 13955 13956 13957else 13958 cat >>confdefs.h <<_ACEOF 13959#define HAVE_DECL_O_NONBLOCK 0 13960_ACEOF 13961 13962 13963fi 13964 13965 13966 13967{ echo "$as_me:$LINENO: checking whether writev is declared" >&5 13968echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; } 13969if test "${ac_cv_have_decl_writev+set}" = set; then 13970 echo $ECHO_N "(cached) $ECHO_C" >&6 13971else 13972 cat >conftest.$ac_ext <<_ACEOF 13973/* confdefs.h. */ 13974_ACEOF 13975cat confdefs.h >>conftest.$ac_ext 13976cat >>conftest.$ac_ext <<_ACEOF 13977/* end confdefs.h. */ 13978 13979#include <sys/types.h> 13980#include <sys/uio.h> 13981#include <unistd.h> 13982 13983 13984int 13985main () 13986{ 13987#ifndef writev 13988 (void) writev; 13989#endif 13990 13991 ; 13992 return 0; 13993} 13994_ACEOF 13995rm -f conftest.$ac_objext 13996if { (ac_try="$ac_compile" 13997case "(($ac_try" in 13998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13999 *) ac_try_echo=$ac_try;; 14000esac 14001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14002 (eval "$ac_compile") 2>conftest.er1 14003 ac_status=$? 14004 grep -v '^ *+' conftest.er1 >conftest.err 14005 rm -f conftest.er1 14006 cat conftest.err >&5 14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14008 (exit $ac_status); } && { 14009 test -z "$ac_c_werror_flag" || 14010 test ! -s conftest.err 14011 } && test -s conftest.$ac_objext; then 14012 ac_cv_have_decl_writev=yes 14013else 14014 echo "$as_me: failed program was:" >&5 14015sed 's/^/| /' conftest.$ac_ext >&5 14016 14017 ac_cv_have_decl_writev=no 14018fi 14019 14020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14021fi 14022{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5 14023echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; } 14024if test $ac_cv_have_decl_writev = yes; then 14025 14026cat >>confdefs.h <<_ACEOF 14027#define HAVE_DECL_WRITEV 1 14028_ACEOF 14029 14030 14031else 14032 cat >>confdefs.h <<_ACEOF 14033#define HAVE_DECL_WRITEV 0 14034_ACEOF 14035 14036 14037fi 14038 14039 14040 14041{ echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5 14042echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; } 14043if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then 14044 echo $ECHO_N "(cached) $ECHO_C" >&6 14045else 14046 cat >conftest.$ac_ext <<_ACEOF 14047/* confdefs.h. */ 14048_ACEOF 14049cat confdefs.h >>conftest.$ac_ext 14050cat >>conftest.$ac_ext <<_ACEOF 14051/* end confdefs.h. */ 14052 14053#include <sys/param.h> 14054 14055 14056int 14057main () 14058{ 14059#ifndef MAXSYMLINKS 14060 (void) MAXSYMLINKS; 14061#endif 14062 14063 ; 14064 return 0; 14065} 14066_ACEOF 14067rm -f conftest.$ac_objext 14068if { (ac_try="$ac_compile" 14069case "(($ac_try" in 14070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14071 *) ac_try_echo=$ac_try;; 14072esac 14073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14074 (eval "$ac_compile") 2>conftest.er1 14075 ac_status=$? 14076 grep -v '^ *+' conftest.er1 >conftest.err 14077 rm -f conftest.er1 14078 cat conftest.err >&5 14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14080 (exit $ac_status); } && { 14081 test -z "$ac_c_werror_flag" || 14082 test ! -s conftest.err 14083 } && test -s conftest.$ac_objext; then 14084 ac_cv_have_decl_MAXSYMLINKS=yes 14085else 14086 echo "$as_me: failed program was:" >&5 14087sed 's/^/| /' conftest.$ac_ext >&5 14088 14089 ac_cv_have_decl_MAXSYMLINKS=no 14090fi 14091 14092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14093fi 14094{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5 14095echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; } 14096if test $ac_cv_have_decl_MAXSYMLINKS = yes; then 14097 14098cat >>confdefs.h <<_ACEOF 14099#define HAVE_DECL_MAXSYMLINKS 1 14100_ACEOF 14101 14102 14103else 14104 cat >>confdefs.h <<_ACEOF 14105#define HAVE_DECL_MAXSYMLINKS 0 14106_ACEOF 14107 14108 14109fi 14110 14111 14112 14113{ echo "$as_me:$LINENO: checking whether offsetof is declared" >&5 14114echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; } 14115if test "${ac_cv_have_decl_offsetof+set}" = set; then 14116 echo $ECHO_N "(cached) $ECHO_C" >&6 14117else 14118 cat >conftest.$ac_ext <<_ACEOF 14119/* confdefs.h. */ 14120_ACEOF 14121cat confdefs.h >>conftest.$ac_ext 14122cat >>conftest.$ac_ext <<_ACEOF 14123/* end confdefs.h. */ 14124 14125#include <stddef.h> 14126 14127 14128int 14129main () 14130{ 14131#ifndef offsetof 14132 (void) offsetof; 14133#endif 14134 14135 ; 14136 return 0; 14137} 14138_ACEOF 14139rm -f conftest.$ac_objext 14140if { (ac_try="$ac_compile" 14141case "(($ac_try" in 14142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14143 *) ac_try_echo=$ac_try;; 14144esac 14145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14146 (eval "$ac_compile") 2>conftest.er1 14147 ac_status=$? 14148 grep -v '^ *+' conftest.er1 >conftest.err 14149 rm -f conftest.er1 14150 cat conftest.err >&5 14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14152 (exit $ac_status); } && { 14153 test -z "$ac_c_werror_flag" || 14154 test ! -s conftest.err 14155 } && test -s conftest.$ac_objext; then 14156 ac_cv_have_decl_offsetof=yes 14157else 14158 echo "$as_me: failed program was:" >&5 14159sed 's/^/| /' conftest.$ac_ext >&5 14160 14161 ac_cv_have_decl_offsetof=no 14162fi 14163 14164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14165fi 14166{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5 14167echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; } 14168if test $ac_cv_have_decl_offsetof = yes; then 14169 14170cat >>confdefs.h <<_ACEOF 14171#define HAVE_DECL_OFFSETOF 1 14172_ACEOF 14173 14174 14175else 14176 cat >>confdefs.h <<_ACEOF 14177#define HAVE_DECL_OFFSETOF 0 14178_ACEOF 14179 14180 14181fi 14182 14183 14184 14185 14186for ac_func in setresuid 14187do 14188as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14189{ echo "$as_me:$LINENO: checking for $ac_func" >&5 14190echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14191if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14192 echo $ECHO_N "(cached) $ECHO_C" >&6 14193else 14194 cat >conftest.$ac_ext <<_ACEOF 14195/* confdefs.h. */ 14196_ACEOF 14197cat confdefs.h >>conftest.$ac_ext 14198cat >>conftest.$ac_ext <<_ACEOF 14199/* end confdefs.h. */ 14200/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14201 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14202#define $ac_func innocuous_$ac_func 14203 14204/* System header to define __stub macros and hopefully few prototypes, 14205 which can conflict with char $ac_func (); below. 14206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14207 <limits.h> exists even on freestanding compilers. */ 14208 14209#ifdef __STDC__ 14210# include <limits.h> 14211#else 14212# include <assert.h> 14213#endif 14214 14215#undef $ac_func 14216 14217/* Override any GCC internal prototype to avoid an error. 14218 Use char because int might match the return type of a GCC 14219 builtin and then its argument prototype would still apply. */ 14220#ifdef __cplusplus 14221extern "C" 14222#endif 14223char $ac_func (); 14224/* The GNU C library defines this for functions which it implements 14225 to always fail with ENOSYS. Some functions are actually named 14226 something starting with __ and the normal name is an alias. */ 14227#if defined __stub_$ac_func || defined __stub___$ac_func 14228choke me 14229#endif 14230 14231int 14232main () 14233{ 14234return $ac_func (); 14235 ; 14236 return 0; 14237} 14238_ACEOF 14239rm -f conftest.$ac_objext conftest$ac_exeext 14240if { (ac_try="$ac_link" 14241case "(($ac_try" in 14242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14243 *) ac_try_echo=$ac_try;; 14244esac 14245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14246 (eval "$ac_link") 2>conftest.er1 14247 ac_status=$? 14248 grep -v '^ *+' conftest.er1 >conftest.err 14249 rm -f conftest.er1 14250 cat conftest.err >&5 14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14252 (exit $ac_status); } && { 14253 test -z "$ac_c_werror_flag" || 14254 test ! -s conftest.err 14255 } && test -s conftest$ac_exeext && 14256 $as_test_x conftest$ac_exeext; then 14257 eval "$as_ac_var=yes" 14258else 14259 echo "$as_me: failed program was:" >&5 14260sed 's/^/| /' conftest.$ac_ext >&5 14261 14262 eval "$as_ac_var=no" 14263fi 14264 14265rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14266 conftest$ac_exeext conftest.$ac_ext 14267fi 14268ac_res=`eval echo '${'$as_ac_var'}'` 14269 { echo "$as_me:$LINENO: result: $ac_res" >&5 14270echo "${ECHO_T}$ac_res" >&6; } 14271if test `eval echo '${'$as_ac_var'}'` = yes; then 14272 cat >>confdefs.h <<_ACEOF 14273#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14274_ACEOF 14275 14276 { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5 14277echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; } 14278 if test "$cross_compiling" = yes; then 14279 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 14280echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} 14281 14282else 14283 cat >conftest.$ac_ext <<_ACEOF 14284/* confdefs.h. */ 14285_ACEOF 14286cat confdefs.h >>conftest.$ac_ext 14287cat >>conftest.$ac_ext <<_ACEOF 14288/* end confdefs.h. */ 14289 14290#include <stdlib.h> 14291#include <errno.h> 14292int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} 14293 14294_ACEOF 14295rm -f conftest$ac_exeext 14296if { (ac_try="$ac_link" 14297case "(($ac_try" in 14298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14299 *) ac_try_echo=$ac_try;; 14300esac 14301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14302 (eval "$ac_link") 2>&5 14303 ac_status=$? 14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14306 { (case "(($ac_try" in 14307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14308 *) ac_try_echo=$ac_try;; 14309esac 14310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14311 (eval "$ac_try") 2>&5 14312 ac_status=$? 14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14314 (exit $ac_status); }; }; then 14315 { echo "$as_me:$LINENO: result: yes" >&5 14316echo "${ECHO_T}yes" >&6; } 14317else 14318 echo "$as_me: program exited with status $ac_status" >&5 14319echo "$as_me: failed program was:" >&5 14320sed 's/^/| /' conftest.$ac_ext >&5 14321 14322( exit $ac_status ) 14323 14324cat >>confdefs.h <<\_ACEOF 14325#define BROKEN_SETRESUID 1 14326_ACEOF 14327 14328 { echo "$as_me:$LINENO: result: not implemented" >&5 14329echo "${ECHO_T}not implemented" >&6; } 14330fi 14331rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14332fi 14333 14334 14335 14336fi 14337done 14338 14339 14340 14341for ac_func in setresgid 14342do 14343as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14344{ echo "$as_me:$LINENO: checking for $ac_func" >&5 14345echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14346if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14347 echo $ECHO_N "(cached) $ECHO_C" >&6 14348else 14349 cat >conftest.$ac_ext <<_ACEOF 14350/* confdefs.h. */ 14351_ACEOF 14352cat confdefs.h >>conftest.$ac_ext 14353cat >>conftest.$ac_ext <<_ACEOF 14354/* end confdefs.h. */ 14355/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14356 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14357#define $ac_func innocuous_$ac_func 14358 14359/* System header to define __stub macros and hopefully few prototypes, 14360 which can conflict with char $ac_func (); below. 14361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14362 <limits.h> exists even on freestanding compilers. */ 14363 14364#ifdef __STDC__ 14365# include <limits.h> 14366#else 14367# include <assert.h> 14368#endif 14369 14370#undef $ac_func 14371 14372/* Override any GCC internal prototype to avoid an error. 14373 Use char because int might match the return type of a GCC 14374 builtin and then its argument prototype would still apply. */ 14375#ifdef __cplusplus 14376extern "C" 14377#endif 14378char $ac_func (); 14379/* The GNU C library defines this for functions which it implements 14380 to always fail with ENOSYS. Some functions are actually named 14381 something starting with __ and the normal name is an alias. */ 14382#if defined __stub_$ac_func || defined __stub___$ac_func 14383choke me 14384#endif 14385 14386int 14387main () 14388{ 14389return $ac_func (); 14390 ; 14391 return 0; 14392} 14393_ACEOF 14394rm -f conftest.$ac_objext conftest$ac_exeext 14395if { (ac_try="$ac_link" 14396case "(($ac_try" in 14397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14398 *) ac_try_echo=$ac_try;; 14399esac 14400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14401 (eval "$ac_link") 2>conftest.er1 14402 ac_status=$? 14403 grep -v '^ *+' conftest.er1 >conftest.err 14404 rm -f conftest.er1 14405 cat conftest.err >&5 14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14407 (exit $ac_status); } && { 14408 test -z "$ac_c_werror_flag" || 14409 test ! -s conftest.err 14410 } && test -s conftest$ac_exeext && 14411 $as_test_x conftest$ac_exeext; then 14412 eval "$as_ac_var=yes" 14413else 14414 echo "$as_me: failed program was:" >&5 14415sed 's/^/| /' conftest.$ac_ext >&5 14416 14417 eval "$as_ac_var=no" 14418fi 14419 14420rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14421 conftest$ac_exeext conftest.$ac_ext 14422fi 14423ac_res=`eval echo '${'$as_ac_var'}'` 14424 { echo "$as_me:$LINENO: result: $ac_res" >&5 14425echo "${ECHO_T}$ac_res" >&6; } 14426if test `eval echo '${'$as_ac_var'}'` = yes; then 14427 cat >>confdefs.h <<_ACEOF 14428#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14429_ACEOF 14430 14431 { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5 14432echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; } 14433 if test "$cross_compiling" = yes; then 14434 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 14435echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} 14436 14437else 14438 cat >conftest.$ac_ext <<_ACEOF 14439/* confdefs.h. */ 14440_ACEOF 14441cat confdefs.h >>conftest.$ac_ext 14442cat >>conftest.$ac_ext <<_ACEOF 14443/* end confdefs.h. */ 14444 14445#include <stdlib.h> 14446#include <errno.h> 14447int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} 14448 14449_ACEOF 14450rm -f conftest$ac_exeext 14451if { (ac_try="$ac_link" 14452case "(($ac_try" in 14453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14454 *) ac_try_echo=$ac_try;; 14455esac 14456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14457 (eval "$ac_link") 2>&5 14458 ac_status=$? 14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14461 { (case "(($ac_try" in 14462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14463 *) ac_try_echo=$ac_try;; 14464esac 14465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14466 (eval "$ac_try") 2>&5 14467 ac_status=$? 14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14469 (exit $ac_status); }; }; then 14470 { echo "$as_me:$LINENO: result: yes" >&5 14471echo "${ECHO_T}yes" >&6; } 14472else 14473 echo "$as_me: program exited with status $ac_status" >&5 14474echo "$as_me: failed program was:" >&5 14475sed 's/^/| /' conftest.$ac_ext >&5 14476 14477( exit $ac_status ) 14478 14479cat >>confdefs.h <<\_ACEOF 14480#define BROKEN_SETRESGID 1 14481_ACEOF 14482 14483 { echo "$as_me:$LINENO: result: not implemented" >&5 14484echo "${ECHO_T}not implemented" >&6; } 14485fi 14486rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14487fi 14488 14489 14490 14491fi 14492done 14493 14494 14495 14496 14497for ac_func in gettimeofday time 14498do 14499as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14500{ echo "$as_me:$LINENO: checking for $ac_func" >&5 14501echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14502if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14503 echo $ECHO_N "(cached) $ECHO_C" >&6 14504else 14505 cat >conftest.$ac_ext <<_ACEOF 14506/* confdefs.h. */ 14507_ACEOF 14508cat confdefs.h >>conftest.$ac_ext 14509cat >>conftest.$ac_ext <<_ACEOF 14510/* end confdefs.h. */ 14511/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14512 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14513#define $ac_func innocuous_$ac_func 14514 14515/* System header to define __stub macros and hopefully few prototypes, 14516 which can conflict with char $ac_func (); below. 14517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14518 <limits.h> exists even on freestanding compilers. */ 14519 14520#ifdef __STDC__ 14521# include <limits.h> 14522#else 14523# include <assert.h> 14524#endif 14525 14526#undef $ac_func 14527 14528/* Override any GCC internal prototype to avoid an error. 14529 Use char because int might match the return type of a GCC 14530 builtin and then its argument prototype would still apply. */ 14531#ifdef __cplusplus 14532extern "C" 14533#endif 14534char $ac_func (); 14535/* The GNU C library defines this for functions which it implements 14536 to always fail with ENOSYS. Some functions are actually named 14537 something starting with __ and the normal name is an alias. */ 14538#if defined __stub_$ac_func || defined __stub___$ac_func 14539choke me 14540#endif 14541 14542int 14543main () 14544{ 14545return $ac_func (); 14546 ; 14547 return 0; 14548} 14549_ACEOF 14550rm -f conftest.$ac_objext conftest$ac_exeext 14551if { (ac_try="$ac_link" 14552case "(($ac_try" in 14553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14554 *) ac_try_echo=$ac_try;; 14555esac 14556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14557 (eval "$ac_link") 2>conftest.er1 14558 ac_status=$? 14559 grep -v '^ *+' conftest.er1 >conftest.err 14560 rm -f conftest.er1 14561 cat conftest.err >&5 14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14563 (exit $ac_status); } && { 14564 test -z "$ac_c_werror_flag" || 14565 test ! -s conftest.err 14566 } && test -s conftest$ac_exeext && 14567 $as_test_x conftest$ac_exeext; then 14568 eval "$as_ac_var=yes" 14569else 14570 echo "$as_me: failed program was:" >&5 14571sed 's/^/| /' conftest.$ac_ext >&5 14572 14573 eval "$as_ac_var=no" 14574fi 14575 14576rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14577 conftest$ac_exeext conftest.$ac_ext 14578fi 14579ac_res=`eval echo '${'$as_ac_var'}'` 14580 { echo "$as_me:$LINENO: result: $ac_res" >&5 14581echo "${ECHO_T}$ac_res" >&6; } 14582if test `eval echo '${'$as_ac_var'}'` = yes; then 14583 cat >>confdefs.h <<_ACEOF 14584#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14585_ACEOF 14586 14587fi 14588done 14589 14590 14591 14592 14593 14594 14595 14596for ac_func in endutent getutent getutid getutline pututline setutent 14597do 14598as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14599{ echo "$as_me:$LINENO: checking for $ac_func" >&5 14600echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14601if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14602 echo $ECHO_N "(cached) $ECHO_C" >&6 14603else 14604 cat >conftest.$ac_ext <<_ACEOF 14605/* confdefs.h. */ 14606_ACEOF 14607cat confdefs.h >>conftest.$ac_ext 14608cat >>conftest.$ac_ext <<_ACEOF 14609/* end confdefs.h. */ 14610/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14611 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14612#define $ac_func innocuous_$ac_func 14613 14614/* System header to define __stub macros and hopefully few prototypes, 14615 which can conflict with char $ac_func (); below. 14616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14617 <limits.h> exists even on freestanding compilers. */ 14618 14619#ifdef __STDC__ 14620# include <limits.h> 14621#else 14622# include <assert.h> 14623#endif 14624 14625#undef $ac_func 14626 14627/* Override any GCC internal prototype to avoid an error. 14628 Use char because int might match the return type of a GCC 14629 builtin and then its argument prototype would still apply. */ 14630#ifdef __cplusplus 14631extern "C" 14632#endif 14633char $ac_func (); 14634/* The GNU C library defines this for functions which it implements 14635 to always fail with ENOSYS. Some functions are actually named 14636 something starting with __ and the normal name is an alias. */ 14637#if defined __stub_$ac_func || defined __stub___$ac_func 14638choke me 14639#endif 14640 14641int 14642main () 14643{ 14644return $ac_func (); 14645 ; 14646 return 0; 14647} 14648_ACEOF 14649rm -f conftest.$ac_objext conftest$ac_exeext 14650if { (ac_try="$ac_link" 14651case "(($ac_try" in 14652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14653 *) ac_try_echo=$ac_try;; 14654esac 14655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14656 (eval "$ac_link") 2>conftest.er1 14657 ac_status=$? 14658 grep -v '^ *+' conftest.er1 >conftest.err 14659 rm -f conftest.er1 14660 cat conftest.err >&5 14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14662 (exit $ac_status); } && { 14663 test -z "$ac_c_werror_flag" || 14664 test ! -s conftest.err 14665 } && test -s conftest$ac_exeext && 14666 $as_test_x conftest$ac_exeext; then 14667 eval "$as_ac_var=yes" 14668else 14669 echo "$as_me: failed program was:" >&5 14670sed 's/^/| /' conftest.$ac_ext >&5 14671 14672 eval "$as_ac_var=no" 14673fi 14674 14675rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14676 conftest$ac_exeext conftest.$ac_ext 14677fi 14678ac_res=`eval echo '${'$as_ac_var'}'` 14679 { echo "$as_me:$LINENO: result: $ac_res" >&5 14680echo "${ECHO_T}$ac_res" >&6; } 14681if test `eval echo '${'$as_ac_var'}'` = yes; then 14682 cat >>confdefs.h <<_ACEOF 14683#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14684_ACEOF 14685 14686fi 14687done 14688 14689 14690for ac_func in utmpname 14691do 14692as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14693{ echo "$as_me:$LINENO: checking for $ac_func" >&5 14694echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14695if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14696 echo $ECHO_N "(cached) $ECHO_C" >&6 14697else 14698 cat >conftest.$ac_ext <<_ACEOF 14699/* confdefs.h. */ 14700_ACEOF 14701cat confdefs.h >>conftest.$ac_ext 14702cat >>conftest.$ac_ext <<_ACEOF 14703/* end confdefs.h. */ 14704/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14705 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14706#define $ac_func innocuous_$ac_func 14707 14708/* System header to define __stub macros and hopefully few prototypes, 14709 which can conflict with char $ac_func (); below. 14710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14711 <limits.h> exists even on freestanding compilers. */ 14712 14713#ifdef __STDC__ 14714# include <limits.h> 14715#else 14716# include <assert.h> 14717#endif 14718 14719#undef $ac_func 14720 14721/* Override any GCC internal prototype to avoid an error. 14722 Use char because int might match the return type of a GCC 14723 builtin and then its argument prototype would still apply. */ 14724#ifdef __cplusplus 14725extern "C" 14726#endif 14727char $ac_func (); 14728/* The GNU C library defines this for functions which it implements 14729 to always fail with ENOSYS. Some functions are actually named 14730 something starting with __ and the normal name is an alias. */ 14731#if defined __stub_$ac_func || defined __stub___$ac_func 14732choke me 14733#endif 14734 14735int 14736main () 14737{ 14738return $ac_func (); 14739 ; 14740 return 0; 14741} 14742_ACEOF 14743rm -f conftest.$ac_objext conftest$ac_exeext 14744if { (ac_try="$ac_link" 14745case "(($ac_try" in 14746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14747 *) ac_try_echo=$ac_try;; 14748esac 14749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14750 (eval "$ac_link") 2>conftest.er1 14751 ac_status=$? 14752 grep -v '^ *+' conftest.er1 >conftest.err 14753 rm -f conftest.er1 14754 cat conftest.err >&5 14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14756 (exit $ac_status); } && { 14757 test -z "$ac_c_werror_flag" || 14758 test ! -s conftest.err 14759 } && test -s conftest$ac_exeext && 14760 $as_test_x conftest$ac_exeext; then 14761 eval "$as_ac_var=yes" 14762else 14763 echo "$as_me: failed program was:" >&5 14764sed 's/^/| /' conftest.$ac_ext >&5 14765 14766 eval "$as_ac_var=no" 14767fi 14768 14769rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14770 conftest$ac_exeext conftest.$ac_ext 14771fi 14772ac_res=`eval echo '${'$as_ac_var'}'` 14773 { echo "$as_me:$LINENO: result: $ac_res" >&5 14774echo "${ECHO_T}$ac_res" >&6; } 14775if test `eval echo '${'$as_ac_var'}'` = yes; then 14776 cat >>confdefs.h <<_ACEOF 14777#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14778_ACEOF 14779 14780fi 14781done 14782 14783 14784 14785 14786 14787 14788for ac_func in endutxent getutxent getutxid getutxline pututxline 14789do 14790as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14791{ echo "$as_me:$LINENO: checking for $ac_func" >&5 14792echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14793if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14794 echo $ECHO_N "(cached) $ECHO_C" >&6 14795else 14796 cat >conftest.$ac_ext <<_ACEOF 14797/* confdefs.h. */ 14798_ACEOF 14799cat confdefs.h >>conftest.$ac_ext 14800cat >>conftest.$ac_ext <<_ACEOF 14801/* end confdefs.h. */ 14802/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14803 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14804#define $ac_func innocuous_$ac_func 14805 14806/* System header to define __stub macros and hopefully few prototypes, 14807 which can conflict with char $ac_func (); below. 14808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14809 <limits.h> exists even on freestanding compilers. */ 14810 14811#ifdef __STDC__ 14812# include <limits.h> 14813#else 14814# include <assert.h> 14815#endif 14816 14817#undef $ac_func 14818 14819/* Override any GCC internal prototype to avoid an error. 14820 Use char because int might match the return type of a GCC 14821 builtin and then its argument prototype would still apply. */ 14822#ifdef __cplusplus 14823extern "C" 14824#endif 14825char $ac_func (); 14826/* The GNU C library defines this for functions which it implements 14827 to always fail with ENOSYS. Some functions are actually named 14828 something starting with __ and the normal name is an alias. */ 14829#if defined __stub_$ac_func || defined __stub___$ac_func 14830choke me 14831#endif 14832 14833int 14834main () 14835{ 14836return $ac_func (); 14837 ; 14838 return 0; 14839} 14840_ACEOF 14841rm -f conftest.$ac_objext conftest$ac_exeext 14842if { (ac_try="$ac_link" 14843case "(($ac_try" in 14844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14845 *) ac_try_echo=$ac_try;; 14846esac 14847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14848 (eval "$ac_link") 2>conftest.er1 14849 ac_status=$? 14850 grep -v '^ *+' conftest.er1 >conftest.err 14851 rm -f conftest.er1 14852 cat conftest.err >&5 14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14854 (exit $ac_status); } && { 14855 test -z "$ac_c_werror_flag" || 14856 test ! -s conftest.err 14857 } && test -s conftest$ac_exeext && 14858 $as_test_x conftest$ac_exeext; then 14859 eval "$as_ac_var=yes" 14860else 14861 echo "$as_me: failed program was:" >&5 14862sed 's/^/| /' conftest.$ac_ext >&5 14863 14864 eval "$as_ac_var=no" 14865fi 14866 14867rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14868 conftest$ac_exeext conftest.$ac_ext 14869fi 14870ac_res=`eval echo '${'$as_ac_var'}'` 14871 { echo "$as_me:$LINENO: result: $ac_res" >&5 14872echo "${ECHO_T}$ac_res" >&6; } 14873if test `eval echo '${'$as_ac_var'}'` = yes; then 14874 cat >>confdefs.h <<_ACEOF 14875#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14876_ACEOF 14877 14878fi 14879done 14880 14881 14882 14883for ac_func in setutxent utmpxname 14884do 14885as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14886{ echo "$as_me:$LINENO: checking for $ac_func" >&5 14887echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14888if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14889 echo $ECHO_N "(cached) $ECHO_C" >&6 14890else 14891 cat >conftest.$ac_ext <<_ACEOF 14892/* confdefs.h. */ 14893_ACEOF 14894cat confdefs.h >>conftest.$ac_ext 14895cat >>conftest.$ac_ext <<_ACEOF 14896/* end confdefs.h. */ 14897/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14898 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14899#define $ac_func innocuous_$ac_func 14900 14901/* System header to define __stub macros and hopefully few prototypes, 14902 which can conflict with char $ac_func (); below. 14903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14904 <limits.h> exists even on freestanding compilers. */ 14905 14906#ifdef __STDC__ 14907# include <limits.h> 14908#else 14909# include <assert.h> 14910#endif 14911 14912#undef $ac_func 14913 14914/* Override any GCC internal prototype to avoid an error. 14915 Use char because int might match the return type of a GCC 14916 builtin and then its argument prototype would still apply. */ 14917#ifdef __cplusplus 14918extern "C" 14919#endif 14920char $ac_func (); 14921/* The GNU C library defines this for functions which it implements 14922 to always fail with ENOSYS. Some functions are actually named 14923 something starting with __ and the normal name is an alias. */ 14924#if defined __stub_$ac_func || defined __stub___$ac_func 14925choke me 14926#endif 14927 14928int 14929main () 14930{ 14931return $ac_func (); 14932 ; 14933 return 0; 14934} 14935_ACEOF 14936rm -f conftest.$ac_objext conftest$ac_exeext 14937if { (ac_try="$ac_link" 14938case "(($ac_try" in 14939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14940 *) ac_try_echo=$ac_try;; 14941esac 14942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14943 (eval "$ac_link") 2>conftest.er1 14944 ac_status=$? 14945 grep -v '^ *+' conftest.er1 >conftest.err 14946 rm -f conftest.er1 14947 cat conftest.err >&5 14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14949 (exit $ac_status); } && { 14950 test -z "$ac_c_werror_flag" || 14951 test ! -s conftest.err 14952 } && test -s conftest$ac_exeext && 14953 $as_test_x conftest$ac_exeext; then 14954 eval "$as_ac_var=yes" 14955else 14956 echo "$as_me: failed program was:" >&5 14957sed 's/^/| /' conftest.$ac_ext >&5 14958 14959 eval "$as_ac_var=no" 14960fi 14961 14962rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14963 conftest$ac_exeext conftest.$ac_ext 14964fi 14965ac_res=`eval echo '${'$as_ac_var'}'` 14966 { echo "$as_me:$LINENO: result: $ac_res" >&5 14967echo "${ECHO_T}$ac_res" >&6; } 14968if test `eval echo '${'$as_ac_var'}'` = yes; then 14969 cat >>confdefs.h <<_ACEOF 14970#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14971_ACEOF 14972 14973fi 14974done 14975 14976 14977for ac_func in getlastlogxbyname 14978do 14979as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14980{ echo "$as_me:$LINENO: checking for $ac_func" >&5 14981echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14982if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14983 echo $ECHO_N "(cached) $ECHO_C" >&6 14984else 14985 cat >conftest.$ac_ext <<_ACEOF 14986/* confdefs.h. */ 14987_ACEOF 14988cat confdefs.h >>conftest.$ac_ext 14989cat >>conftest.$ac_ext <<_ACEOF 14990/* end confdefs.h. */ 14991/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14992 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14993#define $ac_func innocuous_$ac_func 14994 14995/* System header to define __stub macros and hopefully few prototypes, 14996 which can conflict with char $ac_func (); below. 14997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14998 <limits.h> exists even on freestanding compilers. */ 14999 15000#ifdef __STDC__ 15001# include <limits.h> 15002#else 15003# include <assert.h> 15004#endif 15005 15006#undef $ac_func 15007 15008/* Override any GCC internal prototype to avoid an error. 15009 Use char because int might match the return type of a GCC 15010 builtin and then its argument prototype would still apply. */ 15011#ifdef __cplusplus 15012extern "C" 15013#endif 15014char $ac_func (); 15015/* The GNU C library defines this for functions which it implements 15016 to always fail with ENOSYS. Some functions are actually named 15017 something starting with __ and the normal name is an alias. */ 15018#if defined __stub_$ac_func || defined __stub___$ac_func 15019choke me 15020#endif 15021 15022int 15023main () 15024{ 15025return $ac_func (); 15026 ; 15027 return 0; 15028} 15029_ACEOF 15030rm -f conftest.$ac_objext conftest$ac_exeext 15031if { (ac_try="$ac_link" 15032case "(($ac_try" in 15033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15034 *) ac_try_echo=$ac_try;; 15035esac 15036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15037 (eval "$ac_link") 2>conftest.er1 15038 ac_status=$? 15039 grep -v '^ *+' conftest.er1 >conftest.err 15040 rm -f conftest.er1 15041 cat conftest.err >&5 15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15043 (exit $ac_status); } && { 15044 test -z "$ac_c_werror_flag" || 15045 test ! -s conftest.err 15046 } && test -s conftest$ac_exeext && 15047 $as_test_x conftest$ac_exeext; then 15048 eval "$as_ac_var=yes" 15049else 15050 echo "$as_me: failed program was:" >&5 15051sed 's/^/| /' conftest.$ac_ext >&5 15052 15053 eval "$as_ac_var=no" 15054fi 15055 15056rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15057 conftest$ac_exeext conftest.$ac_ext 15058fi 15059ac_res=`eval echo '${'$as_ac_var'}'` 15060 { echo "$as_me:$LINENO: result: $ac_res" >&5 15061echo "${ECHO_T}$ac_res" >&6; } 15062if test `eval echo '${'$as_ac_var'}'` = yes; then 15063 cat >>confdefs.h <<_ACEOF 15064#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 15065_ACEOF 15066 15067fi 15068done 15069 15070 15071{ echo "$as_me:$LINENO: checking for daemon" >&5 15072echo $ECHO_N "checking for daemon... $ECHO_C" >&6; } 15073if test "${ac_cv_func_daemon+set}" = set; then 15074 echo $ECHO_N "(cached) $ECHO_C" >&6 15075else 15076 cat >conftest.$ac_ext <<_ACEOF 15077/* confdefs.h. */ 15078_ACEOF 15079cat confdefs.h >>conftest.$ac_ext 15080cat >>conftest.$ac_ext <<_ACEOF 15081/* end confdefs.h. */ 15082/* Define daemon to an innocuous variant, in case <limits.h> declares daemon. 15083 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15084#define daemon innocuous_daemon 15085 15086/* System header to define __stub macros and hopefully few prototypes, 15087 which can conflict with char daemon (); below. 15088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15089 <limits.h> exists even on freestanding compilers. */ 15090 15091#ifdef __STDC__ 15092# include <limits.h> 15093#else 15094# include <assert.h> 15095#endif 15096 15097#undef daemon 15098 15099/* Override any GCC internal prototype to avoid an error. 15100 Use char because int might match the return type of a GCC 15101 builtin and then its argument prototype would still apply. */ 15102#ifdef __cplusplus 15103extern "C" 15104#endif 15105char daemon (); 15106/* The GNU C library defines this for functions which it implements 15107 to always fail with ENOSYS. Some functions are actually named 15108 something starting with __ and the normal name is an alias. */ 15109#if defined __stub_daemon || defined __stub___daemon 15110choke me 15111#endif 15112 15113int 15114main () 15115{ 15116return daemon (); 15117 ; 15118 return 0; 15119} 15120_ACEOF 15121rm -f conftest.$ac_objext conftest$ac_exeext 15122if { (ac_try="$ac_link" 15123case "(($ac_try" in 15124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15125 *) ac_try_echo=$ac_try;; 15126esac 15127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15128 (eval "$ac_link") 2>conftest.er1 15129 ac_status=$? 15130 grep -v '^ *+' conftest.er1 >conftest.err 15131 rm -f conftest.er1 15132 cat conftest.err >&5 15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15134 (exit $ac_status); } && { 15135 test -z "$ac_c_werror_flag" || 15136 test ! -s conftest.err 15137 } && test -s conftest$ac_exeext && 15138 $as_test_x conftest$ac_exeext; then 15139 ac_cv_func_daemon=yes 15140else 15141 echo "$as_me: failed program was:" >&5 15142sed 's/^/| /' conftest.$ac_ext >&5 15143 15144 ac_cv_func_daemon=no 15145fi 15146 15147rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15148 conftest$ac_exeext conftest.$ac_ext 15149fi 15150{ echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 15151echo "${ECHO_T}$ac_cv_func_daemon" >&6; } 15152if test $ac_cv_func_daemon = yes; then 15153 15154cat >>confdefs.h <<\_ACEOF 15155#define HAVE_DAEMON 1 15156_ACEOF 15157 15158else 15159 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5 15160echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; } 15161if test "${ac_cv_lib_bsd_daemon+set}" = set; then 15162 echo $ECHO_N "(cached) $ECHO_C" >&6 15163else 15164 ac_check_lib_save_LIBS=$LIBS 15165LIBS="-lbsd $LIBS" 15166cat >conftest.$ac_ext <<_ACEOF 15167/* confdefs.h. */ 15168_ACEOF 15169cat confdefs.h >>conftest.$ac_ext 15170cat >>conftest.$ac_ext <<_ACEOF 15171/* end confdefs.h. */ 15172 15173/* Override any GCC internal prototype to avoid an error. 15174 Use char because int might match the return type of a GCC 15175 builtin and then its argument prototype would still apply. */ 15176#ifdef __cplusplus 15177extern "C" 15178#endif 15179char daemon (); 15180int 15181main () 15182{ 15183return daemon (); 15184 ; 15185 return 0; 15186} 15187_ACEOF 15188rm -f conftest.$ac_objext conftest$ac_exeext 15189if { (ac_try="$ac_link" 15190case "(($ac_try" in 15191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15192 *) ac_try_echo=$ac_try;; 15193esac 15194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15195 (eval "$ac_link") 2>conftest.er1 15196 ac_status=$? 15197 grep -v '^ *+' conftest.er1 >conftest.err 15198 rm -f conftest.er1 15199 cat conftest.err >&5 15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15201 (exit $ac_status); } && { 15202 test -z "$ac_c_werror_flag" || 15203 test ! -s conftest.err 15204 } && test -s conftest$ac_exeext && 15205 $as_test_x conftest$ac_exeext; then 15206 ac_cv_lib_bsd_daemon=yes 15207else 15208 echo "$as_me: failed program was:" >&5 15209sed 's/^/| /' conftest.$ac_ext >&5 15210 15211 ac_cv_lib_bsd_daemon=no 15212fi 15213 15214rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15215 conftest$ac_exeext conftest.$ac_ext 15216LIBS=$ac_check_lib_save_LIBS 15217fi 15218{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5 15219echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; } 15220if test $ac_cv_lib_bsd_daemon = yes; then 15221 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF 15222#define HAVE_DAEMON 1 15223_ACEOF 15224 15225fi 15226 15227 15228fi 15229 15230 15231{ echo "$as_me:$LINENO: checking for getpagesize" >&5 15232echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; } 15233if test "${ac_cv_func_getpagesize+set}" = set; then 15234 echo $ECHO_N "(cached) $ECHO_C" >&6 15235else 15236 cat >conftest.$ac_ext <<_ACEOF 15237/* confdefs.h. */ 15238_ACEOF 15239cat confdefs.h >>conftest.$ac_ext 15240cat >>conftest.$ac_ext <<_ACEOF 15241/* end confdefs.h. */ 15242/* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize. 15243 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15244#define getpagesize innocuous_getpagesize 15245 15246/* System header to define __stub macros and hopefully few prototypes, 15247 which can conflict with char getpagesize (); below. 15248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15249 <limits.h> exists even on freestanding compilers. */ 15250 15251#ifdef __STDC__ 15252# include <limits.h> 15253#else 15254# include <assert.h> 15255#endif 15256 15257#undef getpagesize 15258 15259/* Override any GCC internal prototype to avoid an error. 15260 Use char because int might match the return type of a GCC 15261 builtin and then its argument prototype would still apply. */ 15262#ifdef __cplusplus 15263extern "C" 15264#endif 15265char getpagesize (); 15266/* The GNU C library defines this for functions which it implements 15267 to always fail with ENOSYS. Some functions are actually named 15268 something starting with __ and the normal name is an alias. */ 15269#if defined __stub_getpagesize || defined __stub___getpagesize 15270choke me 15271#endif 15272 15273int 15274main () 15275{ 15276return getpagesize (); 15277 ; 15278 return 0; 15279} 15280_ACEOF 15281rm -f conftest.$ac_objext conftest$ac_exeext 15282if { (ac_try="$ac_link" 15283case "(($ac_try" in 15284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15285 *) ac_try_echo=$ac_try;; 15286esac 15287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15288 (eval "$ac_link") 2>conftest.er1 15289 ac_status=$? 15290 grep -v '^ *+' conftest.er1 >conftest.err 15291 rm -f conftest.er1 15292 cat conftest.err >&5 15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15294 (exit $ac_status); } && { 15295 test -z "$ac_c_werror_flag" || 15296 test ! -s conftest.err 15297 } && test -s conftest$ac_exeext && 15298 $as_test_x conftest$ac_exeext; then 15299 ac_cv_func_getpagesize=yes 15300else 15301 echo "$as_me: failed program was:" >&5 15302sed 's/^/| /' conftest.$ac_ext >&5 15303 15304 ac_cv_func_getpagesize=no 15305fi 15306 15307rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15308 conftest$ac_exeext conftest.$ac_ext 15309fi 15310{ echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5 15311echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; } 15312if test $ac_cv_func_getpagesize = yes; then 15313 15314cat >>confdefs.h <<\_ACEOF 15315#define HAVE_GETPAGESIZE 1 15316_ACEOF 15317 15318else 15319 { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5 15320echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; } 15321if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then 15322 echo $ECHO_N "(cached) $ECHO_C" >&6 15323else 15324 ac_check_lib_save_LIBS=$LIBS 15325LIBS="-lucb $LIBS" 15326cat >conftest.$ac_ext <<_ACEOF 15327/* confdefs.h. */ 15328_ACEOF 15329cat confdefs.h >>conftest.$ac_ext 15330cat >>conftest.$ac_ext <<_ACEOF 15331/* end confdefs.h. */ 15332 15333/* Override any GCC internal prototype to avoid an error. 15334 Use char because int might match the return type of a GCC 15335 builtin and then its argument prototype would still apply. */ 15336#ifdef __cplusplus 15337extern "C" 15338#endif 15339char getpagesize (); 15340int 15341main () 15342{ 15343return getpagesize (); 15344 ; 15345 return 0; 15346} 15347_ACEOF 15348rm -f conftest.$ac_objext conftest$ac_exeext 15349if { (ac_try="$ac_link" 15350case "(($ac_try" in 15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15352 *) ac_try_echo=$ac_try;; 15353esac 15354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15355 (eval "$ac_link") 2>conftest.er1 15356 ac_status=$? 15357 grep -v '^ *+' conftest.er1 >conftest.err 15358 rm -f conftest.er1 15359 cat conftest.err >&5 15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15361 (exit $ac_status); } && { 15362 test -z "$ac_c_werror_flag" || 15363 test ! -s conftest.err 15364 } && test -s conftest$ac_exeext && 15365 $as_test_x conftest$ac_exeext; then 15366 ac_cv_lib_ucb_getpagesize=yes 15367else 15368 echo "$as_me: failed program was:" >&5 15369sed 's/^/| /' conftest.$ac_ext >&5 15370 15371 ac_cv_lib_ucb_getpagesize=no 15372fi 15373 15374rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15375 conftest$ac_exeext conftest.$ac_ext 15376LIBS=$ac_check_lib_save_LIBS 15377fi 15378{ echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5 15379echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; } 15380if test $ac_cv_lib_ucb_getpagesize = yes; then 15381 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF 15382#define HAVE_GETPAGESIZE 1 15383_ACEOF 15384 15385fi 15386 15387 15388fi 15389 15390 15391# Check for broken snprintf 15392if test "x$ac_cv_func_snprintf" = "xyes" ; then 15393 { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5 15394echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; } 15395 if test "$cross_compiling" = yes; then 15396 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 15397echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} 15398 15399else 15400 cat >conftest.$ac_ext <<_ACEOF 15401/* confdefs.h. */ 15402_ACEOF 15403cat confdefs.h >>conftest.$ac_ext 15404cat >>conftest.$ac_ext <<_ACEOF 15405/* end confdefs.h. */ 15406 15407#include <stdio.h> 15408int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');} 15409 15410_ACEOF 15411rm -f conftest$ac_exeext 15412if { (ac_try="$ac_link" 15413case "(($ac_try" in 15414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15415 *) ac_try_echo=$ac_try;; 15416esac 15417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15418 (eval "$ac_link") 2>&5 15419 ac_status=$? 15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15422 { (case "(($ac_try" in 15423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15424 *) ac_try_echo=$ac_try;; 15425esac 15426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15427 (eval "$ac_try") 2>&5 15428 ac_status=$? 15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15430 (exit $ac_status); }; }; then 15431 { echo "$as_me:$LINENO: result: yes" >&5 15432echo "${ECHO_T}yes" >&6; } 15433else 15434 echo "$as_me: program exited with status $ac_status" >&5 15435echo "$as_me: failed program was:" >&5 15436sed 's/^/| /' conftest.$ac_ext >&5 15437 15438( exit $ac_status ) 15439 15440 { echo "$as_me:$LINENO: result: no" >&5 15441echo "${ECHO_T}no" >&6; } 15442 15443cat >>confdefs.h <<\_ACEOF 15444#define BROKEN_SNPRINTF 1 15445_ACEOF 15446 15447 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 15448echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} 15449 15450fi 15451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15452fi 15453 15454 15455fi 15456 15457# If we don't have a working asprintf, then we strongly depend on vsnprintf 15458# returning the right thing on overflow: the number of characters it tried to 15459# create (as per SUSv3) 15460if test "x$ac_cv_func_asprintf" != "xyes" && \ 15461 test "x$ac_cv_func_vsnprintf" = "xyes" ; then 15462 { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5 15463echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; } 15464 if test "$cross_compiling" = yes; then 15465 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5 15466echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;} 15467 15468else 15469 cat >conftest.$ac_ext <<_ACEOF 15470/* confdefs.h. */ 15471_ACEOF 15472cat confdefs.h >>conftest.$ac_ext 15473cat >>conftest.$ac_ext <<_ACEOF 15474/* end confdefs.h. */ 15475 15476#include <sys/types.h> 15477#include <stdio.h> 15478#include <stdarg.h> 15479 15480int x_snprintf(char *str,size_t count,const char *fmt,...) 15481{ 15482 size_t ret; va_list ap; 15483 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap); 15484 return ret; 15485} 15486int main(void) 15487{ 15488 char x[1]; 15489 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1); 15490} 15491_ACEOF 15492rm -f conftest$ac_exeext 15493if { (ac_try="$ac_link" 15494case "(($ac_try" in 15495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15496 *) ac_try_echo=$ac_try;; 15497esac 15498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15499 (eval "$ac_link") 2>&5 15500 ac_status=$? 15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15503 { (case "(($ac_try" in 15504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15505 *) ac_try_echo=$ac_try;; 15506esac 15507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15508 (eval "$ac_try") 2>&5 15509 ac_status=$? 15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15511 (exit $ac_status); }; }; then 15512 { echo "$as_me:$LINENO: result: yes" >&5 15513echo "${ECHO_T}yes" >&6; } 15514else 15515 echo "$as_me: program exited with status $ac_status" >&5 15516echo "$as_me: failed program was:" >&5 15517sed 's/^/| /' conftest.$ac_ext >&5 15518 15519( exit $ac_status ) 15520 15521 { echo "$as_me:$LINENO: result: no" >&5 15522echo "${ECHO_T}no" >&6; } 15523 15524cat >>confdefs.h <<\_ACEOF 15525#define BROKEN_SNPRINTF 1 15526_ACEOF 15527 15528 { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5 15529echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;} 15530 15531fi 15532rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15533fi 15534 15535 15536fi 15537 15538# On systems where [v]snprintf is broken, but is declared in stdio, 15539# check that the fmt argument is const char * or just char *. 15540# This is only useful for when BROKEN_SNPRINTF 15541{ echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5 15542echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; } 15543cat >conftest.$ac_ext <<_ACEOF 15544/* confdefs.h. */ 15545_ACEOF 15546cat confdefs.h >>conftest.$ac_ext 15547cat >>conftest.$ac_ext <<_ACEOF 15548/* end confdefs.h. */ 15549#include <stdio.h> 15550 int snprintf(char *a, size_t b, const char *c, ...) { return 0; } 15551 int main(void) { snprintf(0, 0, 0); } 15552 15553_ACEOF 15554rm -f conftest.$ac_objext 15555if { (ac_try="$ac_compile" 15556case "(($ac_try" in 15557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15558 *) ac_try_echo=$ac_try;; 15559esac 15560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15561 (eval "$ac_compile") 2>conftest.er1 15562 ac_status=$? 15563 grep -v '^ *+' conftest.er1 >conftest.err 15564 rm -f conftest.er1 15565 cat conftest.err >&5 15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15567 (exit $ac_status); } && { 15568 test -z "$ac_c_werror_flag" || 15569 test ! -s conftest.err 15570 } && test -s conftest.$ac_objext; then 15571 { echo "$as_me:$LINENO: result: yes" >&5 15572echo "${ECHO_T}yes" >&6; } 15573 15574cat >>confdefs.h <<\_ACEOF 15575#define SNPRINTF_CONST const 15576_ACEOF 15577 15578else 15579 echo "$as_me: failed program was:" >&5 15580sed 's/^/| /' conftest.$ac_ext >&5 15581 15582 { echo "$as_me:$LINENO: result: no" >&5 15583echo "${ECHO_T}no" >&6; } 15584 cat >>confdefs.h <<\_ACEOF 15585#define SNPRINTF_CONST /* not const */ 15586_ACEOF 15587 15588fi 15589 15590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15591 15592# Check for missing getpeereid (or equiv) support 15593NO_PEERCHECK="" 15594if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then 15595 { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5 15596echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; } 15597 cat >conftest.$ac_ext <<_ACEOF 15598/* confdefs.h. */ 15599_ACEOF 15600cat confdefs.h >>conftest.$ac_ext 15601cat >>conftest.$ac_ext <<_ACEOF 15602/* end confdefs.h. */ 15603#include <sys/types.h> 15604 #include <sys/socket.h> 15605int 15606main () 15607{ 15608int i = SO_PEERCRED; 15609 ; 15610 return 0; 15611} 15612_ACEOF 15613rm -f conftest.$ac_objext 15614if { (ac_try="$ac_compile" 15615case "(($ac_try" in 15616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15617 *) ac_try_echo=$ac_try;; 15618esac 15619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15620 (eval "$ac_compile") 2>conftest.er1 15621 ac_status=$? 15622 grep -v '^ *+' conftest.er1 >conftest.err 15623 rm -f conftest.er1 15624 cat conftest.err >&5 15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15626 (exit $ac_status); } && { 15627 test -z "$ac_c_werror_flag" || 15628 test ! -s conftest.err 15629 } && test -s conftest.$ac_objext; then 15630 { echo "$as_me:$LINENO: result: yes" >&5 15631echo "${ECHO_T}yes" >&6; } 15632 15633cat >>confdefs.h <<\_ACEOF 15634#define HAVE_SO_PEERCRED 1 15635_ACEOF 15636 15637 15638else 15639 echo "$as_me: failed program was:" >&5 15640sed 's/^/| /' conftest.$ac_ext >&5 15641 15642 { echo "$as_me:$LINENO: result: no" >&5 15643echo "${ECHO_T}no" >&6; } 15644 NO_PEERCHECK=1 15645 15646fi 15647 15648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15649fi 15650 15651if test "x$ac_cv_func_mkdtemp" = "xyes" ; then 15652{ echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5 15653echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; } 15654if test "$cross_compiling" = yes; then 15655 15656 { echo "$as_me:$LINENO: result: yes" >&5 15657echo "${ECHO_T}yes" >&6; } 15658 cat >>confdefs.h <<\_ACEOF 15659#define HAVE_STRICT_MKSTEMP 1 15660_ACEOF 15661 15662 15663 15664else 15665 cat >conftest.$ac_ext <<_ACEOF 15666/* confdefs.h. */ 15667_ACEOF 15668cat confdefs.h >>conftest.$ac_ext 15669cat >>conftest.$ac_ext <<_ACEOF 15670/* end confdefs.h. */ 15671 15672#include <stdlib.h> 15673main() { char template[]="conftest.mkstemp-test"; 15674if (mkstemp(template) == -1) 15675 exit(1); 15676unlink(template); exit(0); 15677} 15678 15679_ACEOF 15680rm -f conftest$ac_exeext 15681if { (ac_try="$ac_link" 15682case "(($ac_try" in 15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15684 *) ac_try_echo=$ac_try;; 15685esac 15686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15687 (eval "$ac_link") 2>&5 15688 ac_status=$? 15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15691 { (case "(($ac_try" in 15692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15693 *) ac_try_echo=$ac_try;; 15694esac 15695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15696 (eval "$ac_try") 2>&5 15697 ac_status=$? 15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15699 (exit $ac_status); }; }; then 15700 15701 { echo "$as_me:$LINENO: result: no" >&5 15702echo "${ECHO_T}no" >&6; } 15703 15704else 15705 echo "$as_me: program exited with status $ac_status" >&5 15706echo "$as_me: failed program was:" >&5 15707sed 's/^/| /' conftest.$ac_ext >&5 15708 15709( exit $ac_status ) 15710 15711 { echo "$as_me:$LINENO: result: yes" >&5 15712echo "${ECHO_T}yes" >&6; } 15713 15714cat >>confdefs.h <<\_ACEOF 15715#define HAVE_STRICT_MKSTEMP 1 15716_ACEOF 15717 15718 15719fi 15720rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15721fi 15722 15723 15724fi 15725 15726if test ! -z "$check_for_openpty_ctty_bug"; then 15727 { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5 15728echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; } 15729 if test "$cross_compiling" = yes; then 15730 15731 { echo "$as_me:$LINENO: result: cross-compiling" >&5 15732echo "${ECHO_T}cross-compiling" >&6; } 15733 15734 15735else 15736 cat >conftest.$ac_ext <<_ACEOF 15737/* confdefs.h. */ 15738_ACEOF 15739cat confdefs.h >>conftest.$ac_ext 15740cat >>conftest.$ac_ext <<_ACEOF 15741/* end confdefs.h. */ 15742 15743#include <stdio.h> 15744#include <sys/fcntl.h> 15745#include <sys/types.h> 15746#include <sys/wait.h> 15747 15748int 15749main() 15750{ 15751 pid_t pid; 15752 int fd, ptyfd, ttyfd, status; 15753 15754 pid = fork(); 15755 if (pid < 0) { /* failed */ 15756 exit(1); 15757 } else if (pid > 0) { /* parent */ 15758 waitpid(pid, &status, 0); 15759 if (WIFEXITED(status)) 15760 exit(WEXITSTATUS(status)); 15761 else 15762 exit(2); 15763 } else { /* child */ 15764 close(0); close(1); close(2); 15765 setsid(); 15766 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); 15767 fd = open("/dev/tty", O_RDWR | O_NOCTTY); 15768 if (fd >= 0) 15769 exit(3); /* Acquired ctty: broken */ 15770 else 15771 exit(0); /* Did not acquire ctty: OK */ 15772 } 15773} 15774 15775_ACEOF 15776rm -f conftest$ac_exeext 15777if { (ac_try="$ac_link" 15778case "(($ac_try" in 15779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15780 *) ac_try_echo=$ac_try;; 15781esac 15782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15783 (eval "$ac_link") 2>&5 15784 ac_status=$? 15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15787 { (case "(($ac_try" in 15788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15789 *) ac_try_echo=$ac_try;; 15790esac 15791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15792 (eval "$ac_try") 2>&5 15793 ac_status=$? 15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15795 (exit $ac_status); }; }; then 15796 15797 { echo "$as_me:$LINENO: result: yes" >&5 15798echo "${ECHO_T}yes" >&6; } 15799 15800else 15801 echo "$as_me: program exited with status $ac_status" >&5 15802echo "$as_me: failed program was:" >&5 15803sed 's/^/| /' conftest.$ac_ext >&5 15804 15805( exit $ac_status ) 15806 15807 { echo "$as_me:$LINENO: result: no" >&5 15808echo "${ECHO_T}no" >&6; } 15809 cat >>confdefs.h <<\_ACEOF 15810#define SSHD_ACQUIRES_CTTY 1 15811_ACEOF 15812 15813 15814fi 15815rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15816fi 15817 15818 15819fi 15820 15821if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ 15822 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then 15823 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 15824echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; } 15825 if test "$cross_compiling" = yes; then 15826 15827 { echo "$as_me:$LINENO: result: cross-compiling" >&5 15828echo "${ECHO_T}cross-compiling" >&6; } 15829 15830 15831else 15832 cat >conftest.$ac_ext <<_ACEOF 15833/* confdefs.h. */ 15834_ACEOF 15835cat confdefs.h >>conftest.$ac_ext 15836cat >>conftest.$ac_ext <<_ACEOF 15837/* end confdefs.h. */ 15838 15839#include <stdio.h> 15840#include <sys/socket.h> 15841#include <netdb.h> 15842#include <errno.h> 15843#include <netinet/in.h> 15844 15845#define TEST_PORT "2222" 15846 15847int 15848main(void) 15849{ 15850 int err, sock; 15851 struct addrinfo *gai_ai, *ai, hints; 15852 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; 15853 15854 memset(&hints, 0, sizeof(hints)); 15855 hints.ai_family = PF_UNSPEC; 15856 hints.ai_socktype = SOCK_STREAM; 15857 hints.ai_flags = AI_PASSIVE; 15858 15859 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); 15860 if (err != 0) { 15861 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); 15862 exit(1); 15863 } 15864 15865 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { 15866 if (ai->ai_family != AF_INET6) 15867 continue; 15868 15869 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, 15870 sizeof(ntop), strport, sizeof(strport), 15871 NI_NUMERICHOST|NI_NUMERICSERV); 15872 15873 if (err != 0) { 15874 if (err == EAI_SYSTEM) 15875 perror("getnameinfo EAI_SYSTEM"); 15876 else 15877 fprintf(stderr, "getnameinfo failed: %s\n", 15878 gai_strerror(err)); 15879 exit(2); 15880 } 15881 15882 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); 15883 if (sock < 0) 15884 perror("socket"); 15885 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { 15886 if (errno == EBADF) 15887 exit(3); 15888 } 15889 } 15890 exit(0); 15891} 15892 15893_ACEOF 15894rm -f conftest$ac_exeext 15895if { (ac_try="$ac_link" 15896case "(($ac_try" in 15897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15898 *) ac_try_echo=$ac_try;; 15899esac 15900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15901 (eval "$ac_link") 2>&5 15902 ac_status=$? 15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15905 { (case "(($ac_try" in 15906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15907 *) ac_try_echo=$ac_try;; 15908esac 15909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15910 (eval "$ac_try") 2>&5 15911 ac_status=$? 15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15913 (exit $ac_status); }; }; then 15914 15915 { echo "$as_me:$LINENO: result: yes" >&5 15916echo "${ECHO_T}yes" >&6; } 15917 15918else 15919 echo "$as_me: program exited with status $ac_status" >&5 15920echo "$as_me: failed program was:" >&5 15921sed 's/^/| /' conftest.$ac_ext >&5 15922 15923( exit $ac_status ) 15924 15925 { echo "$as_me:$LINENO: result: no" >&5 15926echo "${ECHO_T}no" >&6; } 15927 cat >>confdefs.h <<\_ACEOF 15928#define BROKEN_GETADDRINFO 1 15929_ACEOF 15930 15931 15932fi 15933rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15934fi 15935 15936 15937fi 15938 15939if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ 15940 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then 15941 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 15942echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; } 15943 if test "$cross_compiling" = yes; then 15944 15945 { echo "$as_me:$LINENO: result: cross-compiling" >&5 15946echo "${ECHO_T}cross-compiling" >&6; } 15947 15948 15949else 15950 cat >conftest.$ac_ext <<_ACEOF 15951/* confdefs.h. */ 15952_ACEOF 15953cat confdefs.h >>conftest.$ac_ext 15954cat >>conftest.$ac_ext <<_ACEOF 15955/* end confdefs.h. */ 15956 15957#include <stdio.h> 15958#include <sys/socket.h> 15959#include <netdb.h> 15960#include <errno.h> 15961#include <netinet/in.h> 15962 15963#define TEST_PORT "2222" 15964 15965int 15966main(void) 15967{ 15968 int err, sock; 15969 struct addrinfo *gai_ai, *ai, hints; 15970 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; 15971 15972 memset(&hints, 0, sizeof(hints)); 15973 hints.ai_family = PF_UNSPEC; 15974 hints.ai_socktype = SOCK_STREAM; 15975 hints.ai_flags = AI_PASSIVE; 15976 15977 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); 15978 if (err != 0) { 15979 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); 15980 exit(1); 15981 } 15982 15983 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { 15984 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) 15985 continue; 15986 15987 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, 15988 sizeof(ntop), strport, sizeof(strport), 15989 NI_NUMERICHOST|NI_NUMERICSERV); 15990 15991 if (ai->ai_family == AF_INET && err != 0) { 15992 perror("getnameinfo"); 15993 exit(2); 15994 } 15995 } 15996 exit(0); 15997} 15998 15999_ACEOF 16000rm -f conftest$ac_exeext 16001if { (ac_try="$ac_link" 16002case "(($ac_try" in 16003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16004 *) ac_try_echo=$ac_try;; 16005esac 16006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16007 (eval "$ac_link") 2>&5 16008 ac_status=$? 16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16011 { (case "(($ac_try" in 16012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16013 *) ac_try_echo=$ac_try;; 16014esac 16015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16016 (eval "$ac_try") 2>&5 16017 ac_status=$? 16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16019 (exit $ac_status); }; }; then 16020 16021 { echo "$as_me:$LINENO: result: yes" >&5 16022echo "${ECHO_T}yes" >&6; } 16023 16024cat >>confdefs.h <<\_ACEOF 16025#define AIX_GETNAMEINFO_HACK 1 16026_ACEOF 16027 16028 16029else 16030 echo "$as_me: program exited with status $ac_status" >&5 16031echo "$as_me: failed program was:" >&5 16032sed 's/^/| /' conftest.$ac_ext >&5 16033 16034( exit $ac_status ) 16035 16036 { echo "$as_me:$LINENO: result: no" >&5 16037echo "${ECHO_T}no" >&6; } 16038 cat >>confdefs.h <<\_ACEOF 16039#define BROKEN_GETADDRINFO 1 16040_ACEOF 16041 16042 16043fi 16044rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16045fi 16046 16047 16048fi 16049 16050if test "x$check_for_conflicting_getspnam" = "x1"; then 16051 { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5 16052echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; } 16053 cat >conftest.$ac_ext <<_ACEOF 16054 16055#include <shadow.h> 16056int main(void) {exit(0);} 16057 16058_ACEOF 16059rm -f conftest.$ac_objext 16060if { (ac_try="$ac_compile" 16061case "(($ac_try" in 16062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16063 *) ac_try_echo=$ac_try;; 16064esac 16065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16066 (eval "$ac_compile") 2>conftest.er1 16067 ac_status=$? 16068 grep -v '^ *+' conftest.er1 >conftest.err 16069 rm -f conftest.er1 16070 cat conftest.err >&5 16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16072 (exit $ac_status); } && { 16073 test -z "$ac_c_werror_flag" || 16074 test ! -s conftest.err 16075 } && test -s conftest.$ac_objext; then 16076 16077 { echo "$as_me:$LINENO: result: no" >&5 16078echo "${ECHO_T}no" >&6; } 16079 16080else 16081 echo "$as_me: failed program was:" >&5 16082sed 's/^/| /' conftest.$ac_ext >&5 16083 16084 16085 { echo "$as_me:$LINENO: result: yes" >&5 16086echo "${ECHO_T}yes" >&6; } 16087 16088cat >>confdefs.h <<\_ACEOF 16089#define GETSPNAM_CONFLICTING_DEFS 1 16090_ACEOF 16091 16092 16093 16094fi 16095 16096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16097fi 16098 16099{ echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 16100echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; } 16101if test "${ac_cv_func_getpgrp_void+set}" = set; then 16102 echo $ECHO_N "(cached) $ECHO_C" >&6 16103else 16104 # Use it with a single arg. 16105cat >conftest.$ac_ext <<_ACEOF 16106/* confdefs.h. */ 16107_ACEOF 16108cat confdefs.h >>conftest.$ac_ext 16109cat >>conftest.$ac_ext <<_ACEOF 16110/* end confdefs.h. */ 16111$ac_includes_default 16112int 16113main () 16114{ 16115getpgrp (0); 16116 ; 16117 return 0; 16118} 16119_ACEOF 16120rm -f conftest.$ac_objext 16121if { (ac_try="$ac_compile" 16122case "(($ac_try" in 16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16124 *) ac_try_echo=$ac_try;; 16125esac 16126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16127 (eval "$ac_compile") 2>conftest.er1 16128 ac_status=$? 16129 grep -v '^ *+' conftest.er1 >conftest.err 16130 rm -f conftest.er1 16131 cat conftest.err >&5 16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16133 (exit $ac_status); } && { 16134 test -z "$ac_c_werror_flag" || 16135 test ! -s conftest.err 16136 } && test -s conftest.$ac_objext; then 16137 ac_cv_func_getpgrp_void=no 16138else 16139 echo "$as_me: failed program was:" >&5 16140sed 's/^/| /' conftest.$ac_ext >&5 16141 16142 ac_cv_func_getpgrp_void=yes 16143fi 16144 16145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16146 16147fi 16148{ echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 16149echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; } 16150if test $ac_cv_func_getpgrp_void = yes; then 16151 16152cat >>confdefs.h <<\_ACEOF 16153#define GETPGRP_VOID 1 16154_ACEOF 16155 16156fi 16157 16158 16159# Search for OpenSSL 16160saved_CPPFLAGS="$CPPFLAGS" 16161saved_LDFLAGS="$LDFLAGS" 16162 16163# Check whether --with-ssl-dir was given. 16164if test "${with_ssl_dir+set}" = set; then 16165 withval=$with_ssl_dir; 16166 if test "x$withval" != "xno" ; then 16167 case "$withval" in 16168 # Relative paths 16169 ./*|../*) withval="`pwd`/$withval" 16170 esac 16171 if test -d "$withval/lib"; then 16172 if test -n "${need_dash_r}"; then 16173 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" 16174 else 16175 LDFLAGS="-L${withval}/lib ${LDFLAGS}" 16176 fi 16177 else 16178 if test -n "${need_dash_r}"; then 16179 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" 16180 else 16181 LDFLAGS="-L${withval} ${LDFLAGS}" 16182 fi 16183 fi 16184 if test -d "$withval/include"; then 16185 CPPFLAGS="-I${withval}/include ${CPPFLAGS}" 16186 else 16187 CPPFLAGS="-I${withval} ${CPPFLAGS}" 16188 fi 16189 fi 16190 16191 16192fi 16193 16194LIBS="-lcrypto $LIBS" 16195cat >conftest.$ac_ext <<_ACEOF 16196/* confdefs.h. */ 16197_ACEOF 16198cat confdefs.h >>conftest.$ac_ext 16199cat >>conftest.$ac_ext <<_ACEOF 16200/* end confdefs.h. */ 16201 16202/* Override any GCC internal prototype to avoid an error. 16203 Use char because int might match the return type of a GCC 16204 builtin and then its argument prototype would still apply. */ 16205#ifdef __cplusplus 16206extern "C" 16207#endif 16208char RAND_add (); 16209int 16210main () 16211{ 16212return RAND_add (); 16213 ; 16214 return 0; 16215} 16216_ACEOF 16217rm -f conftest.$ac_objext conftest$ac_exeext 16218if { (ac_try="$ac_link" 16219case "(($ac_try" in 16220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16221 *) ac_try_echo=$ac_try;; 16222esac 16223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16224 (eval "$ac_link") 2>conftest.er1 16225 ac_status=$? 16226 grep -v '^ *+' conftest.er1 >conftest.err 16227 rm -f conftest.er1 16228 cat conftest.err >&5 16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16230 (exit $ac_status); } && { 16231 test -z "$ac_c_werror_flag" || 16232 test ! -s conftest.err 16233 } && test -s conftest$ac_exeext && 16234 $as_test_x conftest$ac_exeext; then 16235 16236cat >>confdefs.h <<\_ACEOF 16237#define HAVE_OPENSSL 1 16238_ACEOF 16239 16240else 16241 echo "$as_me: failed program was:" >&5 16242sed 's/^/| /' conftest.$ac_ext >&5 16243 16244 16245 if test -n "${need_dash_r}"; then 16246 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" 16247 else 16248 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" 16249 fi 16250 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" 16251 cat >conftest.$ac_ext <<_ACEOF 16252/* confdefs.h. */ 16253_ACEOF 16254cat confdefs.h >>conftest.$ac_ext 16255cat >>conftest.$ac_ext <<_ACEOF 16256/* end confdefs.h. */ 16257 16258/* Override any GCC internal prototype to avoid an error. 16259 Use char because int might match the return type of a GCC 16260 builtin and then its argument prototype would still apply. */ 16261#ifdef __cplusplus 16262extern "C" 16263#endif 16264char RAND_add (); 16265int 16266main () 16267{ 16268return RAND_add (); 16269 ; 16270 return 0; 16271} 16272_ACEOF 16273rm -f conftest.$ac_objext conftest$ac_exeext 16274if { (ac_try="$ac_link" 16275case "(($ac_try" in 16276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16277 *) ac_try_echo=$ac_try;; 16278esac 16279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16280 (eval "$ac_link") 2>conftest.er1 16281 ac_status=$? 16282 grep -v '^ *+' conftest.er1 >conftest.err 16283 rm -f conftest.er1 16284 cat conftest.err >&5 16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16286 (exit $ac_status); } && { 16287 test -z "$ac_c_werror_flag" || 16288 test ! -s conftest.err 16289 } && test -s conftest$ac_exeext && 16290 $as_test_x conftest$ac_exeext; then 16291 cat >>confdefs.h <<\_ACEOF 16292#define HAVE_OPENSSL 1 16293_ACEOF 16294 16295else 16296 echo "$as_me: failed program was:" >&5 16297sed 's/^/| /' conftest.$ac_ext >&5 16298 16299 16300 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5 16301echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;} 16302 { (exit 1); exit 1; }; } 16303 16304 16305fi 16306 16307rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16308 conftest$ac_exeext conftest.$ac_ext 16309 16310 16311fi 16312 16313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16314 conftest$ac_exeext conftest.$ac_ext 16315 16316# Determine OpenSSL header version 16317{ echo "$as_me:$LINENO: checking OpenSSL header version" >&5 16318echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; } 16319if test "$cross_compiling" = yes; then 16320 16321 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 16322echo "$as_me: WARNING: cross compiling: not checking" >&2;} 16323 16324 16325else 16326 cat >conftest.$ac_ext <<_ACEOF 16327/* confdefs.h. */ 16328_ACEOF 16329cat confdefs.h >>conftest.$ac_ext 16330cat >>conftest.$ac_ext <<_ACEOF 16331/* end confdefs.h. */ 16332 16333#include <stdio.h> 16334#include <string.h> 16335#include <openssl/opensslv.h> 16336#define DATA "conftest.sslincver" 16337int main(void) { 16338 FILE *fd; 16339 int rc; 16340 16341 fd = fopen(DATA,"w"); 16342 if(fd == NULL) 16343 exit(1); 16344 16345 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) 16346 exit(1); 16347 16348 exit(0); 16349} 16350 16351_ACEOF 16352rm -f conftest$ac_exeext 16353if { (ac_try="$ac_link" 16354case "(($ac_try" in 16355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16356 *) ac_try_echo=$ac_try;; 16357esac 16358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16359 (eval "$ac_link") 2>&5 16360 ac_status=$? 16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16363 { (case "(($ac_try" in 16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16365 *) ac_try_echo=$ac_try;; 16366esac 16367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16368 (eval "$ac_try") 2>&5 16369 ac_status=$? 16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16371 (exit $ac_status); }; }; then 16372 16373 ssl_header_ver=`cat conftest.sslincver` 16374 { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5 16375echo "${ECHO_T}$ssl_header_ver" >&6; } 16376 16377else 16378 echo "$as_me: program exited with status $ac_status" >&5 16379echo "$as_me: failed program was:" >&5 16380sed 's/^/| /' conftest.$ac_ext >&5 16381 16382( exit $ac_status ) 16383 16384 { echo "$as_me:$LINENO: result: not found" >&5 16385echo "${ECHO_T}not found" >&6; } 16386 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5 16387echo "$as_me: error: OpenSSL version header not found." >&2;} 16388 { (exit 1); exit 1; }; } 16389 16390fi 16391rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16392fi 16393 16394 16395 16396# Determine OpenSSL library version 16397{ echo "$as_me:$LINENO: checking OpenSSL library version" >&5 16398echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; } 16399if test "$cross_compiling" = yes; then 16400 16401 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 16402echo "$as_me: WARNING: cross compiling: not checking" >&2;} 16403 16404 16405else 16406 cat >conftest.$ac_ext <<_ACEOF 16407/* confdefs.h. */ 16408_ACEOF 16409cat confdefs.h >>conftest.$ac_ext 16410cat >>conftest.$ac_ext <<_ACEOF 16411/* end confdefs.h. */ 16412 16413#include <stdio.h> 16414#include <string.h> 16415#include <openssl/opensslv.h> 16416#include <openssl/crypto.h> 16417#define DATA "conftest.ssllibver" 16418int main(void) { 16419 FILE *fd; 16420 int rc; 16421 16422 fd = fopen(DATA,"w"); 16423 if(fd == NULL) 16424 exit(1); 16425 16426 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0) 16427 exit(1); 16428 16429 exit(0); 16430} 16431 16432_ACEOF 16433rm -f conftest$ac_exeext 16434if { (ac_try="$ac_link" 16435case "(($ac_try" in 16436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16437 *) ac_try_echo=$ac_try;; 16438esac 16439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16440 (eval "$ac_link") 2>&5 16441 ac_status=$? 16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16444 { (case "(($ac_try" in 16445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16446 *) ac_try_echo=$ac_try;; 16447esac 16448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16449 (eval "$ac_try") 2>&5 16450 ac_status=$? 16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16452 (exit $ac_status); }; }; then 16453 16454 ssl_library_ver=`cat conftest.ssllibver` 16455 { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5 16456echo "${ECHO_T}$ssl_library_ver" >&6; } 16457 16458else 16459 echo "$as_me: program exited with status $ac_status" >&5 16460echo "$as_me: failed program was:" >&5 16461sed 's/^/| /' conftest.$ac_ext >&5 16462 16463( exit $ac_status ) 16464 16465 { echo "$as_me:$LINENO: result: not found" >&5 16466echo "${ECHO_T}not found" >&6; } 16467 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5 16468echo "$as_me: error: OpenSSL library not found." >&2;} 16469 { (exit 1); exit 1; }; } 16470 16471fi 16472rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16473fi 16474 16475 16476 16477 16478# Check whether --with-openssl-header-check was given. 16479if test "${with_openssl_header_check+set}" = set; then 16480 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then 16481 openssl_check_nonfatal=1 16482 fi 16483 16484 16485fi 16486 16487 16488# Sanity check OpenSSL headers 16489{ echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5 16490echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; } 16491if test "$cross_compiling" = yes; then 16492 16493 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 16494echo "$as_me: WARNING: cross compiling: not checking" >&2;} 16495 16496 16497else 16498 cat >conftest.$ac_ext <<_ACEOF 16499/* confdefs.h. */ 16500_ACEOF 16501cat confdefs.h >>conftest.$ac_ext 16502cat >>conftest.$ac_ext <<_ACEOF 16503/* end confdefs.h. */ 16504 16505#include <string.h> 16506#include <openssl/opensslv.h> 16507int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } 16508 16509_ACEOF 16510rm -f conftest$ac_exeext 16511if { (ac_try="$ac_link" 16512case "(($ac_try" in 16513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16514 *) ac_try_echo=$ac_try;; 16515esac 16516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16517 (eval "$ac_link") 2>&5 16518 ac_status=$? 16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16521 { (case "(($ac_try" in 16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16523 *) ac_try_echo=$ac_try;; 16524esac 16525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16526 (eval "$ac_try") 2>&5 16527 ac_status=$? 16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16529 (exit $ac_status); }; }; then 16530 16531 { echo "$as_me:$LINENO: result: yes" >&5 16532echo "${ECHO_T}yes" >&6; } 16533 16534else 16535 echo "$as_me: program exited with status $ac_status" >&5 16536echo "$as_me: failed program was:" >&5 16537sed 's/^/| /' conftest.$ac_ext >&5 16538 16539( exit $ac_status ) 16540 16541 { echo "$as_me:$LINENO: result: no" >&5 16542echo "${ECHO_T}no" >&6; } 16543 if test "x$openssl_check_nonfatal" = "x"; then 16544 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your 16545library. Check config.log for details. 16546If you are sure your installation is consistent, you can disable the check 16547by running \"./configure --without-openssl-header-check\". 16548Also see contrib/findssl.sh for help identifying header/library mismatches. 16549" >&5 16550echo "$as_me: error: Your OpenSSL headers do not match your 16551library. Check config.log for details. 16552If you are sure your installation is consistent, you can disable the check 16553by running \"./configure --without-openssl-header-check\". 16554Also see contrib/findssl.sh for help identifying header/library mismatches. 16555" >&2;} 16556 { (exit 1); exit 1; }; } 16557 else 16558 { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your 16559library. Check config.log for details. 16560Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 16561echo "$as_me: WARNING: Your OpenSSL headers do not match your 16562library. Check config.log for details. 16563Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} 16564 fi 16565 16566fi 16567rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16568fi 16569 16570 16571 16572{ echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5 16573echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; } 16574cat >conftest.$ac_ext <<_ACEOF 16575/* confdefs.h. */ 16576_ACEOF 16577cat confdefs.h >>conftest.$ac_ext 16578cat >>conftest.$ac_ext <<_ACEOF 16579/* end confdefs.h. */ 16580 16581#include <openssl/evp.h> 16582int main(void) { SSLeay_add_all_algorithms(); } 16583 16584_ACEOF 16585rm -f conftest.$ac_objext conftest$ac_exeext 16586if { (ac_try="$ac_link" 16587case "(($ac_try" in 16588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16589 *) ac_try_echo=$ac_try;; 16590esac 16591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16592 (eval "$ac_link") 2>conftest.er1 16593 ac_status=$? 16594 grep -v '^ *+' conftest.er1 >conftest.err 16595 rm -f conftest.er1 16596 cat conftest.err >&5 16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16598 (exit $ac_status); } && { 16599 test -z "$ac_c_werror_flag" || 16600 test ! -s conftest.err 16601 } && test -s conftest$ac_exeext && 16602 $as_test_x conftest$ac_exeext; then 16603 16604 { echo "$as_me:$LINENO: result: yes" >&5 16605echo "${ECHO_T}yes" >&6; } 16606 16607else 16608 echo "$as_me: failed program was:" >&5 16609sed 's/^/| /' conftest.$ac_ext >&5 16610 16611 16612 { echo "$as_me:$LINENO: result: no" >&5 16613echo "${ECHO_T}no" >&6; } 16614 saved_LIBS="$LIBS" 16615 LIBS="$LIBS -ldl" 16616 { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5 16617echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; } 16618 cat >conftest.$ac_ext <<_ACEOF 16619/* confdefs.h. */ 16620_ACEOF 16621cat confdefs.h >>conftest.$ac_ext 16622cat >>conftest.$ac_ext <<_ACEOF 16623/* end confdefs.h. */ 16624 16625#include <openssl/evp.h> 16626int main(void) { SSLeay_add_all_algorithms(); } 16627 16628_ACEOF 16629rm -f conftest.$ac_objext conftest$ac_exeext 16630if { (ac_try="$ac_link" 16631case "(($ac_try" in 16632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16633 *) ac_try_echo=$ac_try;; 16634esac 16635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16636 (eval "$ac_link") 2>conftest.er1 16637 ac_status=$? 16638 grep -v '^ *+' conftest.er1 >conftest.err 16639 rm -f conftest.er1 16640 cat conftest.err >&5 16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16642 (exit $ac_status); } && { 16643 test -z "$ac_c_werror_flag" || 16644 test ! -s conftest.err 16645 } && test -s conftest$ac_exeext && 16646 $as_test_x conftest$ac_exeext; then 16647 16648 { echo "$as_me:$LINENO: result: yes" >&5 16649echo "${ECHO_T}yes" >&6; } 16650 16651else 16652 echo "$as_me: failed program was:" >&5 16653sed 's/^/| /' conftest.$ac_ext >&5 16654 16655 16656 { echo "$as_me:$LINENO: result: no" >&5 16657echo "${ECHO_T}no" >&6; } 16658 LIBS="$saved_LIBS" 16659 16660 16661fi 16662 16663rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16664 conftest$ac_exeext conftest.$ac_ext 16665 16666 16667fi 16668 16669rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16670 conftest$ac_exeext conftest.$ac_ext 16671 16672 16673# Check whether --with-ssl-engine was given. 16674if test "${with_ssl_engine+set}" = set; then 16675 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then 16676 { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5 16677echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; } 16678 cat >conftest.$ac_ext <<_ACEOF 16679/* confdefs.h. */ 16680_ACEOF 16681cat confdefs.h >>conftest.$ac_ext 16682cat >>conftest.$ac_ext <<_ACEOF 16683/* end confdefs.h. */ 16684 #include <openssl/engine.h> 16685int 16686main () 16687{ 16688 16689ENGINE_load_builtin_engines();ENGINE_register_all_complete(); 16690 16691 ; 16692 return 0; 16693} 16694_ACEOF 16695rm -f conftest.$ac_objext 16696if { (ac_try="$ac_compile" 16697case "(($ac_try" in 16698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16699 *) ac_try_echo=$ac_try;; 16700esac 16701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16702 (eval "$ac_compile") 2>conftest.er1 16703 ac_status=$? 16704 grep -v '^ *+' conftest.er1 >conftest.err 16705 rm -f conftest.er1 16706 cat conftest.err >&5 16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16708 (exit $ac_status); } && { 16709 test -z "$ac_c_werror_flag" || 16710 test ! -s conftest.err 16711 } && test -s conftest.$ac_objext; then 16712 { echo "$as_me:$LINENO: result: yes" >&5 16713echo "${ECHO_T}yes" >&6; } 16714 16715cat >>confdefs.h <<\_ACEOF 16716#define USE_OPENSSL_ENGINE 1 16717_ACEOF 16718 16719 16720else 16721 echo "$as_me: failed program was:" >&5 16722sed 's/^/| /' conftest.$ac_ext >&5 16723 16724 { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5 16725echo "$as_me: error: OpenSSL ENGINE support not found" >&2;} 16726 { (exit 1); exit 1; }; } 16727 16728fi 16729 16730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16731 fi 16732 16733fi 16734 16735 16736# Check for OpenSSL without EVP_aes_{192,256}_cbc 16737{ echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5 16738echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; } 16739cat >conftest.$ac_ext <<_ACEOF 16740/* confdefs.h. */ 16741_ACEOF 16742cat confdefs.h >>conftest.$ac_ext 16743cat >>conftest.$ac_ext <<_ACEOF 16744/* end confdefs.h. */ 16745 16746#include <string.h> 16747#include <openssl/evp.h> 16748int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);} 16749 16750_ACEOF 16751rm -f conftest.$ac_objext conftest$ac_exeext 16752if { (ac_try="$ac_link" 16753case "(($ac_try" in 16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16755 *) ac_try_echo=$ac_try;; 16756esac 16757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16758 (eval "$ac_link") 2>conftest.er1 16759 ac_status=$? 16760 grep -v '^ *+' conftest.er1 >conftest.err 16761 rm -f conftest.er1 16762 cat conftest.err >&5 16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16764 (exit $ac_status); } && { 16765 test -z "$ac_c_werror_flag" || 16766 test ! -s conftest.err 16767 } && test -s conftest$ac_exeext && 16768 $as_test_x conftest$ac_exeext; then 16769 16770 { echo "$as_me:$LINENO: result: no" >&5 16771echo "${ECHO_T}no" >&6; } 16772 16773else 16774 echo "$as_me: failed program was:" >&5 16775sed 's/^/| /' conftest.$ac_ext >&5 16776 16777 16778 { echo "$as_me:$LINENO: result: yes" >&5 16779echo "${ECHO_T}yes" >&6; } 16780 16781cat >>confdefs.h <<\_ACEOF 16782#define OPENSSL_LOBOTOMISED_AES 1 16783_ACEOF 16784 16785 16786 16787fi 16788 16789rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16790 conftest$ac_exeext conftest.$ac_ext 16791 16792# Some systems want crypt() from libcrypt, *not* the version in OpenSSL, 16793# because the system crypt() is more featureful. 16794if test "x$check_for_libcrypt_before" = "x1"; then 16795 16796{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 16797echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } 16798if test "${ac_cv_lib_crypt_crypt+set}" = set; then 16799 echo $ECHO_N "(cached) $ECHO_C" >&6 16800else 16801 ac_check_lib_save_LIBS=$LIBS 16802LIBS="-lcrypt $LIBS" 16803cat >conftest.$ac_ext <<_ACEOF 16804/* confdefs.h. */ 16805_ACEOF 16806cat confdefs.h >>conftest.$ac_ext 16807cat >>conftest.$ac_ext <<_ACEOF 16808/* end confdefs.h. */ 16809 16810/* Override any GCC internal prototype to avoid an error. 16811 Use char because int might match the return type of a GCC 16812 builtin and then its argument prototype would still apply. */ 16813#ifdef __cplusplus 16814extern "C" 16815#endif 16816char crypt (); 16817int 16818main () 16819{ 16820return crypt (); 16821 ; 16822 return 0; 16823} 16824_ACEOF 16825rm -f conftest.$ac_objext conftest$ac_exeext 16826if { (ac_try="$ac_link" 16827case "(($ac_try" in 16828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16829 *) ac_try_echo=$ac_try;; 16830esac 16831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16832 (eval "$ac_link") 2>conftest.er1 16833 ac_status=$? 16834 grep -v '^ *+' conftest.er1 >conftest.err 16835 rm -f conftest.er1 16836 cat conftest.err >&5 16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16838 (exit $ac_status); } && { 16839 test -z "$ac_c_werror_flag" || 16840 test ! -s conftest.err 16841 } && test -s conftest$ac_exeext && 16842 $as_test_x conftest$ac_exeext; then 16843 ac_cv_lib_crypt_crypt=yes 16844else 16845 echo "$as_me: failed program was:" >&5 16846sed 's/^/| /' conftest.$ac_ext >&5 16847 16848 ac_cv_lib_crypt_crypt=no 16849fi 16850 16851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16852 conftest$ac_exeext conftest.$ac_ext 16853LIBS=$ac_check_lib_save_LIBS 16854fi 16855{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 16856echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } 16857if test $ac_cv_lib_crypt_crypt = yes; then 16858 cat >>confdefs.h <<_ACEOF 16859#define HAVE_LIBCRYPT 1 16860_ACEOF 16861 16862 LIBS="-lcrypt $LIBS" 16863 16864fi 16865 16866fi 16867 16868# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the 16869# version in OpenSSL. 16870if test "x$check_for_libcrypt_later" = "x1"; then 16871 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 16872echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } 16873if test "${ac_cv_lib_crypt_crypt+set}" = set; then 16874 echo $ECHO_N "(cached) $ECHO_C" >&6 16875else 16876 ac_check_lib_save_LIBS=$LIBS 16877LIBS="-lcrypt $LIBS" 16878cat >conftest.$ac_ext <<_ACEOF 16879/* confdefs.h. */ 16880_ACEOF 16881cat confdefs.h >>conftest.$ac_ext 16882cat >>conftest.$ac_ext <<_ACEOF 16883/* end confdefs.h. */ 16884 16885/* Override any GCC internal prototype to avoid an error. 16886 Use char because int might match the return type of a GCC 16887 builtin and then its argument prototype would still apply. */ 16888#ifdef __cplusplus 16889extern "C" 16890#endif 16891char crypt (); 16892int 16893main () 16894{ 16895return crypt (); 16896 ; 16897 return 0; 16898} 16899_ACEOF 16900rm -f conftest.$ac_objext conftest$ac_exeext 16901if { (ac_try="$ac_link" 16902case "(($ac_try" in 16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16904 *) ac_try_echo=$ac_try;; 16905esac 16906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16907 (eval "$ac_link") 2>conftest.er1 16908 ac_status=$? 16909 grep -v '^ *+' conftest.er1 >conftest.err 16910 rm -f conftest.er1 16911 cat conftest.err >&5 16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16913 (exit $ac_status); } && { 16914 test -z "$ac_c_werror_flag" || 16915 test ! -s conftest.err 16916 } && test -s conftest$ac_exeext && 16917 $as_test_x conftest$ac_exeext; then 16918 ac_cv_lib_crypt_crypt=yes 16919else 16920 echo "$as_me: failed program was:" >&5 16921sed 's/^/| /' conftest.$ac_ext >&5 16922 16923 ac_cv_lib_crypt_crypt=no 16924fi 16925 16926rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16927 conftest$ac_exeext conftest.$ac_ext 16928LIBS=$ac_check_lib_save_LIBS 16929fi 16930{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 16931echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } 16932if test $ac_cv_lib_crypt_crypt = yes; then 16933 LIBS="$LIBS -lcrypt" 16934fi 16935 16936fi 16937 16938# Search for SHA256 support in libc and/or OpenSSL 16939 16940 16941for ac_func in SHA256_Update EVP_sha256 16942do 16943as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16944{ echo "$as_me:$LINENO: checking for $ac_func" >&5 16945echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16946if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16947 echo $ECHO_N "(cached) $ECHO_C" >&6 16948else 16949 cat >conftest.$ac_ext <<_ACEOF 16950/* confdefs.h. */ 16951_ACEOF 16952cat confdefs.h >>conftest.$ac_ext 16953cat >>conftest.$ac_ext <<_ACEOF 16954/* end confdefs.h. */ 16955/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16956 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16957#define $ac_func innocuous_$ac_func 16958 16959/* System header to define __stub macros and hopefully few prototypes, 16960 which can conflict with char $ac_func (); below. 16961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16962 <limits.h> exists even on freestanding compilers. */ 16963 16964#ifdef __STDC__ 16965# include <limits.h> 16966#else 16967# include <assert.h> 16968#endif 16969 16970#undef $ac_func 16971 16972/* Override any GCC internal prototype to avoid an error. 16973 Use char because int might match the return type of a GCC 16974 builtin and then its argument prototype would still apply. */ 16975#ifdef __cplusplus 16976extern "C" 16977#endif 16978char $ac_func (); 16979/* The GNU C library defines this for functions which it implements 16980 to always fail with ENOSYS. Some functions are actually named 16981 something starting with __ and the normal name is an alias. */ 16982#if defined __stub_$ac_func || defined __stub___$ac_func 16983choke me 16984#endif 16985 16986int 16987main () 16988{ 16989return $ac_func (); 16990 ; 16991 return 0; 16992} 16993_ACEOF 16994rm -f conftest.$ac_objext conftest$ac_exeext 16995if { (ac_try="$ac_link" 16996case "(($ac_try" in 16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16998 *) ac_try_echo=$ac_try;; 16999esac 17000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17001 (eval "$ac_link") 2>conftest.er1 17002 ac_status=$? 17003 grep -v '^ *+' conftest.er1 >conftest.err 17004 rm -f conftest.er1 17005 cat conftest.err >&5 17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17007 (exit $ac_status); } && { 17008 test -z "$ac_c_werror_flag" || 17009 test ! -s conftest.err 17010 } && test -s conftest$ac_exeext && 17011 $as_test_x conftest$ac_exeext; then 17012 eval "$as_ac_var=yes" 17013else 17014 echo "$as_me: failed program was:" >&5 17015sed 's/^/| /' conftest.$ac_ext >&5 17016 17017 eval "$as_ac_var=no" 17018fi 17019 17020rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17021 conftest$ac_exeext conftest.$ac_ext 17022fi 17023ac_res=`eval echo '${'$as_ac_var'}'` 17024 { echo "$as_me:$LINENO: result: $ac_res" >&5 17025echo "${ECHO_T}$ac_res" >&6; } 17026if test `eval echo '${'$as_ac_var'}'` = yes; then 17027 cat >>confdefs.h <<_ACEOF 17028#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17029_ACEOF 17030 17031fi 17032done 17033 17034 17035saved_LIBS="$LIBS" 17036{ echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5 17037echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; } 17038if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then 17039 echo $ECHO_N "(cached) $ECHO_C" >&6 17040else 17041 ac_check_lib_save_LIBS=$LIBS 17042LIBS="-liaf $LIBS" 17043cat >conftest.$ac_ext <<_ACEOF 17044/* confdefs.h. */ 17045_ACEOF 17046cat confdefs.h >>conftest.$ac_ext 17047cat >>conftest.$ac_ext <<_ACEOF 17048/* end confdefs.h. */ 17049 17050/* Override any GCC internal prototype to avoid an error. 17051 Use char because int might match the return type of a GCC 17052 builtin and then its argument prototype would still apply. */ 17053#ifdef __cplusplus 17054extern "C" 17055#endif 17056char ia_openinfo (); 17057int 17058main () 17059{ 17060return ia_openinfo (); 17061 ; 17062 return 0; 17063} 17064_ACEOF 17065rm -f conftest.$ac_objext conftest$ac_exeext 17066if { (ac_try="$ac_link" 17067case "(($ac_try" in 17068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17069 *) ac_try_echo=$ac_try;; 17070esac 17071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17072 (eval "$ac_link") 2>conftest.er1 17073 ac_status=$? 17074 grep -v '^ *+' conftest.er1 >conftest.err 17075 rm -f conftest.er1 17076 cat conftest.err >&5 17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17078 (exit $ac_status); } && { 17079 test -z "$ac_c_werror_flag" || 17080 test ! -s conftest.err 17081 } && test -s conftest$ac_exeext && 17082 $as_test_x conftest$ac_exeext; then 17083 ac_cv_lib_iaf_ia_openinfo=yes 17084else 17085 echo "$as_me: failed program was:" >&5 17086sed 's/^/| /' conftest.$ac_ext >&5 17087 17088 ac_cv_lib_iaf_ia_openinfo=no 17089fi 17090 17091rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17092 conftest$ac_exeext conftest.$ac_ext 17093LIBS=$ac_check_lib_save_LIBS 17094fi 17095{ echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5 17096echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; } 17097if test $ac_cv_lib_iaf_ia_openinfo = yes; then 17098 17099 LIBS="$LIBS -liaf" 17100 17101for ac_func in set_id 17102do 17103as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17104{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17105echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17106if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17107 echo $ECHO_N "(cached) $ECHO_C" >&6 17108else 17109 cat >conftest.$ac_ext <<_ACEOF 17110/* confdefs.h. */ 17111_ACEOF 17112cat confdefs.h >>conftest.$ac_ext 17113cat >>conftest.$ac_ext <<_ACEOF 17114/* end confdefs.h. */ 17115/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17116 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17117#define $ac_func innocuous_$ac_func 17118 17119/* System header to define __stub macros and hopefully few prototypes, 17120 which can conflict with char $ac_func (); below. 17121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17122 <limits.h> exists even on freestanding compilers. */ 17123 17124#ifdef __STDC__ 17125# include <limits.h> 17126#else 17127# include <assert.h> 17128#endif 17129 17130#undef $ac_func 17131 17132/* Override any GCC internal prototype to avoid an error. 17133 Use char because int might match the return type of a GCC 17134 builtin and then its argument prototype would still apply. */ 17135#ifdef __cplusplus 17136extern "C" 17137#endif 17138char $ac_func (); 17139/* The GNU C library defines this for functions which it implements 17140 to always fail with ENOSYS. Some functions are actually named 17141 something starting with __ and the normal name is an alias. */ 17142#if defined __stub_$ac_func || defined __stub___$ac_func 17143choke me 17144#endif 17145 17146int 17147main () 17148{ 17149return $ac_func (); 17150 ; 17151 return 0; 17152} 17153_ACEOF 17154rm -f conftest.$ac_objext conftest$ac_exeext 17155if { (ac_try="$ac_link" 17156case "(($ac_try" in 17157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17158 *) ac_try_echo=$ac_try;; 17159esac 17160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17161 (eval "$ac_link") 2>conftest.er1 17162 ac_status=$? 17163 grep -v '^ *+' conftest.er1 >conftest.err 17164 rm -f conftest.er1 17165 cat conftest.err >&5 17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17167 (exit $ac_status); } && { 17168 test -z "$ac_c_werror_flag" || 17169 test ! -s conftest.err 17170 } && test -s conftest$ac_exeext && 17171 $as_test_x conftest$ac_exeext; then 17172 eval "$as_ac_var=yes" 17173else 17174 echo "$as_me: failed program was:" >&5 17175sed 's/^/| /' conftest.$ac_ext >&5 17176 17177 eval "$as_ac_var=no" 17178fi 17179 17180rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17181 conftest$ac_exeext conftest.$ac_ext 17182fi 17183ac_res=`eval echo '${'$as_ac_var'}'` 17184 { echo "$as_me:$LINENO: result: $ac_res" >&5 17185echo "${ECHO_T}$ac_res" >&6; } 17186if test `eval echo '${'$as_ac_var'}'` = yes; then 17187 cat >>confdefs.h <<_ACEOF 17188#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17189_ACEOF 17190 SSHDLIBS="$SSHDLIBS -liaf" 17191 17192cat >>confdefs.h <<\_ACEOF 17193#define HAVE_LIBIAF 1 17194_ACEOF 17195 17196 17197fi 17198done 17199 17200 17201fi 17202 17203LIBS="$saved_LIBS" 17204 17205### Configure cryptographic random number support 17206 17207# Check wheter OpenSSL seeds itself 17208{ echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5 17209echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; } 17210if test "$cross_compiling" = yes; then 17211 17212 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5 17213echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} 17214 # This is safe, since all recent OpenSSL versions will 17215 # complain at runtime if not seeded correctly. 17216 OPENSSL_SEEDS_ITSELF=yes 17217 17218 17219else 17220 cat >conftest.$ac_ext <<_ACEOF 17221/* confdefs.h. */ 17222_ACEOF 17223cat confdefs.h >>conftest.$ac_ext 17224cat >>conftest.$ac_ext <<_ACEOF 17225/* end confdefs.h. */ 17226 17227#include <string.h> 17228#include <openssl/rand.h> 17229int main(void) { exit(RAND_status() == 1 ? 0 : 1); } 17230 17231_ACEOF 17232rm -f conftest$ac_exeext 17233if { (ac_try="$ac_link" 17234case "(($ac_try" in 17235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17236 *) ac_try_echo=$ac_try;; 17237esac 17238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17239 (eval "$ac_link") 2>&5 17240 ac_status=$? 17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17243 { (case "(($ac_try" in 17244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17245 *) ac_try_echo=$ac_try;; 17246esac 17247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17248 (eval "$ac_try") 2>&5 17249 ac_status=$? 17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17251 (exit $ac_status); }; }; then 17252 17253 OPENSSL_SEEDS_ITSELF=yes 17254 { echo "$as_me:$LINENO: result: yes" >&5 17255echo "${ECHO_T}yes" >&6; } 17256 17257else 17258 echo "$as_me: program exited with status $ac_status" >&5 17259echo "$as_me: failed program was:" >&5 17260sed 's/^/| /' conftest.$ac_ext >&5 17261 17262( exit $ac_status ) 17263 17264 { echo "$as_me:$LINENO: result: no" >&5 17265echo "${ECHO_T}no" >&6; } 17266 # Default to use of the rand helper if OpenSSL doesn't 17267 # seed itself 17268 USE_RAND_HELPER=yes 17269 17270fi 17271rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17272fi 17273 17274 17275 17276# Check for PAM libs 17277PAM_MSG="no" 17278 17279# Check whether --with-pam was given. 17280if test "${with_pam+set}" = set; then 17281 withval=$with_pam; 17282 if test "x$withval" != "xno" ; then 17283 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ 17284 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then 17285 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5 17286echo "$as_me: error: PAM headers not found" >&2;} 17287 { (exit 1); exit 1; }; } 17288 fi 17289 17290 saved_LIBS="$LIBS" 17291 17292{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 17293echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 17294if test "${ac_cv_lib_dl_dlopen+set}" = set; then 17295 echo $ECHO_N "(cached) $ECHO_C" >&6 17296else 17297 ac_check_lib_save_LIBS=$LIBS 17298LIBS="-ldl $LIBS" 17299cat >conftest.$ac_ext <<_ACEOF 17300/* confdefs.h. */ 17301_ACEOF 17302cat confdefs.h >>conftest.$ac_ext 17303cat >>conftest.$ac_ext <<_ACEOF 17304/* end confdefs.h. */ 17305 17306/* Override any GCC internal prototype to avoid an error. 17307 Use char because int might match the return type of a GCC 17308 builtin and then its argument prototype would still apply. */ 17309#ifdef __cplusplus 17310extern "C" 17311#endif 17312char dlopen (); 17313int 17314main () 17315{ 17316return dlopen (); 17317 ; 17318 return 0; 17319} 17320_ACEOF 17321rm -f conftest.$ac_objext conftest$ac_exeext 17322if { (ac_try="$ac_link" 17323case "(($ac_try" in 17324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17325 *) ac_try_echo=$ac_try;; 17326esac 17327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17328 (eval "$ac_link") 2>conftest.er1 17329 ac_status=$? 17330 grep -v '^ *+' conftest.er1 >conftest.err 17331 rm -f conftest.er1 17332 cat conftest.err >&5 17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17334 (exit $ac_status); } && { 17335 test -z "$ac_c_werror_flag" || 17336 test ! -s conftest.err 17337 } && test -s conftest$ac_exeext && 17338 $as_test_x conftest$ac_exeext; then 17339 ac_cv_lib_dl_dlopen=yes 17340else 17341 echo "$as_me: failed program was:" >&5 17342sed 's/^/| /' conftest.$ac_ext >&5 17343 17344 ac_cv_lib_dl_dlopen=no 17345fi 17346 17347rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17348 conftest$ac_exeext conftest.$ac_ext 17349LIBS=$ac_check_lib_save_LIBS 17350fi 17351{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 17352echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 17353if test $ac_cv_lib_dl_dlopen = yes; then 17354 cat >>confdefs.h <<_ACEOF 17355#define HAVE_LIBDL 1 17356_ACEOF 17357 17358 LIBS="-ldl $LIBS" 17359 17360fi 17361 17362 17363{ echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5 17364echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; } 17365if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then 17366 echo $ECHO_N "(cached) $ECHO_C" >&6 17367else 17368 ac_check_lib_save_LIBS=$LIBS 17369LIBS="-lpam $LIBS" 17370cat >conftest.$ac_ext <<_ACEOF 17371/* confdefs.h. */ 17372_ACEOF 17373cat confdefs.h >>conftest.$ac_ext 17374cat >>conftest.$ac_ext <<_ACEOF 17375/* end confdefs.h. */ 17376 17377/* Override any GCC internal prototype to avoid an error. 17378 Use char because int might match the return type of a GCC 17379 builtin and then its argument prototype would still apply. */ 17380#ifdef __cplusplus 17381extern "C" 17382#endif 17383char pam_set_item (); 17384int 17385main () 17386{ 17387return pam_set_item (); 17388 ; 17389 return 0; 17390} 17391_ACEOF 17392rm -f conftest.$ac_objext conftest$ac_exeext 17393if { (ac_try="$ac_link" 17394case "(($ac_try" in 17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17396 *) ac_try_echo=$ac_try;; 17397esac 17398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17399 (eval "$ac_link") 2>conftest.er1 17400 ac_status=$? 17401 grep -v '^ *+' conftest.er1 >conftest.err 17402 rm -f conftest.er1 17403 cat conftest.err >&5 17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17405 (exit $ac_status); } && { 17406 test -z "$ac_c_werror_flag" || 17407 test ! -s conftest.err 17408 } && test -s conftest$ac_exeext && 17409 $as_test_x conftest$ac_exeext; then 17410 ac_cv_lib_pam_pam_set_item=yes 17411else 17412 echo "$as_me: failed program was:" >&5 17413sed 's/^/| /' conftest.$ac_ext >&5 17414 17415 ac_cv_lib_pam_pam_set_item=no 17416fi 17417 17418rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17419 conftest$ac_exeext conftest.$ac_ext 17420LIBS=$ac_check_lib_save_LIBS 17421fi 17422{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5 17423echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; } 17424if test $ac_cv_lib_pam_pam_set_item = yes; then 17425 cat >>confdefs.h <<_ACEOF 17426#define HAVE_LIBPAM 1 17427_ACEOF 17428 17429 LIBS="-lpam $LIBS" 17430 17431else 17432 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5 17433echo "$as_me: error: *** libpam missing" >&2;} 17434 { (exit 1); exit 1; }; } 17435fi 17436 17437 17438for ac_func in pam_getenvlist 17439do 17440as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17441{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17442echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17443if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17444 echo $ECHO_N "(cached) $ECHO_C" >&6 17445else 17446 cat >conftest.$ac_ext <<_ACEOF 17447/* confdefs.h. */ 17448_ACEOF 17449cat confdefs.h >>conftest.$ac_ext 17450cat >>conftest.$ac_ext <<_ACEOF 17451/* end confdefs.h. */ 17452/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17453 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17454#define $ac_func innocuous_$ac_func 17455 17456/* System header to define __stub macros and hopefully few prototypes, 17457 which can conflict with char $ac_func (); below. 17458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17459 <limits.h> exists even on freestanding compilers. */ 17460 17461#ifdef __STDC__ 17462# include <limits.h> 17463#else 17464# include <assert.h> 17465#endif 17466 17467#undef $ac_func 17468 17469/* Override any GCC internal prototype to avoid an error. 17470 Use char because int might match the return type of a GCC 17471 builtin and then its argument prototype would still apply. */ 17472#ifdef __cplusplus 17473extern "C" 17474#endif 17475char $ac_func (); 17476/* The GNU C library defines this for functions which it implements 17477 to always fail with ENOSYS. Some functions are actually named 17478 something starting with __ and the normal name is an alias. */ 17479#if defined __stub_$ac_func || defined __stub___$ac_func 17480choke me 17481#endif 17482 17483int 17484main () 17485{ 17486return $ac_func (); 17487 ; 17488 return 0; 17489} 17490_ACEOF 17491rm -f conftest.$ac_objext conftest$ac_exeext 17492if { (ac_try="$ac_link" 17493case "(($ac_try" in 17494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17495 *) ac_try_echo=$ac_try;; 17496esac 17497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17498 (eval "$ac_link") 2>conftest.er1 17499 ac_status=$? 17500 grep -v '^ *+' conftest.er1 >conftest.err 17501 rm -f conftest.er1 17502 cat conftest.err >&5 17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17504 (exit $ac_status); } && { 17505 test -z "$ac_c_werror_flag" || 17506 test ! -s conftest.err 17507 } && test -s conftest$ac_exeext && 17508 $as_test_x conftest$ac_exeext; then 17509 eval "$as_ac_var=yes" 17510else 17511 echo "$as_me: failed program was:" >&5 17512sed 's/^/| /' conftest.$ac_ext >&5 17513 17514 eval "$as_ac_var=no" 17515fi 17516 17517rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17518 conftest$ac_exeext conftest.$ac_ext 17519fi 17520ac_res=`eval echo '${'$as_ac_var'}'` 17521 { echo "$as_me:$LINENO: result: $ac_res" >&5 17522echo "${ECHO_T}$ac_res" >&6; } 17523if test `eval echo '${'$as_ac_var'}'` = yes; then 17524 cat >>confdefs.h <<_ACEOF 17525#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17526_ACEOF 17527 17528fi 17529done 17530 17531 17532for ac_func in pam_putenv 17533do 17534as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17535{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17536echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17537if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17538 echo $ECHO_N "(cached) $ECHO_C" >&6 17539else 17540 cat >conftest.$ac_ext <<_ACEOF 17541/* confdefs.h. */ 17542_ACEOF 17543cat confdefs.h >>conftest.$ac_ext 17544cat >>conftest.$ac_ext <<_ACEOF 17545/* end confdefs.h. */ 17546/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17547 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17548#define $ac_func innocuous_$ac_func 17549 17550/* System header to define __stub macros and hopefully few prototypes, 17551 which can conflict with char $ac_func (); below. 17552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17553 <limits.h> exists even on freestanding compilers. */ 17554 17555#ifdef __STDC__ 17556# include <limits.h> 17557#else 17558# include <assert.h> 17559#endif 17560 17561#undef $ac_func 17562 17563/* Override any GCC internal prototype to avoid an error. 17564 Use char because int might match the return type of a GCC 17565 builtin and then its argument prototype would still apply. */ 17566#ifdef __cplusplus 17567extern "C" 17568#endif 17569char $ac_func (); 17570/* The GNU C library defines this for functions which it implements 17571 to always fail with ENOSYS. Some functions are actually named 17572 something starting with __ and the normal name is an alias. */ 17573#if defined __stub_$ac_func || defined __stub___$ac_func 17574choke me 17575#endif 17576 17577int 17578main () 17579{ 17580return $ac_func (); 17581 ; 17582 return 0; 17583} 17584_ACEOF 17585rm -f conftest.$ac_objext conftest$ac_exeext 17586if { (ac_try="$ac_link" 17587case "(($ac_try" in 17588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17589 *) ac_try_echo=$ac_try;; 17590esac 17591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17592 (eval "$ac_link") 2>conftest.er1 17593 ac_status=$? 17594 grep -v '^ *+' conftest.er1 >conftest.err 17595 rm -f conftest.er1 17596 cat conftest.err >&5 17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17598 (exit $ac_status); } && { 17599 test -z "$ac_c_werror_flag" || 17600 test ! -s conftest.err 17601 } && test -s conftest$ac_exeext && 17602 $as_test_x conftest$ac_exeext; then 17603 eval "$as_ac_var=yes" 17604else 17605 echo "$as_me: failed program was:" >&5 17606sed 's/^/| /' conftest.$ac_ext >&5 17607 17608 eval "$as_ac_var=no" 17609fi 17610 17611rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17612 conftest$ac_exeext conftest.$ac_ext 17613fi 17614ac_res=`eval echo '${'$as_ac_var'}'` 17615 { echo "$as_me:$LINENO: result: $ac_res" >&5 17616echo "${ECHO_T}$ac_res" >&6; } 17617if test `eval echo '${'$as_ac_var'}'` = yes; then 17618 cat >>confdefs.h <<_ACEOF 17619#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17620_ACEOF 17621 17622fi 17623done 17624 17625 LIBS="$saved_LIBS" 17626 17627 PAM_MSG="yes" 17628 17629 SSHDLIBS="$SSHDLIBS -lpam" 17630 17631cat >>confdefs.h <<\_ACEOF 17632#define USE_PAM 1 17633_ACEOF 17634 17635 17636 if test $ac_cv_lib_dl_dlopen = yes; then 17637 case "$LIBS" in 17638 *-ldl*) 17639 # libdl already in LIBS 17640 ;; 17641 *) 17642 SSHDLIBS="$SSHDLIBS -ldl" 17643 ;; 17644 esac 17645 fi 17646 fi 17647 17648 17649fi 17650 17651 17652# Check for older PAM 17653if test "x$PAM_MSG" = "xyes" ; then 17654 # Check PAM strerror arguments (old PAM) 17655 { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5 17656echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; } 17657 cat >conftest.$ac_ext <<_ACEOF 17658/* confdefs.h. */ 17659_ACEOF 17660cat confdefs.h >>conftest.$ac_ext 17661cat >>conftest.$ac_ext <<_ACEOF 17662/* end confdefs.h. */ 17663 17664#include <stdlib.h> 17665#if defined(HAVE_SECURITY_PAM_APPL_H) 17666#include <security/pam_appl.h> 17667#elif defined (HAVE_PAM_PAM_APPL_H) 17668#include <pam/pam_appl.h> 17669#endif 17670 17671int 17672main () 17673{ 17674(void)pam_strerror((pam_handle_t *)NULL, -1); 17675 ; 17676 return 0; 17677} 17678_ACEOF 17679rm -f conftest.$ac_objext 17680if { (ac_try="$ac_compile" 17681case "(($ac_try" in 17682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17683 *) ac_try_echo=$ac_try;; 17684esac 17685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17686 (eval "$ac_compile") 2>conftest.er1 17687 ac_status=$? 17688 grep -v '^ *+' conftest.er1 >conftest.err 17689 rm -f conftest.er1 17690 cat conftest.err >&5 17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17692 (exit $ac_status); } && { 17693 test -z "$ac_c_werror_flag" || 17694 test ! -s conftest.err 17695 } && test -s conftest.$ac_objext; then 17696 { echo "$as_me:$LINENO: result: no" >&5 17697echo "${ECHO_T}no" >&6; } 17698else 17699 echo "$as_me: failed program was:" >&5 17700sed 's/^/| /' conftest.$ac_ext >&5 17701 17702 17703 17704cat >>confdefs.h <<\_ACEOF 17705#define HAVE_OLD_PAM 1 17706_ACEOF 17707 17708 { echo "$as_me:$LINENO: result: yes" >&5 17709echo "${ECHO_T}yes" >&6; } 17710 PAM_MSG="yes (old library)" 17711 17712 17713fi 17714 17715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17716fi 17717 17718# Do we want to force the use of the rand helper? 17719 17720# Check whether --with-rand-helper was given. 17721if test "${with_rand_helper+set}" = set; then 17722 withval=$with_rand_helper; 17723 if test "x$withval" = "xno" ; then 17724 # Force use of OpenSSL's internal RNG, even if 17725 # the previous test showed it to be unseeded. 17726 if test -z "$OPENSSL_SEEDS_ITSELF" ; then 17727 { echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5 17728echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;} 17729 OPENSSL_SEEDS_ITSELF=yes 17730 USE_RAND_HELPER="" 17731 fi 17732 else 17733 USE_RAND_HELPER=yes 17734 fi 17735 17736fi 17737 17738 17739# Which randomness source do we use? 17740if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then 17741 # OpenSSL only 17742 17743cat >>confdefs.h <<\_ACEOF 17744#define OPENSSL_PRNG_ONLY 1 17745_ACEOF 17746 17747 RAND_MSG="OpenSSL internal ONLY" 17748 INSTALL_SSH_RAND_HELPER="" 17749elif test ! -z "$USE_RAND_HELPER" ; then 17750 # install rand helper 17751 RAND_MSG="ssh-rand-helper" 17752 INSTALL_SSH_RAND_HELPER="yes" 17753fi 17754 17755 17756### Configuration of ssh-rand-helper 17757 17758# PRNGD TCP socket 17759 17760# Check whether --with-prngd-port was given. 17761if test "${with_prngd_port+set}" = set; then 17762 withval=$with_prngd_port; 17763 case "$withval" in 17764 no) 17765 withval="" 17766 ;; 17767 [0-9]*) 17768 ;; 17769 *) 17770 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5 17771echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;} 17772 { (exit 1); exit 1; }; } 17773 ;; 17774 esac 17775 if test ! -z "$withval" ; then 17776 PRNGD_PORT="$withval" 17777 17778cat >>confdefs.h <<_ACEOF 17779#define PRNGD_PORT $PRNGD_PORT 17780_ACEOF 17781 17782 fi 17783 17784 17785fi 17786 17787 17788# PRNGD Unix domain socket 17789 17790# Check whether --with-prngd-socket was given. 17791if test "${with_prngd_socket+set}" = set; then 17792 withval=$with_prngd_socket; 17793 case "$withval" in 17794 yes) 17795 withval="/var/run/egd-pool" 17796 ;; 17797 no) 17798 withval="" 17799 ;; 17800 /*) 17801 ;; 17802 *) 17803 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5 17804echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;} 17805 { (exit 1); exit 1; }; } 17806 ;; 17807 esac 17808 17809 if test ! -z "$withval" ; then 17810 if test ! -z "$PRNGD_PORT" ; then 17811 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5 17812echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;} 17813 { (exit 1); exit 1; }; } 17814 fi 17815 if test ! -r "$withval" ; then 17816 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5 17817echo "$as_me: WARNING: Entropy socket is not readable" >&2;} 17818 fi 17819 PRNGD_SOCKET="$withval" 17820 17821cat >>confdefs.h <<_ACEOF 17822#define PRNGD_SOCKET "$PRNGD_SOCKET" 17823_ACEOF 17824 17825 fi 17826 17827else 17828 17829 # Check for existing socket only if we don't have a random device already 17830 if test "$USE_RAND_HELPER" = yes ; then 17831 { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5 17832echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; } 17833 # Insert other locations here 17834 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do 17835 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then 17836 PRNGD_SOCKET="$sock" 17837 cat >>confdefs.h <<_ACEOF 17838#define PRNGD_SOCKET "$PRNGD_SOCKET" 17839_ACEOF 17840 17841 break; 17842 fi 17843 done 17844 if test ! -z "$PRNGD_SOCKET" ; then 17845 { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5 17846echo "${ECHO_T}$PRNGD_SOCKET" >&6; } 17847 else 17848 { echo "$as_me:$LINENO: result: not found" >&5 17849echo "${ECHO_T}not found" >&6; } 17850 fi 17851 fi 17852 17853 17854fi 17855 17856 17857# Change default command timeout for hashing entropy source 17858entropy_timeout=200 17859 17860# Check whether --with-entropy-timeout was given. 17861if test "${with_entropy_timeout+set}" = set; then 17862 withval=$with_entropy_timeout; 17863 if test -n "$withval" && test "x$withval" != "xno" && \ 17864 test "x${withval}" != "xyes"; then 17865 entropy_timeout=$withval 17866 fi 17867 17868 17869fi 17870 17871 17872cat >>confdefs.h <<_ACEOF 17873#define ENTROPY_TIMEOUT_MSEC $entropy_timeout 17874_ACEOF 17875 17876 17877SSH_PRIVSEP_USER=sshd 17878 17879# Check whether --with-privsep-user was given. 17880if test "${with_privsep_user+set}" = set; then 17881 withval=$with_privsep_user; 17882 if test -n "$withval" && test "x$withval" != "xno" && \ 17883 test "x${withval}" != "xyes"; then 17884 SSH_PRIVSEP_USER=$withval 17885 fi 17886 17887 17888fi 17889 17890 17891cat >>confdefs.h <<_ACEOF 17892#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" 17893_ACEOF 17894 17895 17896 17897# We do this little dance with the search path to insure 17898# that programs that we select for use by installed programs 17899# (which may be run by the super-user) come from trusted 17900# locations before they come from the user's private area. 17901# This should help avoid accidentally configuring some 17902# random version of a program in someone's personal bin. 17903 17904OPATH=$PATH 17905PATH=/bin:/usr/bin 17906test -h /bin 2> /dev/null && PATH=/usr/bin 17907test -d /sbin && PATH=$PATH:/sbin 17908test -d /usr/sbin && PATH=$PATH:/usr/sbin 17909PATH=$PATH:/etc:$OPATH 17910 17911# These programs are used by the command hashing source to gather entropy 17912 17913 # Extract the first word of "ls", so it can be a program name with args. 17914set dummy ls; ac_word=$2 17915{ echo "$as_me:$LINENO: checking for $ac_word" >&5 17916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 17917if test "${ac_cv_path_PROG_LS+set}" = set; then 17918 echo $ECHO_N "(cached) $ECHO_C" >&6 17919else 17920 case $PROG_LS in 17921 [\\/]* | ?:[\\/]*) 17922 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path. 17923 ;; 17924 *) 17925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17926for as_dir in $PATH 17927do 17928 IFS=$as_save_IFS 17929 test -z "$as_dir" && as_dir=. 17930 for ac_exec_ext in '' $ac_executable_extensions; do 17931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17932 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext" 17933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 17934 break 2 17935 fi 17936done 17937done 17938IFS=$as_save_IFS 17939 17940 ;; 17941esac 17942fi 17943PROG_LS=$ac_cv_path_PROG_LS 17944if test -n "$PROG_LS"; then 17945 { echo "$as_me:$LINENO: result: $PROG_LS" >&5 17946echo "${ECHO_T}$PROG_LS" >&6; } 17947else 17948 { echo "$as_me:$LINENO: result: no" >&5 17949echo "${ECHO_T}no" >&6; } 17950fi 17951 17952 17953 if test -z "$PROG_LS" ; then 17954 PROG_LS="undef" 17955 fi 17956 17957 17958 17959 # Extract the first word of "netstat", so it can be a program name with args. 17960set dummy netstat; ac_word=$2 17961{ echo "$as_me:$LINENO: checking for $ac_word" >&5 17962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 17963if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then 17964 echo $ECHO_N "(cached) $ECHO_C" >&6 17965else 17966 case $PROG_NETSTAT in 17967 [\\/]* | ?:[\\/]*) 17968 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path. 17969 ;; 17970 *) 17971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17972for as_dir in $PATH 17973do 17974 IFS=$as_save_IFS 17975 test -z "$as_dir" && as_dir=. 17976 for ac_exec_ext in '' $ac_executable_extensions; do 17977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17978 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext" 17979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 17980 break 2 17981 fi 17982done 17983done 17984IFS=$as_save_IFS 17985 17986 ;; 17987esac 17988fi 17989PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT 17990if test -n "$PROG_NETSTAT"; then 17991 { echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5 17992echo "${ECHO_T}$PROG_NETSTAT" >&6; } 17993else 17994 { echo "$as_me:$LINENO: result: no" >&5 17995echo "${ECHO_T}no" >&6; } 17996fi 17997 17998 17999 if test -z "$PROG_NETSTAT" ; then 18000 PROG_NETSTAT="undef" 18001 fi 18002 18003 18004 18005 # Extract the first word of "arp", so it can be a program name with args. 18006set dummy arp; ac_word=$2 18007{ echo "$as_me:$LINENO: checking for $ac_word" >&5 18008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 18009if test "${ac_cv_path_PROG_ARP+set}" = set; then 18010 echo $ECHO_N "(cached) $ECHO_C" >&6 18011else 18012 case $PROG_ARP in 18013 [\\/]* | ?:[\\/]*) 18014 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path. 18015 ;; 18016 *) 18017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18018for as_dir in $PATH 18019do 18020 IFS=$as_save_IFS 18021 test -z "$as_dir" && as_dir=. 18022 for ac_exec_ext in '' $ac_executable_extensions; do 18023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18024 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext" 18025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18026 break 2 18027 fi 18028done 18029done 18030IFS=$as_save_IFS 18031 18032 ;; 18033esac 18034fi 18035PROG_ARP=$ac_cv_path_PROG_ARP 18036if test -n "$PROG_ARP"; then 18037 { echo "$as_me:$LINENO: result: $PROG_ARP" >&5 18038echo "${ECHO_T}$PROG_ARP" >&6; } 18039else 18040 { echo "$as_me:$LINENO: result: no" >&5 18041echo "${ECHO_T}no" >&6; } 18042fi 18043 18044 18045 if test -z "$PROG_ARP" ; then 18046 PROG_ARP="undef" 18047 fi 18048 18049 18050 18051 # Extract the first word of "ifconfig", so it can be a program name with args. 18052set dummy ifconfig; ac_word=$2 18053{ echo "$as_me:$LINENO: checking for $ac_word" >&5 18054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 18055if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then 18056 echo $ECHO_N "(cached) $ECHO_C" >&6 18057else 18058 case $PROG_IFCONFIG in 18059 [\\/]* | ?:[\\/]*) 18060 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path. 18061 ;; 18062 *) 18063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18064for as_dir in $PATH 18065do 18066 IFS=$as_save_IFS 18067 test -z "$as_dir" && as_dir=. 18068 for ac_exec_ext in '' $ac_executable_extensions; do 18069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18070 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext" 18071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18072 break 2 18073 fi 18074done 18075done 18076IFS=$as_save_IFS 18077 18078 ;; 18079esac 18080fi 18081PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG 18082if test -n "$PROG_IFCONFIG"; then 18083 { echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5 18084echo "${ECHO_T}$PROG_IFCONFIG" >&6; } 18085else 18086 { echo "$as_me:$LINENO: result: no" >&5 18087echo "${ECHO_T}no" >&6; } 18088fi 18089 18090 18091 if test -z "$PROG_IFCONFIG" ; then 18092 PROG_IFCONFIG="undef" 18093 fi 18094 18095 18096 18097 # Extract the first word of "jstat", so it can be a program name with args. 18098set dummy jstat; ac_word=$2 18099{ echo "$as_me:$LINENO: checking for $ac_word" >&5 18100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 18101if test "${ac_cv_path_PROG_JSTAT+set}" = set; then 18102 echo $ECHO_N "(cached) $ECHO_C" >&6 18103else 18104 case $PROG_JSTAT in 18105 [\\/]* | ?:[\\/]*) 18106 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path. 18107 ;; 18108 *) 18109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18110for as_dir in $PATH 18111do 18112 IFS=$as_save_IFS 18113 test -z "$as_dir" && as_dir=. 18114 for ac_exec_ext in '' $ac_executable_extensions; do 18115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18116 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext" 18117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18118 break 2 18119 fi 18120done 18121done 18122IFS=$as_save_IFS 18123 18124 ;; 18125esac 18126fi 18127PROG_JSTAT=$ac_cv_path_PROG_JSTAT 18128if test -n "$PROG_JSTAT"; then 18129 { echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5 18130echo "${ECHO_T}$PROG_JSTAT" >&6; } 18131else 18132 { echo "$as_me:$LINENO: result: no" >&5 18133echo "${ECHO_T}no" >&6; } 18134fi 18135 18136 18137 if test -z "$PROG_JSTAT" ; then 18138 PROG_JSTAT="undef" 18139 fi 18140 18141 18142 18143 # Extract the first word of "ps", so it can be a program name with args. 18144set dummy ps; ac_word=$2 18145{ echo "$as_me:$LINENO: checking for $ac_word" >&5 18146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 18147if test "${ac_cv_path_PROG_PS+set}" = set; then 18148 echo $ECHO_N "(cached) $ECHO_C" >&6 18149else 18150 case $PROG_PS in 18151 [\\/]* | ?:[\\/]*) 18152 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path. 18153 ;; 18154 *) 18155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18156for as_dir in $PATH 18157do 18158 IFS=$as_save_IFS 18159 test -z "$as_dir" && as_dir=. 18160 for ac_exec_ext in '' $ac_executable_extensions; do 18161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18162 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext" 18163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18164 break 2 18165 fi 18166done 18167done 18168IFS=$as_save_IFS 18169 18170 ;; 18171esac 18172fi 18173PROG_PS=$ac_cv_path_PROG_PS 18174if test -n "$PROG_PS"; then 18175 { echo "$as_me:$LINENO: result: $PROG_PS" >&5 18176echo "${ECHO_T}$PROG_PS" >&6; } 18177else 18178 { echo "$as_me:$LINENO: result: no" >&5 18179echo "${ECHO_T}no" >&6; } 18180fi 18181 18182 18183 if test -z "$PROG_PS" ; then 18184 PROG_PS="undef" 18185 fi 18186 18187 18188 18189 # Extract the first word of "sar", so it can be a program name with args. 18190set dummy sar; ac_word=$2 18191{ echo "$as_me:$LINENO: checking for $ac_word" >&5 18192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 18193if test "${ac_cv_path_PROG_SAR+set}" = set; then 18194 echo $ECHO_N "(cached) $ECHO_C" >&6 18195else 18196 case $PROG_SAR in 18197 [\\/]* | ?:[\\/]*) 18198 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path. 18199 ;; 18200 *) 18201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18202for as_dir in $PATH 18203do 18204 IFS=$as_save_IFS 18205 test -z "$as_dir" && as_dir=. 18206 for ac_exec_ext in '' $ac_executable_extensions; do 18207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18208 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext" 18209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18210 break 2 18211 fi 18212done 18213done 18214IFS=$as_save_IFS 18215 18216 ;; 18217esac 18218fi 18219PROG_SAR=$ac_cv_path_PROG_SAR 18220if test -n "$PROG_SAR"; then 18221 { echo "$as_me:$LINENO: result: $PROG_SAR" >&5 18222echo "${ECHO_T}$PROG_SAR" >&6; } 18223else 18224 { echo "$as_me:$LINENO: result: no" >&5 18225echo "${ECHO_T}no" >&6; } 18226fi 18227 18228 18229 if test -z "$PROG_SAR" ; then 18230 PROG_SAR="undef" 18231 fi 18232 18233 18234 18235 # Extract the first word of "w", so it can be a program name with args. 18236set dummy w; ac_word=$2 18237{ echo "$as_me:$LINENO: checking for $ac_word" >&5 18238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 18239if test "${ac_cv_path_PROG_W+set}" = set; then 18240 echo $ECHO_N "(cached) $ECHO_C" >&6 18241else 18242 case $PROG_W in 18243 [\\/]* | ?:[\\/]*) 18244 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path. 18245 ;; 18246 *) 18247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18248for as_dir in $PATH 18249do 18250 IFS=$as_save_IFS 18251 test -z "$as_dir" && as_dir=. 18252 for ac_exec_ext in '' $ac_executable_extensions; do 18253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18254 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext" 18255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18256 break 2 18257 fi 18258done 18259done 18260IFS=$as_save_IFS 18261 18262 ;; 18263esac 18264fi 18265PROG_W=$ac_cv_path_PROG_W 18266if test -n "$PROG_W"; then 18267 { echo "$as_me:$LINENO: result: $PROG_W" >&5 18268echo "${ECHO_T}$PROG_W" >&6; } 18269else 18270 { echo "$as_me:$LINENO: result: no" >&5 18271echo "${ECHO_T}no" >&6; } 18272fi 18273 18274 18275 if test -z "$PROG_W" ; then 18276 PROG_W="undef" 18277 fi 18278 18279 18280 18281 # Extract the first word of "who", so it can be a program name with args. 18282set dummy who; ac_word=$2 18283{ echo "$as_me:$LINENO: checking for $ac_word" >&5 18284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 18285if test "${ac_cv_path_PROG_WHO+set}" = set; then 18286 echo $ECHO_N "(cached) $ECHO_C" >&6 18287else 18288 case $PROG_WHO in 18289 [\\/]* | ?:[\\/]*) 18290 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path. 18291 ;; 18292 *) 18293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18294for as_dir in $PATH 18295do 18296 IFS=$as_save_IFS 18297 test -z "$as_dir" && as_dir=. 18298 for ac_exec_ext in '' $ac_executable_extensions; do 18299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18300 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext" 18301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18302 break 2 18303 fi 18304done 18305done 18306IFS=$as_save_IFS 18307 18308 ;; 18309esac 18310fi 18311PROG_WHO=$ac_cv_path_PROG_WHO 18312if test -n "$PROG_WHO"; then 18313 { echo "$as_me:$LINENO: result: $PROG_WHO" >&5 18314echo "${ECHO_T}$PROG_WHO" >&6; } 18315else 18316 { echo "$as_me:$LINENO: result: no" >&5 18317echo "${ECHO_T}no" >&6; } 18318fi 18319 18320 18321 if test -z "$PROG_WHO" ; then 18322 PROG_WHO="undef" 18323 fi 18324 18325 18326 18327 # Extract the first word of "last", so it can be a program name with args. 18328set dummy last; ac_word=$2 18329{ echo "$as_me:$LINENO: checking for $ac_word" >&5 18330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 18331if test "${ac_cv_path_PROG_LAST+set}" = set; then 18332 echo $ECHO_N "(cached) $ECHO_C" >&6 18333else 18334 case $PROG_LAST in 18335 [\\/]* | ?:[\\/]*) 18336 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path. 18337 ;; 18338 *) 18339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18340for as_dir in $PATH 18341do 18342 IFS=$as_save_IFS 18343 test -z "$as_dir" && as_dir=. 18344 for ac_exec_ext in '' $ac_executable_extensions; do 18345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18346 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext" 18347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18348 break 2 18349 fi 18350done 18351done 18352IFS=$as_save_IFS 18353 18354 ;; 18355esac 18356fi 18357PROG_LAST=$ac_cv_path_PROG_LAST 18358if test -n "$PROG_LAST"; then 18359 { echo "$as_me:$LINENO: result: $PROG_LAST" >&5 18360echo "${ECHO_T}$PROG_LAST" >&6; } 18361else 18362 { echo "$as_me:$LINENO: result: no" >&5 18363echo "${ECHO_T}no" >&6; } 18364fi 18365 18366 18367 if test -z "$PROG_LAST" ; then 18368 PROG_LAST="undef" 18369 fi 18370 18371 18372 18373 # Extract the first word of "lastlog", so it can be a program name with args. 18374set dummy lastlog; ac_word=$2 18375{ echo "$as_me:$LINENO: checking for $ac_word" >&5 18376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 18377if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then 18378 echo $ECHO_N "(cached) $ECHO_C" >&6 18379else 18380 case $PROG_LASTLOG in 18381 [\\/]* | ?:[\\/]*) 18382 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path. 18383 ;; 18384 *) 18385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18386for as_dir in $PATH 18387do 18388 IFS=$as_save_IFS 18389 test -z "$as_dir" && as_dir=. 18390 for ac_exec_ext in '' $ac_executable_extensions; do 18391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18392 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext" 18393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18394 break 2 18395 fi 18396done 18397done 18398IFS=$as_save_IFS 18399 18400 ;; 18401esac 18402fi 18403PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG 18404if test -n "$PROG_LASTLOG"; then 18405 { echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5 18406echo "${ECHO_T}$PROG_LASTLOG" >&6; } 18407else 18408 { echo "$as_me:$LINENO: result: no" >&5 18409echo "${ECHO_T}no" >&6; } 18410fi 18411 18412 18413 if test -z "$PROG_LASTLOG" ; then 18414 PROG_LASTLOG="undef" 18415 fi 18416 18417 18418 18419 # Extract the first word of "df", so it can be a program name with args. 18420set dummy df; ac_word=$2 18421{ echo "$as_me:$LINENO: checking for $ac_word" >&5 18422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 18423if test "${ac_cv_path_PROG_DF+set}" = set; then 18424 echo $ECHO_N "(cached) $ECHO_C" >&6 18425else 18426 case $PROG_DF in 18427 [\\/]* | ?:[\\/]*) 18428 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path. 18429 ;; 18430 *) 18431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18432for as_dir in $PATH 18433do 18434 IFS=$as_save_IFS 18435 test -z "$as_dir" && as_dir=. 18436 for ac_exec_ext in '' $ac_executable_extensions; do 18437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18438 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext" 18439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18440 break 2 18441 fi 18442done 18443done 18444IFS=$as_save_IFS 18445 18446 ;; 18447esac 18448fi 18449PROG_DF=$ac_cv_path_PROG_DF 18450if test -n "$PROG_DF"; then 18451 { echo "$as_me:$LINENO: result: $PROG_DF" >&5 18452echo "${ECHO_T}$PROG_DF" >&6; } 18453else 18454 { echo "$as_me:$LINENO: result: no" >&5 18455echo "${ECHO_T}no" >&6; } 18456fi 18457 18458 18459 if test -z "$PROG_DF" ; then 18460 PROG_DF="undef" 18461 fi 18462 18463 18464 18465 # Extract the first word of "vmstat", so it can be a program name with args. 18466set dummy vmstat; ac_word=$2 18467{ echo "$as_me:$LINENO: checking for $ac_word" >&5 18468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 18469if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then 18470 echo $ECHO_N "(cached) $ECHO_C" >&6 18471else 18472 case $PROG_VMSTAT in 18473 [\\/]* | ?:[\\/]*) 18474 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path. 18475 ;; 18476 *) 18477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18478for as_dir in $PATH 18479do 18480 IFS=$as_save_IFS 18481 test -z "$as_dir" && as_dir=. 18482 for ac_exec_ext in '' $ac_executable_extensions; do 18483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18484 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext" 18485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18486 break 2 18487 fi 18488done 18489done 18490IFS=$as_save_IFS 18491 18492 ;; 18493esac 18494fi 18495PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT 18496if test -n "$PROG_VMSTAT"; then 18497 { echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5 18498echo "${ECHO_T}$PROG_VMSTAT" >&6; } 18499else 18500 { echo "$as_me:$LINENO: result: no" >&5 18501echo "${ECHO_T}no" >&6; } 18502fi 18503 18504 18505 if test -z "$PROG_VMSTAT" ; then 18506 PROG_VMSTAT="undef" 18507 fi 18508 18509 18510 18511 # Extract the first word of "uptime", so it can be a program name with args. 18512set dummy uptime; ac_word=$2 18513{ echo "$as_me:$LINENO: checking for $ac_word" >&5 18514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 18515if test "${ac_cv_path_PROG_UPTIME+set}" = set; then 18516 echo $ECHO_N "(cached) $ECHO_C" >&6 18517else 18518 case $PROG_UPTIME in 18519 [\\/]* | ?:[\\/]*) 18520 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path. 18521 ;; 18522 *) 18523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18524for as_dir in $PATH 18525do 18526 IFS=$as_save_IFS 18527 test -z "$as_dir" && as_dir=. 18528 for ac_exec_ext in '' $ac_executable_extensions; do 18529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18530 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext" 18531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18532 break 2 18533 fi 18534done 18535done 18536IFS=$as_save_IFS 18537 18538 ;; 18539esac 18540fi 18541PROG_UPTIME=$ac_cv_path_PROG_UPTIME 18542if test -n "$PROG_UPTIME"; then 18543 { echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5 18544echo "${ECHO_T}$PROG_UPTIME" >&6; } 18545else 18546 { echo "$as_me:$LINENO: result: no" >&5 18547echo "${ECHO_T}no" >&6; } 18548fi 18549 18550 18551 if test -z "$PROG_UPTIME" ; then 18552 PROG_UPTIME="undef" 18553 fi 18554 18555 18556 18557 # Extract the first word of "ipcs", so it can be a program name with args. 18558set dummy ipcs; ac_word=$2 18559{ echo "$as_me:$LINENO: checking for $ac_word" >&5 18560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 18561if test "${ac_cv_path_PROG_IPCS+set}" = set; then 18562 echo $ECHO_N "(cached) $ECHO_C" >&6 18563else 18564 case $PROG_IPCS in 18565 [\\/]* | ?:[\\/]*) 18566 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path. 18567 ;; 18568 *) 18569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18570for as_dir in $PATH 18571do 18572 IFS=$as_save_IFS 18573 test -z "$as_dir" && as_dir=. 18574 for ac_exec_ext in '' $ac_executable_extensions; do 18575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18576 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext" 18577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18578 break 2 18579 fi 18580done 18581done 18582IFS=$as_save_IFS 18583 18584 ;; 18585esac 18586fi 18587PROG_IPCS=$ac_cv_path_PROG_IPCS 18588if test -n "$PROG_IPCS"; then 18589 { echo "$as_me:$LINENO: result: $PROG_IPCS" >&5 18590echo "${ECHO_T}$PROG_IPCS" >&6; } 18591else 18592 { echo "$as_me:$LINENO: result: no" >&5 18593echo "${ECHO_T}no" >&6; } 18594fi 18595 18596 18597 if test -z "$PROG_IPCS" ; then 18598 PROG_IPCS="undef" 18599 fi 18600 18601 18602 18603 # Extract the first word of "tail", so it can be a program name with args. 18604set dummy tail; ac_word=$2 18605{ echo "$as_me:$LINENO: checking for $ac_word" >&5 18606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 18607if test "${ac_cv_path_PROG_TAIL+set}" = set; then 18608 echo $ECHO_N "(cached) $ECHO_C" >&6 18609else 18610 case $PROG_TAIL in 18611 [\\/]* | ?:[\\/]*) 18612 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path. 18613 ;; 18614 *) 18615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18616for as_dir in $PATH 18617do 18618 IFS=$as_save_IFS 18619 test -z "$as_dir" && as_dir=. 18620 for ac_exec_ext in '' $ac_executable_extensions; do 18621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18622 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext" 18623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18624 break 2 18625 fi 18626done 18627done 18628IFS=$as_save_IFS 18629 18630 ;; 18631esac 18632fi 18633PROG_TAIL=$ac_cv_path_PROG_TAIL 18634if test -n "$PROG_TAIL"; then 18635 { echo "$as_me:$LINENO: result: $PROG_TAIL" >&5 18636echo "${ECHO_T}$PROG_TAIL" >&6; } 18637else 18638 { echo "$as_me:$LINENO: result: no" >&5 18639echo "${ECHO_T}no" >&6; } 18640fi 18641 18642 18643 if test -z "$PROG_TAIL" ; then 18644 PROG_TAIL="undef" 18645 fi 18646 18647 18648# restore PATH 18649PATH=$OPATH 18650 18651# Where does ssh-rand-helper get its randomness from? 18652INSTALL_SSH_PRNG_CMDS="" 18653if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then 18654 if test ! -z "$PRNGD_PORT" ; then 18655 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT" 18656 elif test ! -z "$PRNGD_SOCKET" ; then 18657 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\"" 18658 else 18659 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)" 18660 RAND_HELPER_CMDHASH=yes 18661 INSTALL_SSH_PRNG_CMDS="yes" 18662 fi 18663fi 18664 18665 18666 18667# Cheap hack to ensure NEWS-OS libraries are arranged right. 18668if test ! -z "$SONY" ; then 18669 LIBS="$LIBS -liberty"; 18670fi 18671 18672# Check for long long datatypes 18673{ echo "$as_me:$LINENO: checking for long long" >&5 18674echo $ECHO_N "checking for long long... $ECHO_C" >&6; } 18675if test "${ac_cv_type_long_long+set}" = set; then 18676 echo $ECHO_N "(cached) $ECHO_C" >&6 18677else 18678 cat >conftest.$ac_ext <<_ACEOF 18679/* confdefs.h. */ 18680_ACEOF 18681cat confdefs.h >>conftest.$ac_ext 18682cat >>conftest.$ac_ext <<_ACEOF 18683/* end confdefs.h. */ 18684$ac_includes_default 18685typedef long long ac__type_new_; 18686int 18687main () 18688{ 18689if ((ac__type_new_ *) 0) 18690 return 0; 18691if (sizeof (ac__type_new_)) 18692 return 0; 18693 ; 18694 return 0; 18695} 18696_ACEOF 18697rm -f conftest.$ac_objext 18698if { (ac_try="$ac_compile" 18699case "(($ac_try" in 18700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18701 *) ac_try_echo=$ac_try;; 18702esac 18703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18704 (eval "$ac_compile") 2>conftest.er1 18705 ac_status=$? 18706 grep -v '^ *+' conftest.er1 >conftest.err 18707 rm -f conftest.er1 18708 cat conftest.err >&5 18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18710 (exit $ac_status); } && { 18711 test -z "$ac_c_werror_flag" || 18712 test ! -s conftest.err 18713 } && test -s conftest.$ac_objext; then 18714 ac_cv_type_long_long=yes 18715else 18716 echo "$as_me: failed program was:" >&5 18717sed 's/^/| /' conftest.$ac_ext >&5 18718 18719 ac_cv_type_long_long=no 18720fi 18721 18722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18723fi 18724{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 18725echo "${ECHO_T}$ac_cv_type_long_long" >&6; } 18726if test $ac_cv_type_long_long = yes; then 18727 18728cat >>confdefs.h <<_ACEOF 18729#define HAVE_LONG_LONG 1 18730_ACEOF 18731 18732 18733fi 18734{ echo "$as_me:$LINENO: checking for unsigned long long" >&5 18735echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } 18736if test "${ac_cv_type_unsigned_long_long+set}" = set; then 18737 echo $ECHO_N "(cached) $ECHO_C" >&6 18738else 18739 cat >conftest.$ac_ext <<_ACEOF 18740/* confdefs.h. */ 18741_ACEOF 18742cat confdefs.h >>conftest.$ac_ext 18743cat >>conftest.$ac_ext <<_ACEOF 18744/* end confdefs.h. */ 18745$ac_includes_default 18746typedef unsigned long long ac__type_new_; 18747int 18748main () 18749{ 18750if ((ac__type_new_ *) 0) 18751 return 0; 18752if (sizeof (ac__type_new_)) 18753 return 0; 18754 ; 18755 return 0; 18756} 18757_ACEOF 18758rm -f conftest.$ac_objext 18759if { (ac_try="$ac_compile" 18760case "(($ac_try" in 18761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18762 *) ac_try_echo=$ac_try;; 18763esac 18764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18765 (eval "$ac_compile") 2>conftest.er1 18766 ac_status=$? 18767 grep -v '^ *+' conftest.er1 >conftest.err 18768 rm -f conftest.er1 18769 cat conftest.err >&5 18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18771 (exit $ac_status); } && { 18772 test -z "$ac_c_werror_flag" || 18773 test ! -s conftest.err 18774 } && test -s conftest.$ac_objext; then 18775 ac_cv_type_unsigned_long_long=yes 18776else 18777 echo "$as_me: failed program was:" >&5 18778sed 's/^/| /' conftest.$ac_ext >&5 18779 18780 ac_cv_type_unsigned_long_long=no 18781fi 18782 18783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18784fi 18785{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 18786echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } 18787if test $ac_cv_type_unsigned_long_long = yes; then 18788 18789cat >>confdefs.h <<_ACEOF 18790#define HAVE_UNSIGNED_LONG_LONG 1 18791_ACEOF 18792 18793 18794fi 18795{ echo "$as_me:$LINENO: checking for long double" >&5 18796echo $ECHO_N "checking for long double... $ECHO_C" >&6; } 18797if test "${ac_cv_type_long_double+set}" = set; then 18798 echo $ECHO_N "(cached) $ECHO_C" >&6 18799else 18800 cat >conftest.$ac_ext <<_ACEOF 18801/* confdefs.h. */ 18802_ACEOF 18803cat confdefs.h >>conftest.$ac_ext 18804cat >>conftest.$ac_ext <<_ACEOF 18805/* end confdefs.h. */ 18806$ac_includes_default 18807typedef long double ac__type_new_; 18808int 18809main () 18810{ 18811if ((ac__type_new_ *) 0) 18812 return 0; 18813if (sizeof (ac__type_new_)) 18814 return 0; 18815 ; 18816 return 0; 18817} 18818_ACEOF 18819rm -f conftest.$ac_objext 18820if { (ac_try="$ac_compile" 18821case "(($ac_try" in 18822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18823 *) ac_try_echo=$ac_try;; 18824esac 18825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18826 (eval "$ac_compile") 2>conftest.er1 18827 ac_status=$? 18828 grep -v '^ *+' conftest.er1 >conftest.err 18829 rm -f conftest.er1 18830 cat conftest.err >&5 18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18832 (exit $ac_status); } && { 18833 test -z "$ac_c_werror_flag" || 18834 test ! -s conftest.err 18835 } && test -s conftest.$ac_objext; then 18836 ac_cv_type_long_double=yes 18837else 18838 echo "$as_me: failed program was:" >&5 18839sed 's/^/| /' conftest.$ac_ext >&5 18840 18841 ac_cv_type_long_double=no 18842fi 18843 18844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18845fi 18846{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 18847echo "${ECHO_T}$ac_cv_type_long_double" >&6; } 18848if test $ac_cv_type_long_double = yes; then 18849 18850cat >>confdefs.h <<_ACEOF 18851#define HAVE_LONG_DOUBLE 1 18852_ACEOF 18853 18854 18855fi 18856 18857 18858# Check datatype sizes 18859{ echo "$as_me:$LINENO: checking for char" >&5 18860echo $ECHO_N "checking for char... $ECHO_C" >&6; } 18861if test "${ac_cv_type_char+set}" = set; then 18862 echo $ECHO_N "(cached) $ECHO_C" >&6 18863else 18864 cat >conftest.$ac_ext <<_ACEOF 18865/* confdefs.h. */ 18866_ACEOF 18867cat confdefs.h >>conftest.$ac_ext 18868cat >>conftest.$ac_ext <<_ACEOF 18869/* end confdefs.h. */ 18870$ac_includes_default 18871typedef char ac__type_new_; 18872int 18873main () 18874{ 18875if ((ac__type_new_ *) 0) 18876 return 0; 18877if (sizeof (ac__type_new_)) 18878 return 0; 18879 ; 18880 return 0; 18881} 18882_ACEOF 18883rm -f conftest.$ac_objext 18884if { (ac_try="$ac_compile" 18885case "(($ac_try" in 18886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18887 *) ac_try_echo=$ac_try;; 18888esac 18889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18890 (eval "$ac_compile") 2>conftest.er1 18891 ac_status=$? 18892 grep -v '^ *+' conftest.er1 >conftest.err 18893 rm -f conftest.er1 18894 cat conftest.err >&5 18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18896 (exit $ac_status); } && { 18897 test -z "$ac_c_werror_flag" || 18898 test ! -s conftest.err 18899 } && test -s conftest.$ac_objext; then 18900 ac_cv_type_char=yes 18901else 18902 echo "$as_me: failed program was:" >&5 18903sed 's/^/| /' conftest.$ac_ext >&5 18904 18905 ac_cv_type_char=no 18906fi 18907 18908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18909fi 18910{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 18911echo "${ECHO_T}$ac_cv_type_char" >&6; } 18912 18913# The cast to long int works around a bug in the HP C Compiler 18914# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18915# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18916# This bug is HP SR number 8606223364. 18917{ echo "$as_me:$LINENO: checking size of char" >&5 18918echo $ECHO_N "checking size of char... $ECHO_C" >&6; } 18919if test "${ac_cv_sizeof_char+set}" = set; then 18920 echo $ECHO_N "(cached) $ECHO_C" >&6 18921else 18922 if test "$cross_compiling" = yes; then 18923 # Depending upon the size, compute the lo and hi bounds. 18924cat >conftest.$ac_ext <<_ACEOF 18925/* confdefs.h. */ 18926_ACEOF 18927cat confdefs.h >>conftest.$ac_ext 18928cat >>conftest.$ac_ext <<_ACEOF 18929/* end confdefs.h. */ 18930$ac_includes_default 18931 typedef char ac__type_sizeof_; 18932int 18933main () 18934{ 18935static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 18936test_array [0] = 0 18937 18938 ; 18939 return 0; 18940} 18941_ACEOF 18942rm -f conftest.$ac_objext 18943if { (ac_try="$ac_compile" 18944case "(($ac_try" in 18945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18946 *) ac_try_echo=$ac_try;; 18947esac 18948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18949 (eval "$ac_compile") 2>conftest.er1 18950 ac_status=$? 18951 grep -v '^ *+' conftest.er1 >conftest.err 18952 rm -f conftest.er1 18953 cat conftest.err >&5 18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18955 (exit $ac_status); } && { 18956 test -z "$ac_c_werror_flag" || 18957 test ! -s conftest.err 18958 } && test -s conftest.$ac_objext; then 18959 ac_lo=0 ac_mid=0 18960 while :; do 18961 cat >conftest.$ac_ext <<_ACEOF 18962/* confdefs.h. */ 18963_ACEOF 18964cat confdefs.h >>conftest.$ac_ext 18965cat >>conftest.$ac_ext <<_ACEOF 18966/* end confdefs.h. */ 18967$ac_includes_default 18968 typedef char ac__type_sizeof_; 18969int 18970main () 18971{ 18972static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 18973test_array [0] = 0 18974 18975 ; 18976 return 0; 18977} 18978_ACEOF 18979rm -f conftest.$ac_objext 18980if { (ac_try="$ac_compile" 18981case "(($ac_try" in 18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18983 *) ac_try_echo=$ac_try;; 18984esac 18985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18986 (eval "$ac_compile") 2>conftest.er1 18987 ac_status=$? 18988 grep -v '^ *+' conftest.er1 >conftest.err 18989 rm -f conftest.er1 18990 cat conftest.err >&5 18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18992 (exit $ac_status); } && { 18993 test -z "$ac_c_werror_flag" || 18994 test ! -s conftest.err 18995 } && test -s conftest.$ac_objext; then 18996 ac_hi=$ac_mid; break 18997else 18998 echo "$as_me: failed program was:" >&5 18999sed 's/^/| /' conftest.$ac_ext >&5 19000 19001 ac_lo=`expr $ac_mid + 1` 19002 if test $ac_lo -le $ac_mid; then 19003 ac_lo= ac_hi= 19004 break 19005 fi 19006 ac_mid=`expr 2 '*' $ac_mid + 1` 19007fi 19008 19009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19010 done 19011else 19012 echo "$as_me: failed program was:" >&5 19013sed 's/^/| /' conftest.$ac_ext >&5 19014 19015 cat >conftest.$ac_ext <<_ACEOF 19016/* confdefs.h. */ 19017_ACEOF 19018cat confdefs.h >>conftest.$ac_ext 19019cat >>conftest.$ac_ext <<_ACEOF 19020/* end confdefs.h. */ 19021$ac_includes_default 19022 typedef char ac__type_sizeof_; 19023int 19024main () 19025{ 19026static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 19027test_array [0] = 0 19028 19029 ; 19030 return 0; 19031} 19032_ACEOF 19033rm -f conftest.$ac_objext 19034if { (ac_try="$ac_compile" 19035case "(($ac_try" in 19036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19037 *) ac_try_echo=$ac_try;; 19038esac 19039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19040 (eval "$ac_compile") 2>conftest.er1 19041 ac_status=$? 19042 grep -v '^ *+' conftest.er1 >conftest.err 19043 rm -f conftest.er1 19044 cat conftest.err >&5 19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19046 (exit $ac_status); } && { 19047 test -z "$ac_c_werror_flag" || 19048 test ! -s conftest.err 19049 } && test -s conftest.$ac_objext; then 19050 ac_hi=-1 ac_mid=-1 19051 while :; do 19052 cat >conftest.$ac_ext <<_ACEOF 19053/* confdefs.h. */ 19054_ACEOF 19055cat confdefs.h >>conftest.$ac_ext 19056cat >>conftest.$ac_ext <<_ACEOF 19057/* end confdefs.h. */ 19058$ac_includes_default 19059 typedef char ac__type_sizeof_; 19060int 19061main () 19062{ 19063static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 19064test_array [0] = 0 19065 19066 ; 19067 return 0; 19068} 19069_ACEOF 19070rm -f conftest.$ac_objext 19071if { (ac_try="$ac_compile" 19072case "(($ac_try" in 19073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19074 *) ac_try_echo=$ac_try;; 19075esac 19076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19077 (eval "$ac_compile") 2>conftest.er1 19078 ac_status=$? 19079 grep -v '^ *+' conftest.er1 >conftest.err 19080 rm -f conftest.er1 19081 cat conftest.err >&5 19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19083 (exit $ac_status); } && { 19084 test -z "$ac_c_werror_flag" || 19085 test ! -s conftest.err 19086 } && test -s conftest.$ac_objext; then 19087 ac_lo=$ac_mid; break 19088else 19089 echo "$as_me: failed program was:" >&5 19090sed 's/^/| /' conftest.$ac_ext >&5 19091 19092 ac_hi=`expr '(' $ac_mid ')' - 1` 19093 if test $ac_mid -le $ac_hi; then 19094 ac_lo= ac_hi= 19095 break 19096 fi 19097 ac_mid=`expr 2 '*' $ac_mid` 19098fi 19099 19100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19101 done 19102else 19103 echo "$as_me: failed program was:" >&5 19104sed 's/^/| /' conftest.$ac_ext >&5 19105 19106 ac_lo= ac_hi= 19107fi 19108 19109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19110fi 19111 19112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19113# Binary search between lo and hi bounds. 19114while test "x$ac_lo" != "x$ac_hi"; do 19115 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 19116 cat >conftest.$ac_ext <<_ACEOF 19117/* confdefs.h. */ 19118_ACEOF 19119cat confdefs.h >>conftest.$ac_ext 19120cat >>conftest.$ac_ext <<_ACEOF 19121/* end confdefs.h. */ 19122$ac_includes_default 19123 typedef char ac__type_sizeof_; 19124int 19125main () 19126{ 19127static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 19128test_array [0] = 0 19129 19130 ; 19131 return 0; 19132} 19133_ACEOF 19134rm -f conftest.$ac_objext 19135if { (ac_try="$ac_compile" 19136case "(($ac_try" in 19137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19138 *) ac_try_echo=$ac_try;; 19139esac 19140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19141 (eval "$ac_compile") 2>conftest.er1 19142 ac_status=$? 19143 grep -v '^ *+' conftest.er1 >conftest.err 19144 rm -f conftest.er1 19145 cat conftest.err >&5 19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19147 (exit $ac_status); } && { 19148 test -z "$ac_c_werror_flag" || 19149 test ! -s conftest.err 19150 } && test -s conftest.$ac_objext; then 19151 ac_hi=$ac_mid 19152else 19153 echo "$as_me: failed program was:" >&5 19154sed 's/^/| /' conftest.$ac_ext >&5 19155 19156 ac_lo=`expr '(' $ac_mid ')' + 1` 19157fi 19158 19159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19160done 19161case $ac_lo in 19162?*) ac_cv_sizeof_char=$ac_lo;; 19163'') if test "$ac_cv_type_char" = yes; then 19164 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) 19165See \`config.log' for more details." >&5 19166echo "$as_me: error: cannot compute sizeof (char) 19167See \`config.log' for more details." >&2;} 19168 { (exit 77); exit 77; }; } 19169 else 19170 ac_cv_sizeof_char=0 19171 fi ;; 19172esac 19173else 19174 cat >conftest.$ac_ext <<_ACEOF 19175/* confdefs.h. */ 19176_ACEOF 19177cat confdefs.h >>conftest.$ac_ext 19178cat >>conftest.$ac_ext <<_ACEOF 19179/* end confdefs.h. */ 19180$ac_includes_default 19181 typedef char ac__type_sizeof_; 19182static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 19183static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 19184#include <stdio.h> 19185#include <stdlib.h> 19186int 19187main () 19188{ 19189 19190 FILE *f = fopen ("conftest.val", "w"); 19191 if (! f) 19192 return 1; 19193 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 19194 { 19195 long int i = longval (); 19196 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 19197 return 1; 19198 fprintf (f, "%ld\n", i); 19199 } 19200 else 19201 { 19202 unsigned long int i = ulongval (); 19203 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 19204 return 1; 19205 fprintf (f, "%lu\n", i); 19206 } 19207 return ferror (f) || fclose (f) != 0; 19208 19209 ; 19210 return 0; 19211} 19212_ACEOF 19213rm -f conftest$ac_exeext 19214if { (ac_try="$ac_link" 19215case "(($ac_try" in 19216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19217 *) ac_try_echo=$ac_try;; 19218esac 19219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19220 (eval "$ac_link") 2>&5 19221 ac_status=$? 19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19224 { (case "(($ac_try" in 19225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19226 *) ac_try_echo=$ac_try;; 19227esac 19228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19229 (eval "$ac_try") 2>&5 19230 ac_status=$? 19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19232 (exit $ac_status); }; }; then 19233 ac_cv_sizeof_char=`cat conftest.val` 19234else 19235 echo "$as_me: program exited with status $ac_status" >&5 19236echo "$as_me: failed program was:" >&5 19237sed 's/^/| /' conftest.$ac_ext >&5 19238 19239( exit $ac_status ) 19240if test "$ac_cv_type_char" = yes; then 19241 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) 19242See \`config.log' for more details." >&5 19243echo "$as_me: error: cannot compute sizeof (char) 19244See \`config.log' for more details." >&2;} 19245 { (exit 77); exit 77; }; } 19246 else 19247 ac_cv_sizeof_char=0 19248 fi 19249fi 19250rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19251fi 19252rm -f conftest.val 19253fi 19254{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 19255echo "${ECHO_T}$ac_cv_sizeof_char" >&6; } 19256 19257 19258 19259cat >>confdefs.h <<_ACEOF 19260#define SIZEOF_CHAR $ac_cv_sizeof_char 19261_ACEOF 19262 19263 19264{ echo "$as_me:$LINENO: checking for short int" >&5 19265echo $ECHO_N "checking for short int... $ECHO_C" >&6; } 19266if test "${ac_cv_type_short_int+set}" = set; then 19267 echo $ECHO_N "(cached) $ECHO_C" >&6 19268else 19269 cat >conftest.$ac_ext <<_ACEOF 19270/* confdefs.h. */ 19271_ACEOF 19272cat confdefs.h >>conftest.$ac_ext 19273cat >>conftest.$ac_ext <<_ACEOF 19274/* end confdefs.h. */ 19275$ac_includes_default 19276typedef short int ac__type_new_; 19277int 19278main () 19279{ 19280if ((ac__type_new_ *) 0) 19281 return 0; 19282if (sizeof (ac__type_new_)) 19283 return 0; 19284 ; 19285 return 0; 19286} 19287_ACEOF 19288rm -f conftest.$ac_objext 19289if { (ac_try="$ac_compile" 19290case "(($ac_try" in 19291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19292 *) ac_try_echo=$ac_try;; 19293esac 19294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19295 (eval "$ac_compile") 2>conftest.er1 19296 ac_status=$? 19297 grep -v '^ *+' conftest.er1 >conftest.err 19298 rm -f conftest.er1 19299 cat conftest.err >&5 19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19301 (exit $ac_status); } && { 19302 test -z "$ac_c_werror_flag" || 19303 test ! -s conftest.err 19304 } && test -s conftest.$ac_objext; then 19305 ac_cv_type_short_int=yes 19306else 19307 echo "$as_me: failed program was:" >&5 19308sed 's/^/| /' conftest.$ac_ext >&5 19309 19310 ac_cv_type_short_int=no 19311fi 19312 19313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19314fi 19315{ echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5 19316echo "${ECHO_T}$ac_cv_type_short_int" >&6; } 19317 19318# The cast to long int works around a bug in the HP C Compiler 19319# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19320# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19321# This bug is HP SR number 8606223364. 19322{ echo "$as_me:$LINENO: checking size of short int" >&5 19323echo $ECHO_N "checking size of short int... $ECHO_C" >&6; } 19324if test "${ac_cv_sizeof_short_int+set}" = set; then 19325 echo $ECHO_N "(cached) $ECHO_C" >&6 19326else 19327 if test "$cross_compiling" = yes; then 19328 # Depending upon the size, compute the lo and hi bounds. 19329cat >conftest.$ac_ext <<_ACEOF 19330/* confdefs.h. */ 19331_ACEOF 19332cat confdefs.h >>conftest.$ac_ext 19333cat >>conftest.$ac_ext <<_ACEOF 19334/* end confdefs.h. */ 19335$ac_includes_default 19336 typedef short int ac__type_sizeof_; 19337int 19338main () 19339{ 19340static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 19341test_array [0] = 0 19342 19343 ; 19344 return 0; 19345} 19346_ACEOF 19347rm -f conftest.$ac_objext 19348if { (ac_try="$ac_compile" 19349case "(($ac_try" in 19350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19351 *) ac_try_echo=$ac_try;; 19352esac 19353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19354 (eval "$ac_compile") 2>conftest.er1 19355 ac_status=$? 19356 grep -v '^ *+' conftest.er1 >conftest.err 19357 rm -f conftest.er1 19358 cat conftest.err >&5 19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19360 (exit $ac_status); } && { 19361 test -z "$ac_c_werror_flag" || 19362 test ! -s conftest.err 19363 } && test -s conftest.$ac_objext; then 19364 ac_lo=0 ac_mid=0 19365 while :; do 19366 cat >conftest.$ac_ext <<_ACEOF 19367/* confdefs.h. */ 19368_ACEOF 19369cat confdefs.h >>conftest.$ac_ext 19370cat >>conftest.$ac_ext <<_ACEOF 19371/* end confdefs.h. */ 19372$ac_includes_default 19373 typedef short int ac__type_sizeof_; 19374int 19375main () 19376{ 19377static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 19378test_array [0] = 0 19379 19380 ; 19381 return 0; 19382} 19383_ACEOF 19384rm -f conftest.$ac_objext 19385if { (ac_try="$ac_compile" 19386case "(($ac_try" in 19387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19388 *) ac_try_echo=$ac_try;; 19389esac 19390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19391 (eval "$ac_compile") 2>conftest.er1 19392 ac_status=$? 19393 grep -v '^ *+' conftest.er1 >conftest.err 19394 rm -f conftest.er1 19395 cat conftest.err >&5 19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19397 (exit $ac_status); } && { 19398 test -z "$ac_c_werror_flag" || 19399 test ! -s conftest.err 19400 } && test -s conftest.$ac_objext; then 19401 ac_hi=$ac_mid; break 19402else 19403 echo "$as_me: failed program was:" >&5 19404sed 's/^/| /' conftest.$ac_ext >&5 19405 19406 ac_lo=`expr $ac_mid + 1` 19407 if test $ac_lo -le $ac_mid; then 19408 ac_lo= ac_hi= 19409 break 19410 fi 19411 ac_mid=`expr 2 '*' $ac_mid + 1` 19412fi 19413 19414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19415 done 19416else 19417 echo "$as_me: failed program was:" >&5 19418sed 's/^/| /' conftest.$ac_ext >&5 19419 19420 cat >conftest.$ac_ext <<_ACEOF 19421/* confdefs.h. */ 19422_ACEOF 19423cat confdefs.h >>conftest.$ac_ext 19424cat >>conftest.$ac_ext <<_ACEOF 19425/* end confdefs.h. */ 19426$ac_includes_default 19427 typedef short int ac__type_sizeof_; 19428int 19429main () 19430{ 19431static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 19432test_array [0] = 0 19433 19434 ; 19435 return 0; 19436} 19437_ACEOF 19438rm -f conftest.$ac_objext 19439if { (ac_try="$ac_compile" 19440case "(($ac_try" in 19441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19442 *) ac_try_echo=$ac_try;; 19443esac 19444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19445 (eval "$ac_compile") 2>conftest.er1 19446 ac_status=$? 19447 grep -v '^ *+' conftest.er1 >conftest.err 19448 rm -f conftest.er1 19449 cat conftest.err >&5 19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19451 (exit $ac_status); } && { 19452 test -z "$ac_c_werror_flag" || 19453 test ! -s conftest.err 19454 } && test -s conftest.$ac_objext; then 19455 ac_hi=-1 ac_mid=-1 19456 while :; do 19457 cat >conftest.$ac_ext <<_ACEOF 19458/* confdefs.h. */ 19459_ACEOF 19460cat confdefs.h >>conftest.$ac_ext 19461cat >>conftest.$ac_ext <<_ACEOF 19462/* end confdefs.h. */ 19463$ac_includes_default 19464 typedef short int ac__type_sizeof_; 19465int 19466main () 19467{ 19468static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 19469test_array [0] = 0 19470 19471 ; 19472 return 0; 19473} 19474_ACEOF 19475rm -f conftest.$ac_objext 19476if { (ac_try="$ac_compile" 19477case "(($ac_try" in 19478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19479 *) ac_try_echo=$ac_try;; 19480esac 19481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19482 (eval "$ac_compile") 2>conftest.er1 19483 ac_status=$? 19484 grep -v '^ *+' conftest.er1 >conftest.err 19485 rm -f conftest.er1 19486 cat conftest.err >&5 19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19488 (exit $ac_status); } && { 19489 test -z "$ac_c_werror_flag" || 19490 test ! -s conftest.err 19491 } && test -s conftest.$ac_objext; then 19492 ac_lo=$ac_mid; break 19493else 19494 echo "$as_me: failed program was:" >&5 19495sed 's/^/| /' conftest.$ac_ext >&5 19496 19497 ac_hi=`expr '(' $ac_mid ')' - 1` 19498 if test $ac_mid -le $ac_hi; then 19499 ac_lo= ac_hi= 19500 break 19501 fi 19502 ac_mid=`expr 2 '*' $ac_mid` 19503fi 19504 19505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19506 done 19507else 19508 echo "$as_me: failed program was:" >&5 19509sed 's/^/| /' conftest.$ac_ext >&5 19510 19511 ac_lo= ac_hi= 19512fi 19513 19514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19515fi 19516 19517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19518# Binary search between lo and hi bounds. 19519while test "x$ac_lo" != "x$ac_hi"; do 19520 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 19521 cat >conftest.$ac_ext <<_ACEOF 19522/* confdefs.h. */ 19523_ACEOF 19524cat confdefs.h >>conftest.$ac_ext 19525cat >>conftest.$ac_ext <<_ACEOF 19526/* end confdefs.h. */ 19527$ac_includes_default 19528 typedef short int ac__type_sizeof_; 19529int 19530main () 19531{ 19532static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 19533test_array [0] = 0 19534 19535 ; 19536 return 0; 19537} 19538_ACEOF 19539rm -f conftest.$ac_objext 19540if { (ac_try="$ac_compile" 19541case "(($ac_try" in 19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19543 *) ac_try_echo=$ac_try;; 19544esac 19545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19546 (eval "$ac_compile") 2>conftest.er1 19547 ac_status=$? 19548 grep -v '^ *+' conftest.er1 >conftest.err 19549 rm -f conftest.er1 19550 cat conftest.err >&5 19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19552 (exit $ac_status); } && { 19553 test -z "$ac_c_werror_flag" || 19554 test ! -s conftest.err 19555 } && test -s conftest.$ac_objext; then 19556 ac_hi=$ac_mid 19557else 19558 echo "$as_me: failed program was:" >&5 19559sed 's/^/| /' conftest.$ac_ext >&5 19560 19561 ac_lo=`expr '(' $ac_mid ')' + 1` 19562fi 19563 19564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19565done 19566case $ac_lo in 19567?*) ac_cv_sizeof_short_int=$ac_lo;; 19568'') if test "$ac_cv_type_short_int" = yes; then 19569 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int) 19570See \`config.log' for more details." >&5 19571echo "$as_me: error: cannot compute sizeof (short int) 19572See \`config.log' for more details." >&2;} 19573 { (exit 77); exit 77; }; } 19574 else 19575 ac_cv_sizeof_short_int=0 19576 fi ;; 19577esac 19578else 19579 cat >conftest.$ac_ext <<_ACEOF 19580/* confdefs.h. */ 19581_ACEOF 19582cat confdefs.h >>conftest.$ac_ext 19583cat >>conftest.$ac_ext <<_ACEOF 19584/* end confdefs.h. */ 19585$ac_includes_default 19586 typedef short int ac__type_sizeof_; 19587static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 19588static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 19589#include <stdio.h> 19590#include <stdlib.h> 19591int 19592main () 19593{ 19594 19595 FILE *f = fopen ("conftest.val", "w"); 19596 if (! f) 19597 return 1; 19598 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 19599 { 19600 long int i = longval (); 19601 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 19602 return 1; 19603 fprintf (f, "%ld\n", i); 19604 } 19605 else 19606 { 19607 unsigned long int i = ulongval (); 19608 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 19609 return 1; 19610 fprintf (f, "%lu\n", i); 19611 } 19612 return ferror (f) || fclose (f) != 0; 19613 19614 ; 19615 return 0; 19616} 19617_ACEOF 19618rm -f conftest$ac_exeext 19619if { (ac_try="$ac_link" 19620case "(($ac_try" in 19621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19622 *) ac_try_echo=$ac_try;; 19623esac 19624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19625 (eval "$ac_link") 2>&5 19626 ac_status=$? 19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19629 { (case "(($ac_try" in 19630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19631 *) ac_try_echo=$ac_try;; 19632esac 19633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19634 (eval "$ac_try") 2>&5 19635 ac_status=$? 19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19637 (exit $ac_status); }; }; then 19638 ac_cv_sizeof_short_int=`cat conftest.val` 19639else 19640 echo "$as_me: program exited with status $ac_status" >&5 19641echo "$as_me: failed program was:" >&5 19642sed 's/^/| /' conftest.$ac_ext >&5 19643 19644( exit $ac_status ) 19645if test "$ac_cv_type_short_int" = yes; then 19646 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int) 19647See \`config.log' for more details." >&5 19648echo "$as_me: error: cannot compute sizeof (short int) 19649See \`config.log' for more details." >&2;} 19650 { (exit 77); exit 77; }; } 19651 else 19652 ac_cv_sizeof_short_int=0 19653 fi 19654fi 19655rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19656fi 19657rm -f conftest.val 19658fi 19659{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5 19660echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; } 19661 19662 19663 19664cat >>confdefs.h <<_ACEOF 19665#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int 19666_ACEOF 19667 19668 19669{ echo "$as_me:$LINENO: checking for int" >&5 19670echo $ECHO_N "checking for int... $ECHO_C" >&6; } 19671if test "${ac_cv_type_int+set}" = set; then 19672 echo $ECHO_N "(cached) $ECHO_C" >&6 19673else 19674 cat >conftest.$ac_ext <<_ACEOF 19675/* confdefs.h. */ 19676_ACEOF 19677cat confdefs.h >>conftest.$ac_ext 19678cat >>conftest.$ac_ext <<_ACEOF 19679/* end confdefs.h. */ 19680$ac_includes_default 19681typedef int ac__type_new_; 19682int 19683main () 19684{ 19685if ((ac__type_new_ *) 0) 19686 return 0; 19687if (sizeof (ac__type_new_)) 19688 return 0; 19689 ; 19690 return 0; 19691} 19692_ACEOF 19693rm -f conftest.$ac_objext 19694if { (ac_try="$ac_compile" 19695case "(($ac_try" in 19696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19697 *) ac_try_echo=$ac_try;; 19698esac 19699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19700 (eval "$ac_compile") 2>conftest.er1 19701 ac_status=$? 19702 grep -v '^ *+' conftest.er1 >conftest.err 19703 rm -f conftest.er1 19704 cat conftest.err >&5 19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19706 (exit $ac_status); } && { 19707 test -z "$ac_c_werror_flag" || 19708 test ! -s conftest.err 19709 } && test -s conftest.$ac_objext; then 19710 ac_cv_type_int=yes 19711else 19712 echo "$as_me: failed program was:" >&5 19713sed 's/^/| /' conftest.$ac_ext >&5 19714 19715 ac_cv_type_int=no 19716fi 19717 19718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19719fi 19720{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 19721echo "${ECHO_T}$ac_cv_type_int" >&6; } 19722 19723# The cast to long int works around a bug in the HP C Compiler 19724# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19725# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19726# This bug is HP SR number 8606223364. 19727{ echo "$as_me:$LINENO: checking size of int" >&5 19728echo $ECHO_N "checking size of int... $ECHO_C" >&6; } 19729if test "${ac_cv_sizeof_int+set}" = set; then 19730 echo $ECHO_N "(cached) $ECHO_C" >&6 19731else 19732 if test "$cross_compiling" = yes; then 19733 # Depending upon the size, compute the lo and hi bounds. 19734cat >conftest.$ac_ext <<_ACEOF 19735/* confdefs.h. */ 19736_ACEOF 19737cat confdefs.h >>conftest.$ac_ext 19738cat >>conftest.$ac_ext <<_ACEOF 19739/* end confdefs.h. */ 19740$ac_includes_default 19741 typedef int ac__type_sizeof_; 19742int 19743main () 19744{ 19745static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 19746test_array [0] = 0 19747 19748 ; 19749 return 0; 19750} 19751_ACEOF 19752rm -f conftest.$ac_objext 19753if { (ac_try="$ac_compile" 19754case "(($ac_try" in 19755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19756 *) ac_try_echo=$ac_try;; 19757esac 19758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19759 (eval "$ac_compile") 2>conftest.er1 19760 ac_status=$? 19761 grep -v '^ *+' conftest.er1 >conftest.err 19762 rm -f conftest.er1 19763 cat conftest.err >&5 19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19765 (exit $ac_status); } && { 19766 test -z "$ac_c_werror_flag" || 19767 test ! -s conftest.err 19768 } && test -s conftest.$ac_objext; then 19769 ac_lo=0 ac_mid=0 19770 while :; do 19771 cat >conftest.$ac_ext <<_ACEOF 19772/* confdefs.h. */ 19773_ACEOF 19774cat confdefs.h >>conftest.$ac_ext 19775cat >>conftest.$ac_ext <<_ACEOF 19776/* end confdefs.h. */ 19777$ac_includes_default 19778 typedef int ac__type_sizeof_; 19779int 19780main () 19781{ 19782static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 19783test_array [0] = 0 19784 19785 ; 19786 return 0; 19787} 19788_ACEOF 19789rm -f conftest.$ac_objext 19790if { (ac_try="$ac_compile" 19791case "(($ac_try" in 19792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19793 *) ac_try_echo=$ac_try;; 19794esac 19795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19796 (eval "$ac_compile") 2>conftest.er1 19797 ac_status=$? 19798 grep -v '^ *+' conftest.er1 >conftest.err 19799 rm -f conftest.er1 19800 cat conftest.err >&5 19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19802 (exit $ac_status); } && { 19803 test -z "$ac_c_werror_flag" || 19804 test ! -s conftest.err 19805 } && test -s conftest.$ac_objext; then 19806 ac_hi=$ac_mid; break 19807else 19808 echo "$as_me: failed program was:" >&5 19809sed 's/^/| /' conftest.$ac_ext >&5 19810 19811 ac_lo=`expr $ac_mid + 1` 19812 if test $ac_lo -le $ac_mid; then 19813 ac_lo= ac_hi= 19814 break 19815 fi 19816 ac_mid=`expr 2 '*' $ac_mid + 1` 19817fi 19818 19819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19820 done 19821else 19822 echo "$as_me: failed program was:" >&5 19823sed 's/^/| /' conftest.$ac_ext >&5 19824 19825 cat >conftest.$ac_ext <<_ACEOF 19826/* confdefs.h. */ 19827_ACEOF 19828cat confdefs.h >>conftest.$ac_ext 19829cat >>conftest.$ac_ext <<_ACEOF 19830/* end confdefs.h. */ 19831$ac_includes_default 19832 typedef int ac__type_sizeof_; 19833int 19834main () 19835{ 19836static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 19837test_array [0] = 0 19838 19839 ; 19840 return 0; 19841} 19842_ACEOF 19843rm -f conftest.$ac_objext 19844if { (ac_try="$ac_compile" 19845case "(($ac_try" in 19846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19847 *) ac_try_echo=$ac_try;; 19848esac 19849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19850 (eval "$ac_compile") 2>conftest.er1 19851 ac_status=$? 19852 grep -v '^ *+' conftest.er1 >conftest.err 19853 rm -f conftest.er1 19854 cat conftest.err >&5 19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19856 (exit $ac_status); } && { 19857 test -z "$ac_c_werror_flag" || 19858 test ! -s conftest.err 19859 } && test -s conftest.$ac_objext; then 19860 ac_hi=-1 ac_mid=-1 19861 while :; do 19862 cat >conftest.$ac_ext <<_ACEOF 19863/* confdefs.h. */ 19864_ACEOF 19865cat confdefs.h >>conftest.$ac_ext 19866cat >>conftest.$ac_ext <<_ACEOF 19867/* end confdefs.h. */ 19868$ac_includes_default 19869 typedef int ac__type_sizeof_; 19870int 19871main () 19872{ 19873static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 19874test_array [0] = 0 19875 19876 ; 19877 return 0; 19878} 19879_ACEOF 19880rm -f conftest.$ac_objext 19881if { (ac_try="$ac_compile" 19882case "(($ac_try" in 19883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19884 *) ac_try_echo=$ac_try;; 19885esac 19886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19887 (eval "$ac_compile") 2>conftest.er1 19888 ac_status=$? 19889 grep -v '^ *+' conftest.er1 >conftest.err 19890 rm -f conftest.er1 19891 cat conftest.err >&5 19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19893 (exit $ac_status); } && { 19894 test -z "$ac_c_werror_flag" || 19895 test ! -s conftest.err 19896 } && test -s conftest.$ac_objext; then 19897 ac_lo=$ac_mid; break 19898else 19899 echo "$as_me: failed program was:" >&5 19900sed 's/^/| /' conftest.$ac_ext >&5 19901 19902 ac_hi=`expr '(' $ac_mid ')' - 1` 19903 if test $ac_mid -le $ac_hi; then 19904 ac_lo= ac_hi= 19905 break 19906 fi 19907 ac_mid=`expr 2 '*' $ac_mid` 19908fi 19909 19910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19911 done 19912else 19913 echo "$as_me: failed program was:" >&5 19914sed 's/^/| /' conftest.$ac_ext >&5 19915 19916 ac_lo= ac_hi= 19917fi 19918 19919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19920fi 19921 19922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19923# Binary search between lo and hi bounds. 19924while test "x$ac_lo" != "x$ac_hi"; do 19925 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 19926 cat >conftest.$ac_ext <<_ACEOF 19927/* confdefs.h. */ 19928_ACEOF 19929cat confdefs.h >>conftest.$ac_ext 19930cat >>conftest.$ac_ext <<_ACEOF 19931/* end confdefs.h. */ 19932$ac_includes_default 19933 typedef int ac__type_sizeof_; 19934int 19935main () 19936{ 19937static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 19938test_array [0] = 0 19939 19940 ; 19941 return 0; 19942} 19943_ACEOF 19944rm -f conftest.$ac_objext 19945if { (ac_try="$ac_compile" 19946case "(($ac_try" in 19947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19948 *) ac_try_echo=$ac_try;; 19949esac 19950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19951 (eval "$ac_compile") 2>conftest.er1 19952 ac_status=$? 19953 grep -v '^ *+' conftest.er1 >conftest.err 19954 rm -f conftest.er1 19955 cat conftest.err >&5 19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19957 (exit $ac_status); } && { 19958 test -z "$ac_c_werror_flag" || 19959 test ! -s conftest.err 19960 } && test -s conftest.$ac_objext; then 19961 ac_hi=$ac_mid 19962else 19963 echo "$as_me: failed program was:" >&5 19964sed 's/^/| /' conftest.$ac_ext >&5 19965 19966 ac_lo=`expr '(' $ac_mid ')' + 1` 19967fi 19968 19969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19970done 19971case $ac_lo in 19972?*) ac_cv_sizeof_int=$ac_lo;; 19973'') if test "$ac_cv_type_int" = yes; then 19974 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 19975See \`config.log' for more details." >&5 19976echo "$as_me: error: cannot compute sizeof (int) 19977See \`config.log' for more details." >&2;} 19978 { (exit 77); exit 77; }; } 19979 else 19980 ac_cv_sizeof_int=0 19981 fi ;; 19982esac 19983else 19984 cat >conftest.$ac_ext <<_ACEOF 19985/* confdefs.h. */ 19986_ACEOF 19987cat confdefs.h >>conftest.$ac_ext 19988cat >>conftest.$ac_ext <<_ACEOF 19989/* end confdefs.h. */ 19990$ac_includes_default 19991 typedef int ac__type_sizeof_; 19992static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 19993static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 19994#include <stdio.h> 19995#include <stdlib.h> 19996int 19997main () 19998{ 19999 20000 FILE *f = fopen ("conftest.val", "w"); 20001 if (! f) 20002 return 1; 20003 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 20004 { 20005 long int i = longval (); 20006 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 20007 return 1; 20008 fprintf (f, "%ld\n", i); 20009 } 20010 else 20011 { 20012 unsigned long int i = ulongval (); 20013 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 20014 return 1; 20015 fprintf (f, "%lu\n", i); 20016 } 20017 return ferror (f) || fclose (f) != 0; 20018 20019 ; 20020 return 0; 20021} 20022_ACEOF 20023rm -f conftest$ac_exeext 20024if { (ac_try="$ac_link" 20025case "(($ac_try" in 20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20027 *) ac_try_echo=$ac_try;; 20028esac 20029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20030 (eval "$ac_link") 2>&5 20031 ac_status=$? 20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20034 { (case "(($ac_try" in 20035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20036 *) ac_try_echo=$ac_try;; 20037esac 20038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20039 (eval "$ac_try") 2>&5 20040 ac_status=$? 20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20042 (exit $ac_status); }; }; then 20043 ac_cv_sizeof_int=`cat conftest.val` 20044else 20045 echo "$as_me: program exited with status $ac_status" >&5 20046echo "$as_me: failed program was:" >&5 20047sed 's/^/| /' conftest.$ac_ext >&5 20048 20049( exit $ac_status ) 20050if test "$ac_cv_type_int" = yes; then 20051 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 20052See \`config.log' for more details." >&5 20053echo "$as_me: error: cannot compute sizeof (int) 20054See \`config.log' for more details." >&2;} 20055 { (exit 77); exit 77; }; } 20056 else 20057 ac_cv_sizeof_int=0 20058 fi 20059fi 20060rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20061fi 20062rm -f conftest.val 20063fi 20064{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 20065echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } 20066 20067 20068 20069cat >>confdefs.h <<_ACEOF 20070#define SIZEOF_INT $ac_cv_sizeof_int 20071_ACEOF 20072 20073 20074{ echo "$as_me:$LINENO: checking for long int" >&5 20075echo $ECHO_N "checking for long int... $ECHO_C" >&6; } 20076if test "${ac_cv_type_long_int+set}" = set; then 20077 echo $ECHO_N "(cached) $ECHO_C" >&6 20078else 20079 cat >conftest.$ac_ext <<_ACEOF 20080/* confdefs.h. */ 20081_ACEOF 20082cat confdefs.h >>conftest.$ac_ext 20083cat >>conftest.$ac_ext <<_ACEOF 20084/* end confdefs.h. */ 20085$ac_includes_default 20086typedef long int ac__type_new_; 20087int 20088main () 20089{ 20090if ((ac__type_new_ *) 0) 20091 return 0; 20092if (sizeof (ac__type_new_)) 20093 return 0; 20094 ; 20095 return 0; 20096} 20097_ACEOF 20098rm -f conftest.$ac_objext 20099if { (ac_try="$ac_compile" 20100case "(($ac_try" in 20101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20102 *) ac_try_echo=$ac_try;; 20103esac 20104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20105 (eval "$ac_compile") 2>conftest.er1 20106 ac_status=$? 20107 grep -v '^ *+' conftest.er1 >conftest.err 20108 rm -f conftest.er1 20109 cat conftest.err >&5 20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20111 (exit $ac_status); } && { 20112 test -z "$ac_c_werror_flag" || 20113 test ! -s conftest.err 20114 } && test -s conftest.$ac_objext; then 20115 ac_cv_type_long_int=yes 20116else 20117 echo "$as_me: failed program was:" >&5 20118sed 's/^/| /' conftest.$ac_ext >&5 20119 20120 ac_cv_type_long_int=no 20121fi 20122 20123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20124fi 20125{ echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5 20126echo "${ECHO_T}$ac_cv_type_long_int" >&6; } 20127 20128# The cast to long int works around a bug in the HP C Compiler 20129# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20130# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20131# This bug is HP SR number 8606223364. 20132{ echo "$as_me:$LINENO: checking size of long int" >&5 20133echo $ECHO_N "checking size of long int... $ECHO_C" >&6; } 20134if test "${ac_cv_sizeof_long_int+set}" = set; then 20135 echo $ECHO_N "(cached) $ECHO_C" >&6 20136else 20137 if test "$cross_compiling" = yes; then 20138 # Depending upon the size, compute the lo and hi bounds. 20139cat >conftest.$ac_ext <<_ACEOF 20140/* confdefs.h. */ 20141_ACEOF 20142cat confdefs.h >>conftest.$ac_ext 20143cat >>conftest.$ac_ext <<_ACEOF 20144/* end confdefs.h. */ 20145$ac_includes_default 20146 typedef long int ac__type_sizeof_; 20147int 20148main () 20149{ 20150static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 20151test_array [0] = 0 20152 20153 ; 20154 return 0; 20155} 20156_ACEOF 20157rm -f conftest.$ac_objext 20158if { (ac_try="$ac_compile" 20159case "(($ac_try" in 20160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20161 *) ac_try_echo=$ac_try;; 20162esac 20163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20164 (eval "$ac_compile") 2>conftest.er1 20165 ac_status=$? 20166 grep -v '^ *+' conftest.er1 >conftest.err 20167 rm -f conftest.er1 20168 cat conftest.err >&5 20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20170 (exit $ac_status); } && { 20171 test -z "$ac_c_werror_flag" || 20172 test ! -s conftest.err 20173 } && test -s conftest.$ac_objext; then 20174 ac_lo=0 ac_mid=0 20175 while :; do 20176 cat >conftest.$ac_ext <<_ACEOF 20177/* confdefs.h. */ 20178_ACEOF 20179cat confdefs.h >>conftest.$ac_ext 20180cat >>conftest.$ac_ext <<_ACEOF 20181/* end confdefs.h. */ 20182$ac_includes_default 20183 typedef long int ac__type_sizeof_; 20184int 20185main () 20186{ 20187static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 20188test_array [0] = 0 20189 20190 ; 20191 return 0; 20192} 20193_ACEOF 20194rm -f conftest.$ac_objext 20195if { (ac_try="$ac_compile" 20196case "(($ac_try" in 20197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20198 *) ac_try_echo=$ac_try;; 20199esac 20200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20201 (eval "$ac_compile") 2>conftest.er1 20202 ac_status=$? 20203 grep -v '^ *+' conftest.er1 >conftest.err 20204 rm -f conftest.er1 20205 cat conftest.err >&5 20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20207 (exit $ac_status); } && { 20208 test -z "$ac_c_werror_flag" || 20209 test ! -s conftest.err 20210 } && test -s conftest.$ac_objext; then 20211 ac_hi=$ac_mid; break 20212else 20213 echo "$as_me: failed program was:" >&5 20214sed 's/^/| /' conftest.$ac_ext >&5 20215 20216 ac_lo=`expr $ac_mid + 1` 20217 if test $ac_lo -le $ac_mid; then 20218 ac_lo= ac_hi= 20219 break 20220 fi 20221 ac_mid=`expr 2 '*' $ac_mid + 1` 20222fi 20223 20224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20225 done 20226else 20227 echo "$as_me: failed program was:" >&5 20228sed 's/^/| /' conftest.$ac_ext >&5 20229 20230 cat >conftest.$ac_ext <<_ACEOF 20231/* confdefs.h. */ 20232_ACEOF 20233cat confdefs.h >>conftest.$ac_ext 20234cat >>conftest.$ac_ext <<_ACEOF 20235/* end confdefs.h. */ 20236$ac_includes_default 20237 typedef long int ac__type_sizeof_; 20238int 20239main () 20240{ 20241static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 20242test_array [0] = 0 20243 20244 ; 20245 return 0; 20246} 20247_ACEOF 20248rm -f conftest.$ac_objext 20249if { (ac_try="$ac_compile" 20250case "(($ac_try" in 20251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20252 *) ac_try_echo=$ac_try;; 20253esac 20254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20255 (eval "$ac_compile") 2>conftest.er1 20256 ac_status=$? 20257 grep -v '^ *+' conftest.er1 >conftest.err 20258 rm -f conftest.er1 20259 cat conftest.err >&5 20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20261 (exit $ac_status); } && { 20262 test -z "$ac_c_werror_flag" || 20263 test ! -s conftest.err 20264 } && test -s conftest.$ac_objext; then 20265 ac_hi=-1 ac_mid=-1 20266 while :; do 20267 cat >conftest.$ac_ext <<_ACEOF 20268/* confdefs.h. */ 20269_ACEOF 20270cat confdefs.h >>conftest.$ac_ext 20271cat >>conftest.$ac_ext <<_ACEOF 20272/* end confdefs.h. */ 20273$ac_includes_default 20274 typedef long int ac__type_sizeof_; 20275int 20276main () 20277{ 20278static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 20279test_array [0] = 0 20280 20281 ; 20282 return 0; 20283} 20284_ACEOF 20285rm -f conftest.$ac_objext 20286if { (ac_try="$ac_compile" 20287case "(($ac_try" in 20288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20289 *) ac_try_echo=$ac_try;; 20290esac 20291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20292 (eval "$ac_compile") 2>conftest.er1 20293 ac_status=$? 20294 grep -v '^ *+' conftest.er1 >conftest.err 20295 rm -f conftest.er1 20296 cat conftest.err >&5 20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20298 (exit $ac_status); } && { 20299 test -z "$ac_c_werror_flag" || 20300 test ! -s conftest.err 20301 } && test -s conftest.$ac_objext; then 20302 ac_lo=$ac_mid; break 20303else 20304 echo "$as_me: failed program was:" >&5 20305sed 's/^/| /' conftest.$ac_ext >&5 20306 20307 ac_hi=`expr '(' $ac_mid ')' - 1` 20308 if test $ac_mid -le $ac_hi; then 20309 ac_lo= ac_hi= 20310 break 20311 fi 20312 ac_mid=`expr 2 '*' $ac_mid` 20313fi 20314 20315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20316 done 20317else 20318 echo "$as_me: failed program was:" >&5 20319sed 's/^/| /' conftest.$ac_ext >&5 20320 20321 ac_lo= ac_hi= 20322fi 20323 20324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20325fi 20326 20327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20328# Binary search between lo and hi bounds. 20329while test "x$ac_lo" != "x$ac_hi"; do 20330 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 20331 cat >conftest.$ac_ext <<_ACEOF 20332/* confdefs.h. */ 20333_ACEOF 20334cat confdefs.h >>conftest.$ac_ext 20335cat >>conftest.$ac_ext <<_ACEOF 20336/* end confdefs.h. */ 20337$ac_includes_default 20338 typedef long int ac__type_sizeof_; 20339int 20340main () 20341{ 20342static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 20343test_array [0] = 0 20344 20345 ; 20346 return 0; 20347} 20348_ACEOF 20349rm -f conftest.$ac_objext 20350if { (ac_try="$ac_compile" 20351case "(($ac_try" in 20352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20353 *) ac_try_echo=$ac_try;; 20354esac 20355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20356 (eval "$ac_compile") 2>conftest.er1 20357 ac_status=$? 20358 grep -v '^ *+' conftest.er1 >conftest.err 20359 rm -f conftest.er1 20360 cat conftest.err >&5 20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20362 (exit $ac_status); } && { 20363 test -z "$ac_c_werror_flag" || 20364 test ! -s conftest.err 20365 } && test -s conftest.$ac_objext; then 20366 ac_hi=$ac_mid 20367else 20368 echo "$as_me: failed program was:" >&5 20369sed 's/^/| /' conftest.$ac_ext >&5 20370 20371 ac_lo=`expr '(' $ac_mid ')' + 1` 20372fi 20373 20374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20375done 20376case $ac_lo in 20377?*) ac_cv_sizeof_long_int=$ac_lo;; 20378'') if test "$ac_cv_type_long_int" = yes; then 20379 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) 20380See \`config.log' for more details." >&5 20381echo "$as_me: error: cannot compute sizeof (long int) 20382See \`config.log' for more details." >&2;} 20383 { (exit 77); exit 77; }; } 20384 else 20385 ac_cv_sizeof_long_int=0 20386 fi ;; 20387esac 20388else 20389 cat >conftest.$ac_ext <<_ACEOF 20390/* confdefs.h. */ 20391_ACEOF 20392cat confdefs.h >>conftest.$ac_ext 20393cat >>conftest.$ac_ext <<_ACEOF 20394/* end confdefs.h. */ 20395$ac_includes_default 20396 typedef long int ac__type_sizeof_; 20397static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 20398static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 20399#include <stdio.h> 20400#include <stdlib.h> 20401int 20402main () 20403{ 20404 20405 FILE *f = fopen ("conftest.val", "w"); 20406 if (! f) 20407 return 1; 20408 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 20409 { 20410 long int i = longval (); 20411 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 20412 return 1; 20413 fprintf (f, "%ld\n", i); 20414 } 20415 else 20416 { 20417 unsigned long int i = ulongval (); 20418 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 20419 return 1; 20420 fprintf (f, "%lu\n", i); 20421 } 20422 return ferror (f) || fclose (f) != 0; 20423 20424 ; 20425 return 0; 20426} 20427_ACEOF 20428rm -f conftest$ac_exeext 20429if { (ac_try="$ac_link" 20430case "(($ac_try" in 20431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20432 *) ac_try_echo=$ac_try;; 20433esac 20434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20435 (eval "$ac_link") 2>&5 20436 ac_status=$? 20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20439 { (case "(($ac_try" in 20440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20441 *) ac_try_echo=$ac_try;; 20442esac 20443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20444 (eval "$ac_try") 2>&5 20445 ac_status=$? 20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20447 (exit $ac_status); }; }; then 20448 ac_cv_sizeof_long_int=`cat conftest.val` 20449else 20450 echo "$as_me: program exited with status $ac_status" >&5 20451echo "$as_me: failed program was:" >&5 20452sed 's/^/| /' conftest.$ac_ext >&5 20453 20454( exit $ac_status ) 20455if test "$ac_cv_type_long_int" = yes; then 20456 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) 20457See \`config.log' for more details." >&5 20458echo "$as_me: error: cannot compute sizeof (long int) 20459See \`config.log' for more details." >&2;} 20460 { (exit 77); exit 77; }; } 20461 else 20462 ac_cv_sizeof_long_int=0 20463 fi 20464fi 20465rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20466fi 20467rm -f conftest.val 20468fi 20469{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 20470echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; } 20471 20472 20473 20474cat >>confdefs.h <<_ACEOF 20475#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int 20476_ACEOF 20477 20478 20479{ echo "$as_me:$LINENO: checking for long long int" >&5 20480echo $ECHO_N "checking for long long int... $ECHO_C" >&6; } 20481if test "${ac_cv_type_long_long_int+set}" = set; then 20482 echo $ECHO_N "(cached) $ECHO_C" >&6 20483else 20484 cat >conftest.$ac_ext <<_ACEOF 20485/* confdefs.h. */ 20486_ACEOF 20487cat confdefs.h >>conftest.$ac_ext 20488cat >>conftest.$ac_ext <<_ACEOF 20489/* end confdefs.h. */ 20490$ac_includes_default 20491typedef long long int ac__type_new_; 20492int 20493main () 20494{ 20495if ((ac__type_new_ *) 0) 20496 return 0; 20497if (sizeof (ac__type_new_)) 20498 return 0; 20499 ; 20500 return 0; 20501} 20502_ACEOF 20503rm -f conftest.$ac_objext 20504if { (ac_try="$ac_compile" 20505case "(($ac_try" in 20506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20507 *) ac_try_echo=$ac_try;; 20508esac 20509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20510 (eval "$ac_compile") 2>conftest.er1 20511 ac_status=$? 20512 grep -v '^ *+' conftest.er1 >conftest.err 20513 rm -f conftest.er1 20514 cat conftest.err >&5 20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20516 (exit $ac_status); } && { 20517 test -z "$ac_c_werror_flag" || 20518 test ! -s conftest.err 20519 } && test -s conftest.$ac_objext; then 20520 ac_cv_type_long_long_int=yes 20521else 20522 echo "$as_me: failed program was:" >&5 20523sed 's/^/| /' conftest.$ac_ext >&5 20524 20525 ac_cv_type_long_long_int=no 20526fi 20527 20528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20529fi 20530{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 20531echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; } 20532 20533# The cast to long int works around a bug in the HP C Compiler 20534# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20535# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20536# This bug is HP SR number 8606223364. 20537{ echo "$as_me:$LINENO: checking size of long long int" >&5 20538echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; } 20539if test "${ac_cv_sizeof_long_long_int+set}" = set; then 20540 echo $ECHO_N "(cached) $ECHO_C" >&6 20541else 20542 if test "$cross_compiling" = yes; then 20543 # Depending upon the size, compute the lo and hi bounds. 20544cat >conftest.$ac_ext <<_ACEOF 20545/* confdefs.h. */ 20546_ACEOF 20547cat confdefs.h >>conftest.$ac_ext 20548cat >>conftest.$ac_ext <<_ACEOF 20549/* end confdefs.h. */ 20550$ac_includes_default 20551 typedef long long int ac__type_sizeof_; 20552int 20553main () 20554{ 20555static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 20556test_array [0] = 0 20557 20558 ; 20559 return 0; 20560} 20561_ACEOF 20562rm -f conftest.$ac_objext 20563if { (ac_try="$ac_compile" 20564case "(($ac_try" in 20565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20566 *) ac_try_echo=$ac_try;; 20567esac 20568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20569 (eval "$ac_compile") 2>conftest.er1 20570 ac_status=$? 20571 grep -v '^ *+' conftest.er1 >conftest.err 20572 rm -f conftest.er1 20573 cat conftest.err >&5 20574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20575 (exit $ac_status); } && { 20576 test -z "$ac_c_werror_flag" || 20577 test ! -s conftest.err 20578 } && test -s conftest.$ac_objext; then 20579 ac_lo=0 ac_mid=0 20580 while :; do 20581 cat >conftest.$ac_ext <<_ACEOF 20582/* confdefs.h. */ 20583_ACEOF 20584cat confdefs.h >>conftest.$ac_ext 20585cat >>conftest.$ac_ext <<_ACEOF 20586/* end confdefs.h. */ 20587$ac_includes_default 20588 typedef long long int ac__type_sizeof_; 20589int 20590main () 20591{ 20592static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 20593test_array [0] = 0 20594 20595 ; 20596 return 0; 20597} 20598_ACEOF 20599rm -f conftest.$ac_objext 20600if { (ac_try="$ac_compile" 20601case "(($ac_try" in 20602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20603 *) ac_try_echo=$ac_try;; 20604esac 20605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20606 (eval "$ac_compile") 2>conftest.er1 20607 ac_status=$? 20608 grep -v '^ *+' conftest.er1 >conftest.err 20609 rm -f conftest.er1 20610 cat conftest.err >&5 20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20612 (exit $ac_status); } && { 20613 test -z "$ac_c_werror_flag" || 20614 test ! -s conftest.err 20615 } && test -s conftest.$ac_objext; then 20616 ac_hi=$ac_mid; break 20617else 20618 echo "$as_me: failed program was:" >&5 20619sed 's/^/| /' conftest.$ac_ext >&5 20620 20621 ac_lo=`expr $ac_mid + 1` 20622 if test $ac_lo -le $ac_mid; then 20623 ac_lo= ac_hi= 20624 break 20625 fi 20626 ac_mid=`expr 2 '*' $ac_mid + 1` 20627fi 20628 20629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20630 done 20631else 20632 echo "$as_me: failed program was:" >&5 20633sed 's/^/| /' conftest.$ac_ext >&5 20634 20635 cat >conftest.$ac_ext <<_ACEOF 20636/* confdefs.h. */ 20637_ACEOF 20638cat confdefs.h >>conftest.$ac_ext 20639cat >>conftest.$ac_ext <<_ACEOF 20640/* end confdefs.h. */ 20641$ac_includes_default 20642 typedef long long int ac__type_sizeof_; 20643int 20644main () 20645{ 20646static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 20647test_array [0] = 0 20648 20649 ; 20650 return 0; 20651} 20652_ACEOF 20653rm -f conftest.$ac_objext 20654if { (ac_try="$ac_compile" 20655case "(($ac_try" in 20656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20657 *) ac_try_echo=$ac_try;; 20658esac 20659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20660 (eval "$ac_compile") 2>conftest.er1 20661 ac_status=$? 20662 grep -v '^ *+' conftest.er1 >conftest.err 20663 rm -f conftest.er1 20664 cat conftest.err >&5 20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20666 (exit $ac_status); } && { 20667 test -z "$ac_c_werror_flag" || 20668 test ! -s conftest.err 20669 } && test -s conftest.$ac_objext; then 20670 ac_hi=-1 ac_mid=-1 20671 while :; do 20672 cat >conftest.$ac_ext <<_ACEOF 20673/* confdefs.h. */ 20674_ACEOF 20675cat confdefs.h >>conftest.$ac_ext 20676cat >>conftest.$ac_ext <<_ACEOF 20677/* end confdefs.h. */ 20678$ac_includes_default 20679 typedef long long int ac__type_sizeof_; 20680int 20681main () 20682{ 20683static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 20684test_array [0] = 0 20685 20686 ; 20687 return 0; 20688} 20689_ACEOF 20690rm -f conftest.$ac_objext 20691if { (ac_try="$ac_compile" 20692case "(($ac_try" in 20693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20694 *) ac_try_echo=$ac_try;; 20695esac 20696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20697 (eval "$ac_compile") 2>conftest.er1 20698 ac_status=$? 20699 grep -v '^ *+' conftest.er1 >conftest.err 20700 rm -f conftest.er1 20701 cat conftest.err >&5 20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20703 (exit $ac_status); } && { 20704 test -z "$ac_c_werror_flag" || 20705 test ! -s conftest.err 20706 } && test -s conftest.$ac_objext; then 20707 ac_lo=$ac_mid; break 20708else 20709 echo "$as_me: failed program was:" >&5 20710sed 's/^/| /' conftest.$ac_ext >&5 20711 20712 ac_hi=`expr '(' $ac_mid ')' - 1` 20713 if test $ac_mid -le $ac_hi; then 20714 ac_lo= ac_hi= 20715 break 20716 fi 20717 ac_mid=`expr 2 '*' $ac_mid` 20718fi 20719 20720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20721 done 20722else 20723 echo "$as_me: failed program was:" >&5 20724sed 's/^/| /' conftest.$ac_ext >&5 20725 20726 ac_lo= ac_hi= 20727fi 20728 20729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20730fi 20731 20732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20733# Binary search between lo and hi bounds. 20734while test "x$ac_lo" != "x$ac_hi"; do 20735 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 20736 cat >conftest.$ac_ext <<_ACEOF 20737/* confdefs.h. */ 20738_ACEOF 20739cat confdefs.h >>conftest.$ac_ext 20740cat >>conftest.$ac_ext <<_ACEOF 20741/* end confdefs.h. */ 20742$ac_includes_default 20743 typedef long long int ac__type_sizeof_; 20744int 20745main () 20746{ 20747static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 20748test_array [0] = 0 20749 20750 ; 20751 return 0; 20752} 20753_ACEOF 20754rm -f conftest.$ac_objext 20755if { (ac_try="$ac_compile" 20756case "(($ac_try" in 20757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20758 *) ac_try_echo=$ac_try;; 20759esac 20760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20761 (eval "$ac_compile") 2>conftest.er1 20762 ac_status=$? 20763 grep -v '^ *+' conftest.er1 >conftest.err 20764 rm -f conftest.er1 20765 cat conftest.err >&5 20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20767 (exit $ac_status); } && { 20768 test -z "$ac_c_werror_flag" || 20769 test ! -s conftest.err 20770 } && test -s conftest.$ac_objext; then 20771 ac_hi=$ac_mid 20772else 20773 echo "$as_me: failed program was:" >&5 20774sed 's/^/| /' conftest.$ac_ext >&5 20775 20776 ac_lo=`expr '(' $ac_mid ')' + 1` 20777fi 20778 20779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20780done 20781case $ac_lo in 20782?*) ac_cv_sizeof_long_long_int=$ac_lo;; 20783'') if test "$ac_cv_type_long_long_int" = yes; then 20784 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int) 20785See \`config.log' for more details." >&5 20786echo "$as_me: error: cannot compute sizeof (long long int) 20787See \`config.log' for more details." >&2;} 20788 { (exit 77); exit 77; }; } 20789 else 20790 ac_cv_sizeof_long_long_int=0 20791 fi ;; 20792esac 20793else 20794 cat >conftest.$ac_ext <<_ACEOF 20795/* confdefs.h. */ 20796_ACEOF 20797cat confdefs.h >>conftest.$ac_ext 20798cat >>conftest.$ac_ext <<_ACEOF 20799/* end confdefs.h. */ 20800$ac_includes_default 20801 typedef long long int ac__type_sizeof_; 20802static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 20803static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 20804#include <stdio.h> 20805#include <stdlib.h> 20806int 20807main () 20808{ 20809 20810 FILE *f = fopen ("conftest.val", "w"); 20811 if (! f) 20812 return 1; 20813 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 20814 { 20815 long int i = longval (); 20816 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 20817 return 1; 20818 fprintf (f, "%ld\n", i); 20819 } 20820 else 20821 { 20822 unsigned long int i = ulongval (); 20823 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 20824 return 1; 20825 fprintf (f, "%lu\n", i); 20826 } 20827 return ferror (f) || fclose (f) != 0; 20828 20829 ; 20830 return 0; 20831} 20832_ACEOF 20833rm -f conftest$ac_exeext 20834if { (ac_try="$ac_link" 20835case "(($ac_try" in 20836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20837 *) ac_try_echo=$ac_try;; 20838esac 20839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20840 (eval "$ac_link") 2>&5 20841 ac_status=$? 20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20844 { (case "(($ac_try" in 20845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20846 *) ac_try_echo=$ac_try;; 20847esac 20848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20849 (eval "$ac_try") 2>&5 20850 ac_status=$? 20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20852 (exit $ac_status); }; }; then 20853 ac_cv_sizeof_long_long_int=`cat conftest.val` 20854else 20855 echo "$as_me: program exited with status $ac_status" >&5 20856echo "$as_me: failed program was:" >&5 20857sed 's/^/| /' conftest.$ac_ext >&5 20858 20859( exit $ac_status ) 20860if test "$ac_cv_type_long_long_int" = yes; then 20861 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int) 20862See \`config.log' for more details." >&5 20863echo "$as_me: error: cannot compute sizeof (long long int) 20864See \`config.log' for more details." >&2;} 20865 { (exit 77); exit 77; }; } 20866 else 20867 ac_cv_sizeof_long_long_int=0 20868 fi 20869fi 20870rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20871fi 20872rm -f conftest.val 20873fi 20874{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5 20875echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; } 20876 20877 20878 20879cat >>confdefs.h <<_ACEOF 20880#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int 20881_ACEOF 20882 20883 20884 20885# Sanity check long long for some platforms (AIX) 20886if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then 20887 ac_cv_sizeof_long_long_int=0 20888fi 20889 20890# compute LLONG_MIN and LLONG_MAX if we don't know them. 20891if test -z "$have_llong_max"; then 20892 { echo "$as_me:$LINENO: checking for max value of long long" >&5 20893echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; } 20894 if test "$cross_compiling" = yes; then 20895 20896 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 20897echo "$as_me: WARNING: cross compiling: not checking" >&2;} 20898 20899 20900else 20901 cat >conftest.$ac_ext <<_ACEOF 20902/* confdefs.h. */ 20903_ACEOF 20904cat confdefs.h >>conftest.$ac_ext 20905cat >>conftest.$ac_ext <<_ACEOF 20906/* end confdefs.h. */ 20907 20908#include <stdio.h> 20909/* Why is this so damn hard? */ 20910#ifdef __GNUC__ 20911# undef __GNUC__ 20912#endif 20913#define __USE_ISOC99 20914#include <limits.h> 20915#define DATA "conftest.llminmax" 20916#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a)) 20917 20918/* 20919 * printf in libc on some platforms (eg old Tru64) does not understand %lld so 20920 * we do this the hard way. 20921 */ 20922static int 20923fprint_ll(FILE *f, long long n) 20924{ 20925 unsigned int i; 20926 int l[sizeof(long long) * 8]; 20927 20928 if (n < 0) 20929 if (fprintf(f, "-") < 0) 20930 return -1; 20931 for (i = 0; n != 0; i++) { 20932 l[i] = my_abs(n % 10); 20933 n /= 10; 20934 } 20935 do { 20936 if (fprintf(f, "%d", l[--i]) < 0) 20937 return -1; 20938 } while (i != 0); 20939 if (fprintf(f, " ") < 0) 20940 return -1; 20941 return 0; 20942} 20943 20944int main(void) { 20945 FILE *f; 20946 long long i, llmin, llmax = 0; 20947 20948 if((f = fopen(DATA,"w")) == NULL) 20949 exit(1); 20950 20951#if defined(LLONG_MIN) && defined(LLONG_MAX) 20952 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n"); 20953 llmin = LLONG_MIN; 20954 llmax = LLONG_MAX; 20955#else 20956 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n"); 20957 /* This will work on one's complement and two's complement */ 20958 for (i = 1; i > llmax; i <<= 1, i++) 20959 llmax = i; 20960 llmin = llmax + 1LL; /* wrap */ 20961#endif 20962 20963 /* Sanity check */ 20964 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax 20965 || llmax - 1 > llmax || llmin == llmax || llmin == 0 20966 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) { 20967 fprintf(f, "unknown unknown\n"); 20968 exit(2); 20969 } 20970 20971 if (fprint_ll(f, llmin) < 0) 20972 exit(3); 20973 if (fprint_ll(f, llmax) < 0) 20974 exit(4); 20975 if (fclose(f) < 0) 20976 exit(5); 20977 exit(0); 20978} 20979 20980_ACEOF 20981rm -f conftest$ac_exeext 20982if { (ac_try="$ac_link" 20983case "(($ac_try" in 20984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20985 *) ac_try_echo=$ac_try;; 20986esac 20987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20988 (eval "$ac_link") 2>&5 20989 ac_status=$? 20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20992 { (case "(($ac_try" in 20993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20994 *) ac_try_echo=$ac_try;; 20995esac 20996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20997 (eval "$ac_try") 2>&5 20998 ac_status=$? 20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21000 (exit $ac_status); }; }; then 21001 21002 llong_min=`$AWK '{print $1}' conftest.llminmax` 21003 llong_max=`$AWK '{print $2}' conftest.llminmax` 21004 21005 { echo "$as_me:$LINENO: result: $llong_max" >&5 21006echo "${ECHO_T}$llong_max" >&6; } 21007 21008cat >>confdefs.h <<_ACEOF 21009#define LLONG_MAX ${llong_max}LL 21010_ACEOF 21011 21012 { echo "$as_me:$LINENO: checking for min value of long long" >&5 21013echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; } 21014 { echo "$as_me:$LINENO: result: $llong_min" >&5 21015echo "${ECHO_T}$llong_min" >&6; } 21016 21017cat >>confdefs.h <<_ACEOF 21018#define LLONG_MIN ${llong_min}LL 21019_ACEOF 21020 21021 21022else 21023 echo "$as_me: program exited with status $ac_status" >&5 21024echo "$as_me: failed program was:" >&5 21025sed 's/^/| /' conftest.$ac_ext >&5 21026 21027( exit $ac_status ) 21028 21029 { echo "$as_me:$LINENO: result: not found" >&5 21030echo "${ECHO_T}not found" >&6; } 21031 21032fi 21033rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21034fi 21035 21036 21037fi 21038 21039 21040# More checks for data types 21041{ echo "$as_me:$LINENO: checking for u_int type" >&5 21042echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; } 21043if test "${ac_cv_have_u_int+set}" = set; then 21044 echo $ECHO_N "(cached) $ECHO_C" >&6 21045else 21046 21047 cat >conftest.$ac_ext <<_ACEOF 21048/* confdefs.h. */ 21049_ACEOF 21050cat confdefs.h >>conftest.$ac_ext 21051cat >>conftest.$ac_ext <<_ACEOF 21052/* end confdefs.h. */ 21053 #include <sys/types.h> 21054int 21055main () 21056{ 21057 u_int a; a = 1; 21058 ; 21059 return 0; 21060} 21061_ACEOF 21062rm -f conftest.$ac_objext 21063if { (ac_try="$ac_compile" 21064case "(($ac_try" in 21065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21066 *) ac_try_echo=$ac_try;; 21067esac 21068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21069 (eval "$ac_compile") 2>conftest.er1 21070 ac_status=$? 21071 grep -v '^ *+' conftest.er1 >conftest.err 21072 rm -f conftest.er1 21073 cat conftest.err >&5 21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21075 (exit $ac_status); } && { 21076 test -z "$ac_c_werror_flag" || 21077 test ! -s conftest.err 21078 } && test -s conftest.$ac_objext; then 21079 ac_cv_have_u_int="yes" 21080else 21081 echo "$as_me: failed program was:" >&5 21082sed 's/^/| /' conftest.$ac_ext >&5 21083 21084 ac_cv_have_u_int="no" 21085 21086fi 21087 21088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21089 21090fi 21091{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5 21092echo "${ECHO_T}$ac_cv_have_u_int" >&6; } 21093if test "x$ac_cv_have_u_int" = "xyes" ; then 21094 21095cat >>confdefs.h <<\_ACEOF 21096#define HAVE_U_INT 1 21097_ACEOF 21098 21099 have_u_int=1 21100fi 21101 21102{ echo "$as_me:$LINENO: checking for intXX_t types" >&5 21103echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; } 21104if test "${ac_cv_have_intxx_t+set}" = set; then 21105 echo $ECHO_N "(cached) $ECHO_C" >&6 21106else 21107 21108 cat >conftest.$ac_ext <<_ACEOF 21109/* confdefs.h. */ 21110_ACEOF 21111cat confdefs.h >>conftest.$ac_ext 21112cat >>conftest.$ac_ext <<_ACEOF 21113/* end confdefs.h. */ 21114 #include <sys/types.h> 21115int 21116main () 21117{ 21118 int8_t a; int16_t b; int32_t c; a = b = c = 1; 21119 ; 21120 return 0; 21121} 21122_ACEOF 21123rm -f conftest.$ac_objext 21124if { (ac_try="$ac_compile" 21125case "(($ac_try" in 21126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21127 *) ac_try_echo=$ac_try;; 21128esac 21129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21130 (eval "$ac_compile") 2>conftest.er1 21131 ac_status=$? 21132 grep -v '^ *+' conftest.er1 >conftest.err 21133 rm -f conftest.er1 21134 cat conftest.err >&5 21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21136 (exit $ac_status); } && { 21137 test -z "$ac_c_werror_flag" || 21138 test ! -s conftest.err 21139 } && test -s conftest.$ac_objext; then 21140 ac_cv_have_intxx_t="yes" 21141else 21142 echo "$as_me: failed program was:" >&5 21143sed 's/^/| /' conftest.$ac_ext >&5 21144 21145 ac_cv_have_intxx_t="no" 21146 21147fi 21148 21149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21150 21151fi 21152{ echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5 21153echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; } 21154if test "x$ac_cv_have_intxx_t" = "xyes" ; then 21155 21156cat >>confdefs.h <<\_ACEOF 21157#define HAVE_INTXX_T 1 21158_ACEOF 21159 21160 have_intxx_t=1 21161fi 21162 21163if (test -z "$have_intxx_t" && \ 21164 test "x$ac_cv_header_stdint_h" = "xyes") 21165then 21166 { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5 21167echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; } 21168 cat >conftest.$ac_ext <<_ACEOF 21169/* confdefs.h. */ 21170_ACEOF 21171cat confdefs.h >>conftest.$ac_ext 21172cat >>conftest.$ac_ext <<_ACEOF 21173/* end confdefs.h. */ 21174 #include <stdint.h> 21175int 21176main () 21177{ 21178 int8_t a; int16_t b; int32_t c; a = b = c = 1; 21179 ; 21180 return 0; 21181} 21182_ACEOF 21183rm -f conftest.$ac_objext 21184if { (ac_try="$ac_compile" 21185case "(($ac_try" in 21186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21187 *) ac_try_echo=$ac_try;; 21188esac 21189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21190 (eval "$ac_compile") 2>conftest.er1 21191 ac_status=$? 21192 grep -v '^ *+' conftest.er1 >conftest.err 21193 rm -f conftest.er1 21194 cat conftest.err >&5 21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21196 (exit $ac_status); } && { 21197 test -z "$ac_c_werror_flag" || 21198 test ! -s conftest.err 21199 } && test -s conftest.$ac_objext; then 21200 21201 cat >>confdefs.h <<\_ACEOF 21202#define HAVE_INTXX_T 1 21203_ACEOF 21204 21205 { echo "$as_me:$LINENO: result: yes" >&5 21206echo "${ECHO_T}yes" >&6; } 21207 21208else 21209 echo "$as_me: failed program was:" >&5 21210sed 's/^/| /' conftest.$ac_ext >&5 21211 21212 { echo "$as_me:$LINENO: result: no" >&5 21213echo "${ECHO_T}no" >&6; } 21214 21215fi 21216 21217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21218fi 21219 21220{ echo "$as_me:$LINENO: checking for int64_t type" >&5 21221echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; } 21222if test "${ac_cv_have_int64_t+set}" = set; then 21223 echo $ECHO_N "(cached) $ECHO_C" >&6 21224else 21225 21226 cat >conftest.$ac_ext <<_ACEOF 21227/* confdefs.h. */ 21228_ACEOF 21229cat confdefs.h >>conftest.$ac_ext 21230cat >>conftest.$ac_ext <<_ACEOF 21231/* end confdefs.h. */ 21232 21233#include <sys/types.h> 21234#ifdef HAVE_STDINT_H 21235# include <stdint.h> 21236#endif 21237#include <sys/socket.h> 21238#ifdef HAVE_SYS_BITYPES_H 21239# include <sys/bitypes.h> 21240#endif 21241 21242int 21243main () 21244{ 21245 int64_t a; a = 1; 21246 ; 21247 return 0; 21248} 21249_ACEOF 21250rm -f conftest.$ac_objext 21251if { (ac_try="$ac_compile" 21252case "(($ac_try" in 21253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21254 *) ac_try_echo=$ac_try;; 21255esac 21256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21257 (eval "$ac_compile") 2>conftest.er1 21258 ac_status=$? 21259 grep -v '^ *+' conftest.er1 >conftest.err 21260 rm -f conftest.er1 21261 cat conftest.err >&5 21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21263 (exit $ac_status); } && { 21264 test -z "$ac_c_werror_flag" || 21265 test ! -s conftest.err 21266 } && test -s conftest.$ac_objext; then 21267 ac_cv_have_int64_t="yes" 21268else 21269 echo "$as_me: failed program was:" >&5 21270sed 's/^/| /' conftest.$ac_ext >&5 21271 21272 ac_cv_have_int64_t="no" 21273 21274fi 21275 21276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21277 21278fi 21279{ echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5 21280echo "${ECHO_T}$ac_cv_have_int64_t" >&6; } 21281if test "x$ac_cv_have_int64_t" = "xyes" ; then 21282 21283cat >>confdefs.h <<\_ACEOF 21284#define HAVE_INT64_T 1 21285_ACEOF 21286 21287fi 21288 21289{ echo "$as_me:$LINENO: checking for u_intXX_t types" >&5 21290echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; } 21291if test "${ac_cv_have_u_intxx_t+set}" = set; then 21292 echo $ECHO_N "(cached) $ECHO_C" >&6 21293else 21294 21295 cat >conftest.$ac_ext <<_ACEOF 21296/* confdefs.h. */ 21297_ACEOF 21298cat confdefs.h >>conftest.$ac_ext 21299cat >>conftest.$ac_ext <<_ACEOF 21300/* end confdefs.h. */ 21301 #include <sys/types.h> 21302int 21303main () 21304{ 21305 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; 21306 ; 21307 return 0; 21308} 21309_ACEOF 21310rm -f conftest.$ac_objext 21311if { (ac_try="$ac_compile" 21312case "(($ac_try" in 21313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21314 *) ac_try_echo=$ac_try;; 21315esac 21316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21317 (eval "$ac_compile") 2>conftest.er1 21318 ac_status=$? 21319 grep -v '^ *+' conftest.er1 >conftest.err 21320 rm -f conftest.er1 21321 cat conftest.err >&5 21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21323 (exit $ac_status); } && { 21324 test -z "$ac_c_werror_flag" || 21325 test ! -s conftest.err 21326 } && test -s conftest.$ac_objext; then 21327 ac_cv_have_u_intxx_t="yes" 21328else 21329 echo "$as_me: failed program was:" >&5 21330sed 's/^/| /' conftest.$ac_ext >&5 21331 21332 ac_cv_have_u_intxx_t="no" 21333 21334fi 21335 21336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21337 21338fi 21339{ echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5 21340echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; } 21341if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then 21342 21343cat >>confdefs.h <<\_ACEOF 21344#define HAVE_U_INTXX_T 1 21345_ACEOF 21346 21347 have_u_intxx_t=1 21348fi 21349 21350if test -z "$have_u_intxx_t" ; then 21351 { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5 21352echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; } 21353 cat >conftest.$ac_ext <<_ACEOF 21354/* confdefs.h. */ 21355_ACEOF 21356cat confdefs.h >>conftest.$ac_ext 21357cat >>conftest.$ac_ext <<_ACEOF 21358/* end confdefs.h. */ 21359 #include <sys/socket.h> 21360int 21361main () 21362{ 21363 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; 21364 ; 21365 return 0; 21366} 21367_ACEOF 21368rm -f conftest.$ac_objext 21369if { (ac_try="$ac_compile" 21370case "(($ac_try" in 21371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21372 *) ac_try_echo=$ac_try;; 21373esac 21374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21375 (eval "$ac_compile") 2>conftest.er1 21376 ac_status=$? 21377 grep -v '^ *+' conftest.er1 >conftest.err 21378 rm -f conftest.er1 21379 cat conftest.err >&5 21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21381 (exit $ac_status); } && { 21382 test -z "$ac_c_werror_flag" || 21383 test ! -s conftest.err 21384 } && test -s conftest.$ac_objext; then 21385 21386 cat >>confdefs.h <<\_ACEOF 21387#define HAVE_U_INTXX_T 1 21388_ACEOF 21389 21390 { echo "$as_me:$LINENO: result: yes" >&5 21391echo "${ECHO_T}yes" >&6; } 21392 21393else 21394 echo "$as_me: failed program was:" >&5 21395sed 's/^/| /' conftest.$ac_ext >&5 21396 21397 { echo "$as_me:$LINENO: result: no" >&5 21398echo "${ECHO_T}no" >&6; } 21399 21400fi 21401 21402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21403fi 21404 21405{ echo "$as_me:$LINENO: checking for u_int64_t types" >&5 21406echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; } 21407if test "${ac_cv_have_u_int64_t+set}" = set; then 21408 echo $ECHO_N "(cached) $ECHO_C" >&6 21409else 21410 21411 cat >conftest.$ac_ext <<_ACEOF 21412/* confdefs.h. */ 21413_ACEOF 21414cat confdefs.h >>conftest.$ac_ext 21415cat >>conftest.$ac_ext <<_ACEOF 21416/* end confdefs.h. */ 21417 #include <sys/types.h> 21418int 21419main () 21420{ 21421 u_int64_t a; a = 1; 21422 ; 21423 return 0; 21424} 21425_ACEOF 21426rm -f conftest.$ac_objext 21427if { (ac_try="$ac_compile" 21428case "(($ac_try" in 21429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21430 *) ac_try_echo=$ac_try;; 21431esac 21432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21433 (eval "$ac_compile") 2>conftest.er1 21434 ac_status=$? 21435 grep -v '^ *+' conftest.er1 >conftest.err 21436 rm -f conftest.er1 21437 cat conftest.err >&5 21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21439 (exit $ac_status); } && { 21440 test -z "$ac_c_werror_flag" || 21441 test ! -s conftest.err 21442 } && test -s conftest.$ac_objext; then 21443 ac_cv_have_u_int64_t="yes" 21444else 21445 echo "$as_me: failed program was:" >&5 21446sed 's/^/| /' conftest.$ac_ext >&5 21447 21448 ac_cv_have_u_int64_t="no" 21449 21450fi 21451 21452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21453 21454fi 21455{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5 21456echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; } 21457if test "x$ac_cv_have_u_int64_t" = "xyes" ; then 21458 21459cat >>confdefs.h <<\_ACEOF 21460#define HAVE_U_INT64_T 1 21461_ACEOF 21462 21463 have_u_int64_t=1 21464fi 21465 21466if test -z "$have_u_int64_t" ; then 21467 { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5 21468echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; } 21469 cat >conftest.$ac_ext <<_ACEOF 21470/* confdefs.h. */ 21471_ACEOF 21472cat confdefs.h >>conftest.$ac_ext 21473cat >>conftest.$ac_ext <<_ACEOF 21474/* end confdefs.h. */ 21475 #include <sys/bitypes.h> 21476int 21477main () 21478{ 21479 u_int64_t a; a = 1 21480 ; 21481 return 0; 21482} 21483_ACEOF 21484rm -f conftest.$ac_objext 21485if { (ac_try="$ac_compile" 21486case "(($ac_try" in 21487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21488 *) ac_try_echo=$ac_try;; 21489esac 21490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21491 (eval "$ac_compile") 2>conftest.er1 21492 ac_status=$? 21493 grep -v '^ *+' conftest.er1 >conftest.err 21494 rm -f conftest.er1 21495 cat conftest.err >&5 21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21497 (exit $ac_status); } && { 21498 test -z "$ac_c_werror_flag" || 21499 test ! -s conftest.err 21500 } && test -s conftest.$ac_objext; then 21501 21502 cat >>confdefs.h <<\_ACEOF 21503#define HAVE_U_INT64_T 1 21504_ACEOF 21505 21506 { echo "$as_me:$LINENO: result: yes" >&5 21507echo "${ECHO_T}yes" >&6; } 21508 21509else 21510 echo "$as_me: failed program was:" >&5 21511sed 's/^/| /' conftest.$ac_ext >&5 21512 21513 { echo "$as_me:$LINENO: result: no" >&5 21514echo "${ECHO_T}no" >&6; } 21515 21516fi 21517 21518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21519fi 21520 21521if test -z "$have_u_intxx_t" ; then 21522 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5 21523echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; } 21524if test "${ac_cv_have_uintxx_t+set}" = set; then 21525 echo $ECHO_N "(cached) $ECHO_C" >&6 21526else 21527 21528 cat >conftest.$ac_ext <<_ACEOF 21529/* confdefs.h. */ 21530_ACEOF 21531cat confdefs.h >>conftest.$ac_ext 21532cat >>conftest.$ac_ext <<_ACEOF 21533/* end confdefs.h. */ 21534 21535#include <sys/types.h> 21536 21537int 21538main () 21539{ 21540 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; 21541 ; 21542 return 0; 21543} 21544_ACEOF 21545rm -f conftest.$ac_objext 21546if { (ac_try="$ac_compile" 21547case "(($ac_try" in 21548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21549 *) ac_try_echo=$ac_try;; 21550esac 21551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21552 (eval "$ac_compile") 2>conftest.er1 21553 ac_status=$? 21554 grep -v '^ *+' conftest.er1 >conftest.err 21555 rm -f conftest.er1 21556 cat conftest.err >&5 21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21558 (exit $ac_status); } && { 21559 test -z "$ac_c_werror_flag" || 21560 test ! -s conftest.err 21561 } && test -s conftest.$ac_objext; then 21562 ac_cv_have_uintxx_t="yes" 21563else 21564 echo "$as_me: failed program was:" >&5 21565sed 's/^/| /' conftest.$ac_ext >&5 21566 21567 ac_cv_have_uintxx_t="no" 21568 21569fi 21570 21571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21572 21573fi 21574{ echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5 21575echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; } 21576 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then 21577 21578cat >>confdefs.h <<\_ACEOF 21579#define HAVE_UINTXX_T 1 21580_ACEOF 21581 21582 fi 21583fi 21584 21585if test -z "$have_uintxx_t" ; then 21586 { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5 21587echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; } 21588 cat >conftest.$ac_ext <<_ACEOF 21589/* confdefs.h. */ 21590_ACEOF 21591cat confdefs.h >>conftest.$ac_ext 21592cat >>conftest.$ac_ext <<_ACEOF 21593/* end confdefs.h. */ 21594 #include <stdint.h> 21595int 21596main () 21597{ 21598 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; 21599 ; 21600 return 0; 21601} 21602_ACEOF 21603rm -f conftest.$ac_objext 21604if { (ac_try="$ac_compile" 21605case "(($ac_try" in 21606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21607 *) ac_try_echo=$ac_try;; 21608esac 21609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21610 (eval "$ac_compile") 2>conftest.er1 21611 ac_status=$? 21612 grep -v '^ *+' conftest.er1 >conftest.err 21613 rm -f conftest.er1 21614 cat conftest.err >&5 21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21616 (exit $ac_status); } && { 21617 test -z "$ac_c_werror_flag" || 21618 test ! -s conftest.err 21619 } && test -s conftest.$ac_objext; then 21620 21621 cat >>confdefs.h <<\_ACEOF 21622#define HAVE_UINTXX_T 1 21623_ACEOF 21624 21625 { echo "$as_me:$LINENO: result: yes" >&5 21626echo "${ECHO_T}yes" >&6; } 21627 21628else 21629 echo "$as_me: failed program was:" >&5 21630sed 's/^/| /' conftest.$ac_ext >&5 21631 21632 { echo "$as_me:$LINENO: result: no" >&5 21633echo "${ECHO_T}no" >&6; } 21634 21635fi 21636 21637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21638fi 21639 21640if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ 21641 test "x$ac_cv_header_sys_bitypes_h" = "xyes") 21642then 21643 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 21644echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; } 21645 cat >conftest.$ac_ext <<_ACEOF 21646/* confdefs.h. */ 21647_ACEOF 21648cat confdefs.h >>conftest.$ac_ext 21649cat >>conftest.$ac_ext <<_ACEOF 21650/* end confdefs.h. */ 21651 21652#include <sys/bitypes.h> 21653 21654int 21655main () 21656{ 21657 21658 int8_t a; int16_t b; int32_t c; 21659 u_int8_t e; u_int16_t f; u_int32_t g; 21660 a = b = c = e = f = g = 1; 21661 21662 ; 21663 return 0; 21664} 21665_ACEOF 21666rm -f conftest.$ac_objext 21667if { (ac_try="$ac_compile" 21668case "(($ac_try" in 21669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21670 *) ac_try_echo=$ac_try;; 21671esac 21672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21673 (eval "$ac_compile") 2>conftest.er1 21674 ac_status=$? 21675 grep -v '^ *+' conftest.er1 >conftest.err 21676 rm -f conftest.er1 21677 cat conftest.err >&5 21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21679 (exit $ac_status); } && { 21680 test -z "$ac_c_werror_flag" || 21681 test ! -s conftest.err 21682 } && test -s conftest.$ac_objext; then 21683 21684 cat >>confdefs.h <<\_ACEOF 21685#define HAVE_U_INTXX_T 1 21686_ACEOF 21687 21688 cat >>confdefs.h <<\_ACEOF 21689#define HAVE_INTXX_T 1 21690_ACEOF 21691 21692 { echo "$as_me:$LINENO: result: yes" >&5 21693echo "${ECHO_T}yes" >&6; } 21694 21695else 21696 echo "$as_me: failed program was:" >&5 21697sed 's/^/| /' conftest.$ac_ext >&5 21698 21699 { echo "$as_me:$LINENO: result: no" >&5 21700echo "${ECHO_T}no" >&6; } 21701 21702fi 21703 21704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21705fi 21706 21707 21708{ echo "$as_me:$LINENO: checking for u_char" >&5 21709echo $ECHO_N "checking for u_char... $ECHO_C" >&6; } 21710if test "${ac_cv_have_u_char+set}" = set; then 21711 echo $ECHO_N "(cached) $ECHO_C" >&6 21712else 21713 21714 cat >conftest.$ac_ext <<_ACEOF 21715/* confdefs.h. */ 21716_ACEOF 21717cat confdefs.h >>conftest.$ac_ext 21718cat >>conftest.$ac_ext <<_ACEOF 21719/* end confdefs.h. */ 21720 21721#include <sys/types.h> 21722 21723int 21724main () 21725{ 21726 u_char foo; foo = 125; 21727 ; 21728 return 0; 21729} 21730_ACEOF 21731rm -f conftest.$ac_objext 21732if { (ac_try="$ac_compile" 21733case "(($ac_try" in 21734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21735 *) ac_try_echo=$ac_try;; 21736esac 21737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21738 (eval "$ac_compile") 2>conftest.er1 21739 ac_status=$? 21740 grep -v '^ *+' conftest.er1 >conftest.err 21741 rm -f conftest.er1 21742 cat conftest.err >&5 21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21744 (exit $ac_status); } && { 21745 test -z "$ac_c_werror_flag" || 21746 test ! -s conftest.err 21747 } && test -s conftest.$ac_objext; then 21748 ac_cv_have_u_char="yes" 21749else 21750 echo "$as_me: failed program was:" >&5 21751sed 's/^/| /' conftest.$ac_ext >&5 21752 21753 ac_cv_have_u_char="no" 21754 21755fi 21756 21757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21758 21759fi 21760{ echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5 21761echo "${ECHO_T}$ac_cv_have_u_char" >&6; } 21762if test "x$ac_cv_have_u_char" = "xyes" ; then 21763 21764cat >>confdefs.h <<\_ACEOF 21765#define HAVE_U_CHAR 1 21766_ACEOF 21767 21768fi 21769 21770 21771 { echo "$as_me:$LINENO: checking for socklen_t" >&5 21772echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } 21773if test "${ac_cv_type_socklen_t+set}" = set; then 21774 echo $ECHO_N "(cached) $ECHO_C" >&6 21775else 21776 cat >conftest.$ac_ext <<_ACEOF 21777/* confdefs.h. */ 21778_ACEOF 21779cat confdefs.h >>conftest.$ac_ext 21780cat >>conftest.$ac_ext <<_ACEOF 21781/* end confdefs.h. */ 21782#include <sys/types.h> 21783#include <sys/socket.h> 21784 21785typedef socklen_t ac__type_new_; 21786int 21787main () 21788{ 21789if ((ac__type_new_ *) 0) 21790 return 0; 21791if (sizeof (ac__type_new_)) 21792 return 0; 21793 ; 21794 return 0; 21795} 21796_ACEOF 21797rm -f conftest.$ac_objext 21798if { (ac_try="$ac_compile" 21799case "(($ac_try" in 21800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21801 *) ac_try_echo=$ac_try;; 21802esac 21803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21804 (eval "$ac_compile") 2>conftest.er1 21805 ac_status=$? 21806 grep -v '^ *+' conftest.er1 >conftest.err 21807 rm -f conftest.er1 21808 cat conftest.err >&5 21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21810 (exit $ac_status); } && { 21811 test -z "$ac_c_werror_flag" || 21812 test ! -s conftest.err 21813 } && test -s conftest.$ac_objext; then 21814 ac_cv_type_socklen_t=yes 21815else 21816 echo "$as_me: failed program was:" >&5 21817sed 's/^/| /' conftest.$ac_ext >&5 21818 21819 ac_cv_type_socklen_t=no 21820fi 21821 21822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21823fi 21824{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 21825echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } 21826if test $ac_cv_type_socklen_t = yes; then 21827 : 21828else 21829 21830 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 21831echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; } 21832 if test "${curl_cv_socklen_t_equiv+set}" = set; then 21833 echo $ECHO_N "(cached) $ECHO_C" >&6 21834else 21835 21836 # Systems have either "struct sockaddr *" or 21837 # "void *" as the second argument to getpeername 21838 curl_cv_socklen_t_equiv= 21839 for arg2 in "struct sockaddr" void; do 21840 for t in int size_t unsigned long "unsigned long"; do 21841 cat >conftest.$ac_ext <<_ACEOF 21842/* confdefs.h. */ 21843_ACEOF 21844cat confdefs.h >>conftest.$ac_ext 21845cat >>conftest.$ac_ext <<_ACEOF 21846/* end confdefs.h. */ 21847 21848 #include <sys/types.h> 21849 #include <sys/socket.h> 21850 21851 int getpeername (int, $arg2 *, $t *); 21852 21853int 21854main () 21855{ 21856 21857 $t len; 21858 getpeername(0,0,&len); 21859 21860 ; 21861 return 0; 21862} 21863_ACEOF 21864rm -f conftest.$ac_objext 21865if { (ac_try="$ac_compile" 21866case "(($ac_try" in 21867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21868 *) ac_try_echo=$ac_try;; 21869esac 21870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21871 (eval "$ac_compile") 2>conftest.er1 21872 ac_status=$? 21873 grep -v '^ *+' conftest.er1 >conftest.err 21874 rm -f conftest.er1 21875 cat conftest.err >&5 21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21877 (exit $ac_status); } && { 21878 test -z "$ac_c_werror_flag" || 21879 test ! -s conftest.err 21880 } && test -s conftest.$ac_objext; then 21881 21882 curl_cv_socklen_t_equiv="$t" 21883 break 21884 21885else 21886 echo "$as_me: failed program was:" >&5 21887sed 's/^/| /' conftest.$ac_ext >&5 21888 21889 21890fi 21891 21892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21893 done 21894 done 21895 21896 if test "x$curl_cv_socklen_t_equiv" = x; then 21897 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5 21898echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} 21899 { (exit 1); exit 1; }; } 21900 fi 21901 21902fi 21903 21904 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 21905echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; } 21906 21907cat >>confdefs.h <<_ACEOF 21908#define socklen_t $curl_cv_socklen_t_equiv 21909_ACEOF 21910 21911fi 21912 21913 21914 21915{ echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 21916echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; } 21917if test "${ac_cv_type_sig_atomic_t+set}" = set; then 21918 echo $ECHO_N "(cached) $ECHO_C" >&6 21919else 21920 cat >conftest.$ac_ext <<_ACEOF 21921/* confdefs.h. */ 21922_ACEOF 21923cat confdefs.h >>conftest.$ac_ext 21924cat >>conftest.$ac_ext <<_ACEOF 21925/* end confdefs.h. */ 21926#include <signal.h> 21927 21928typedef sig_atomic_t ac__type_new_; 21929int 21930main () 21931{ 21932if ((ac__type_new_ *) 0) 21933 return 0; 21934if (sizeof (ac__type_new_)) 21935 return 0; 21936 ; 21937 return 0; 21938} 21939_ACEOF 21940rm -f conftest.$ac_objext 21941if { (ac_try="$ac_compile" 21942case "(($ac_try" in 21943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21944 *) ac_try_echo=$ac_try;; 21945esac 21946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21947 (eval "$ac_compile") 2>conftest.er1 21948 ac_status=$? 21949 grep -v '^ *+' conftest.er1 >conftest.err 21950 rm -f conftest.er1 21951 cat conftest.err >&5 21952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21953 (exit $ac_status); } && { 21954 test -z "$ac_c_werror_flag" || 21955 test ! -s conftest.err 21956 } && test -s conftest.$ac_objext; then 21957 ac_cv_type_sig_atomic_t=yes 21958else 21959 echo "$as_me: failed program was:" >&5 21960sed 's/^/| /' conftest.$ac_ext >&5 21961 21962 ac_cv_type_sig_atomic_t=no 21963fi 21964 21965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21966fi 21967{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 21968echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; } 21969if test $ac_cv_type_sig_atomic_t = yes; then 21970 21971cat >>confdefs.h <<_ACEOF 21972#define HAVE_SIG_ATOMIC_T 1 21973_ACEOF 21974 21975 21976fi 21977 21978{ echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5 21979echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; } 21980if test "${ac_cv_type_fsblkcnt_t+set}" = set; then 21981 echo $ECHO_N "(cached) $ECHO_C" >&6 21982else 21983 cat >conftest.$ac_ext <<_ACEOF 21984/* confdefs.h. */ 21985_ACEOF 21986cat confdefs.h >>conftest.$ac_ext 21987cat >>conftest.$ac_ext <<_ACEOF 21988/* end confdefs.h. */ 21989 21990#include <sys/types.h> 21991#ifdef HAVE_SYS_BITYPES_H 21992#include <sys/bitypes.h> 21993#endif 21994#ifdef HAVE_SYS_STATFS_H 21995#include <sys/statfs.h> 21996#endif 21997#ifdef HAVE_SYS_STATVFS_H 21998#include <sys/statvfs.h> 21999#endif 22000 22001 22002typedef fsblkcnt_t ac__type_new_; 22003int 22004main () 22005{ 22006if ((ac__type_new_ *) 0) 22007 return 0; 22008if (sizeof (ac__type_new_)) 22009 return 0; 22010 ; 22011 return 0; 22012} 22013_ACEOF 22014rm -f conftest.$ac_objext 22015if { (ac_try="$ac_compile" 22016case "(($ac_try" in 22017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22018 *) ac_try_echo=$ac_try;; 22019esac 22020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22021 (eval "$ac_compile") 2>conftest.er1 22022 ac_status=$? 22023 grep -v '^ *+' conftest.er1 >conftest.err 22024 rm -f conftest.er1 22025 cat conftest.err >&5 22026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22027 (exit $ac_status); } && { 22028 test -z "$ac_c_werror_flag" || 22029 test ! -s conftest.err 22030 } && test -s conftest.$ac_objext; then 22031 ac_cv_type_fsblkcnt_t=yes 22032else 22033 echo "$as_me: failed program was:" >&5 22034sed 's/^/| /' conftest.$ac_ext >&5 22035 22036 ac_cv_type_fsblkcnt_t=no 22037fi 22038 22039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22040fi 22041{ echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5 22042echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; } 22043if test $ac_cv_type_fsblkcnt_t = yes; then 22044 22045cat >>confdefs.h <<_ACEOF 22046#define HAVE_FSBLKCNT_T 1 22047_ACEOF 22048 22049 22050fi 22051{ echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5 22052echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; } 22053if test "${ac_cv_type_fsfilcnt_t+set}" = set; then 22054 echo $ECHO_N "(cached) $ECHO_C" >&6 22055else 22056 cat >conftest.$ac_ext <<_ACEOF 22057/* confdefs.h. */ 22058_ACEOF 22059cat confdefs.h >>conftest.$ac_ext 22060cat >>conftest.$ac_ext <<_ACEOF 22061/* end confdefs.h. */ 22062 22063#include <sys/types.h> 22064#ifdef HAVE_SYS_BITYPES_H 22065#include <sys/bitypes.h> 22066#endif 22067#ifdef HAVE_SYS_STATFS_H 22068#include <sys/statfs.h> 22069#endif 22070#ifdef HAVE_SYS_STATVFS_H 22071#include <sys/statvfs.h> 22072#endif 22073 22074 22075typedef fsfilcnt_t ac__type_new_; 22076int 22077main () 22078{ 22079if ((ac__type_new_ *) 0) 22080 return 0; 22081if (sizeof (ac__type_new_)) 22082 return 0; 22083 ; 22084 return 0; 22085} 22086_ACEOF 22087rm -f conftest.$ac_objext 22088if { (ac_try="$ac_compile" 22089case "(($ac_try" in 22090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22091 *) ac_try_echo=$ac_try;; 22092esac 22093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22094 (eval "$ac_compile") 2>conftest.er1 22095 ac_status=$? 22096 grep -v '^ *+' conftest.er1 >conftest.err 22097 rm -f conftest.er1 22098 cat conftest.err >&5 22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22100 (exit $ac_status); } && { 22101 test -z "$ac_c_werror_flag" || 22102 test ! -s conftest.err 22103 } && test -s conftest.$ac_objext; then 22104 ac_cv_type_fsfilcnt_t=yes 22105else 22106 echo "$as_me: failed program was:" >&5 22107sed 's/^/| /' conftest.$ac_ext >&5 22108 22109 ac_cv_type_fsfilcnt_t=no 22110fi 22111 22112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22113fi 22114{ echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5 22115echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; } 22116if test $ac_cv_type_fsfilcnt_t = yes; then 22117 22118cat >>confdefs.h <<_ACEOF 22119#define HAVE_FSFILCNT_T 1 22120_ACEOF 22121 22122 22123fi 22124 22125 22126{ echo "$as_me:$LINENO: checking for in_addr_t" >&5 22127echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; } 22128if test "${ac_cv_type_in_addr_t+set}" = set; then 22129 echo $ECHO_N "(cached) $ECHO_C" >&6 22130else 22131 cat >conftest.$ac_ext <<_ACEOF 22132/* confdefs.h. */ 22133_ACEOF 22134cat confdefs.h >>conftest.$ac_ext 22135cat >>conftest.$ac_ext <<_ACEOF 22136/* end confdefs.h. */ 22137#include <sys/types.h> 22138#include <netinet/in.h> 22139 22140typedef in_addr_t ac__type_new_; 22141int 22142main () 22143{ 22144if ((ac__type_new_ *) 0) 22145 return 0; 22146if (sizeof (ac__type_new_)) 22147 return 0; 22148 ; 22149 return 0; 22150} 22151_ACEOF 22152rm -f conftest.$ac_objext 22153if { (ac_try="$ac_compile" 22154case "(($ac_try" in 22155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22156 *) ac_try_echo=$ac_try;; 22157esac 22158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22159 (eval "$ac_compile") 2>conftest.er1 22160 ac_status=$? 22161 grep -v '^ *+' conftest.er1 >conftest.err 22162 rm -f conftest.er1 22163 cat conftest.err >&5 22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22165 (exit $ac_status); } && { 22166 test -z "$ac_c_werror_flag" || 22167 test ! -s conftest.err 22168 } && test -s conftest.$ac_objext; then 22169 ac_cv_type_in_addr_t=yes 22170else 22171 echo "$as_me: failed program was:" >&5 22172sed 's/^/| /' conftest.$ac_ext >&5 22173 22174 ac_cv_type_in_addr_t=no 22175fi 22176 22177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22178fi 22179{ echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5 22180echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; } 22181if test $ac_cv_type_in_addr_t = yes; then 22182 22183cat >>confdefs.h <<_ACEOF 22184#define HAVE_IN_ADDR_T 1 22185_ACEOF 22186 22187 22188fi 22189 22190 22191{ echo "$as_me:$LINENO: checking for size_t" >&5 22192echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 22193if test "${ac_cv_have_size_t+set}" = set; then 22194 echo $ECHO_N "(cached) $ECHO_C" >&6 22195else 22196 22197 cat >conftest.$ac_ext <<_ACEOF 22198/* confdefs.h. */ 22199_ACEOF 22200cat confdefs.h >>conftest.$ac_ext 22201cat >>conftest.$ac_ext <<_ACEOF 22202/* end confdefs.h. */ 22203 22204#include <sys/types.h> 22205 22206int 22207main () 22208{ 22209 size_t foo; foo = 1235; 22210 ; 22211 return 0; 22212} 22213_ACEOF 22214rm -f conftest.$ac_objext 22215if { (ac_try="$ac_compile" 22216case "(($ac_try" in 22217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22218 *) ac_try_echo=$ac_try;; 22219esac 22220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22221 (eval "$ac_compile") 2>conftest.er1 22222 ac_status=$? 22223 grep -v '^ *+' conftest.er1 >conftest.err 22224 rm -f conftest.er1 22225 cat conftest.err >&5 22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22227 (exit $ac_status); } && { 22228 test -z "$ac_c_werror_flag" || 22229 test ! -s conftest.err 22230 } && test -s conftest.$ac_objext; then 22231 ac_cv_have_size_t="yes" 22232else 22233 echo "$as_me: failed program was:" >&5 22234sed 's/^/| /' conftest.$ac_ext >&5 22235 22236 ac_cv_have_size_t="no" 22237 22238fi 22239 22240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22241 22242fi 22243{ echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5 22244echo "${ECHO_T}$ac_cv_have_size_t" >&6; } 22245if test "x$ac_cv_have_size_t" = "xyes" ; then 22246 22247cat >>confdefs.h <<\_ACEOF 22248#define HAVE_SIZE_T 1 22249_ACEOF 22250 22251fi 22252 22253{ echo "$as_me:$LINENO: checking for ssize_t" >&5 22254echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } 22255if test "${ac_cv_have_ssize_t+set}" = set; then 22256 echo $ECHO_N "(cached) $ECHO_C" >&6 22257else 22258 22259 cat >conftest.$ac_ext <<_ACEOF 22260/* confdefs.h. */ 22261_ACEOF 22262cat confdefs.h >>conftest.$ac_ext 22263cat >>conftest.$ac_ext <<_ACEOF 22264/* end confdefs.h. */ 22265 22266#include <sys/types.h> 22267 22268int 22269main () 22270{ 22271 ssize_t foo; foo = 1235; 22272 ; 22273 return 0; 22274} 22275_ACEOF 22276rm -f conftest.$ac_objext 22277if { (ac_try="$ac_compile" 22278case "(($ac_try" in 22279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22280 *) ac_try_echo=$ac_try;; 22281esac 22282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22283 (eval "$ac_compile") 2>conftest.er1 22284 ac_status=$? 22285 grep -v '^ *+' conftest.er1 >conftest.err 22286 rm -f conftest.er1 22287 cat conftest.err >&5 22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22289 (exit $ac_status); } && { 22290 test -z "$ac_c_werror_flag" || 22291 test ! -s conftest.err 22292 } && test -s conftest.$ac_objext; then 22293 ac_cv_have_ssize_t="yes" 22294else 22295 echo "$as_me: failed program was:" >&5 22296sed 's/^/| /' conftest.$ac_ext >&5 22297 22298 ac_cv_have_ssize_t="no" 22299 22300fi 22301 22302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22303 22304fi 22305{ echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5 22306echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; } 22307if test "x$ac_cv_have_ssize_t" = "xyes" ; then 22308 22309cat >>confdefs.h <<\_ACEOF 22310#define HAVE_SSIZE_T 1 22311_ACEOF 22312 22313fi 22314 22315{ echo "$as_me:$LINENO: checking for clock_t" >&5 22316echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; } 22317if test "${ac_cv_have_clock_t+set}" = set; then 22318 echo $ECHO_N "(cached) $ECHO_C" >&6 22319else 22320 22321 cat >conftest.$ac_ext <<_ACEOF 22322/* confdefs.h. */ 22323_ACEOF 22324cat confdefs.h >>conftest.$ac_ext 22325cat >>conftest.$ac_ext <<_ACEOF 22326/* end confdefs.h. */ 22327 22328#include <time.h> 22329 22330int 22331main () 22332{ 22333 clock_t foo; foo = 1235; 22334 ; 22335 return 0; 22336} 22337_ACEOF 22338rm -f conftest.$ac_objext 22339if { (ac_try="$ac_compile" 22340case "(($ac_try" in 22341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22342 *) ac_try_echo=$ac_try;; 22343esac 22344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22345 (eval "$ac_compile") 2>conftest.er1 22346 ac_status=$? 22347 grep -v '^ *+' conftest.er1 >conftest.err 22348 rm -f conftest.er1 22349 cat conftest.err >&5 22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22351 (exit $ac_status); } && { 22352 test -z "$ac_c_werror_flag" || 22353 test ! -s conftest.err 22354 } && test -s conftest.$ac_objext; then 22355 ac_cv_have_clock_t="yes" 22356else 22357 echo "$as_me: failed program was:" >&5 22358sed 's/^/| /' conftest.$ac_ext >&5 22359 22360 ac_cv_have_clock_t="no" 22361 22362fi 22363 22364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22365 22366fi 22367{ echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5 22368echo "${ECHO_T}$ac_cv_have_clock_t" >&6; } 22369if test "x$ac_cv_have_clock_t" = "xyes" ; then 22370 22371cat >>confdefs.h <<\_ACEOF 22372#define HAVE_CLOCK_T 1 22373_ACEOF 22374 22375fi 22376 22377{ echo "$as_me:$LINENO: checking for sa_family_t" >&5 22378echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; } 22379if test "${ac_cv_have_sa_family_t+set}" = set; then 22380 echo $ECHO_N "(cached) $ECHO_C" >&6 22381else 22382 22383 cat >conftest.$ac_ext <<_ACEOF 22384/* confdefs.h. */ 22385_ACEOF 22386cat confdefs.h >>conftest.$ac_ext 22387cat >>conftest.$ac_ext <<_ACEOF 22388/* end confdefs.h. */ 22389 22390#include <sys/types.h> 22391#include <sys/socket.h> 22392 22393int 22394main () 22395{ 22396 sa_family_t foo; foo = 1235; 22397 ; 22398 return 0; 22399} 22400_ACEOF 22401rm -f conftest.$ac_objext 22402if { (ac_try="$ac_compile" 22403case "(($ac_try" in 22404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22405 *) ac_try_echo=$ac_try;; 22406esac 22407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22408 (eval "$ac_compile") 2>conftest.er1 22409 ac_status=$? 22410 grep -v '^ *+' conftest.er1 >conftest.err 22411 rm -f conftest.er1 22412 cat conftest.err >&5 22413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22414 (exit $ac_status); } && { 22415 test -z "$ac_c_werror_flag" || 22416 test ! -s conftest.err 22417 } && test -s conftest.$ac_objext; then 22418 ac_cv_have_sa_family_t="yes" 22419else 22420 echo "$as_me: failed program was:" >&5 22421sed 's/^/| /' conftest.$ac_ext >&5 22422 22423 cat >conftest.$ac_ext <<_ACEOF 22424/* confdefs.h. */ 22425_ACEOF 22426cat confdefs.h >>conftest.$ac_ext 22427cat >>conftest.$ac_ext <<_ACEOF 22428/* end confdefs.h. */ 22429 22430#include <sys/types.h> 22431#include <sys/socket.h> 22432#include <netinet/in.h> 22433 22434int 22435main () 22436{ 22437 sa_family_t foo; foo = 1235; 22438 ; 22439 return 0; 22440} 22441_ACEOF 22442rm -f conftest.$ac_objext 22443if { (ac_try="$ac_compile" 22444case "(($ac_try" in 22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22446 *) ac_try_echo=$ac_try;; 22447esac 22448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22449 (eval "$ac_compile") 2>conftest.er1 22450 ac_status=$? 22451 grep -v '^ *+' conftest.er1 >conftest.err 22452 rm -f conftest.er1 22453 cat conftest.err >&5 22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22455 (exit $ac_status); } && { 22456 test -z "$ac_c_werror_flag" || 22457 test ! -s conftest.err 22458 } && test -s conftest.$ac_objext; then 22459 ac_cv_have_sa_family_t="yes" 22460else 22461 echo "$as_me: failed program was:" >&5 22462sed 's/^/| /' conftest.$ac_ext >&5 22463 22464 ac_cv_have_sa_family_t="no" 22465 22466fi 22467 22468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22469 22470fi 22471 22472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22473 22474fi 22475{ echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5 22476echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; } 22477if test "x$ac_cv_have_sa_family_t" = "xyes" ; then 22478 22479cat >>confdefs.h <<\_ACEOF 22480#define HAVE_SA_FAMILY_T 1 22481_ACEOF 22482 22483fi 22484 22485{ echo "$as_me:$LINENO: checking for pid_t" >&5 22486echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 22487if test "${ac_cv_have_pid_t+set}" = set; then 22488 echo $ECHO_N "(cached) $ECHO_C" >&6 22489else 22490 22491 cat >conftest.$ac_ext <<_ACEOF 22492/* confdefs.h. */ 22493_ACEOF 22494cat confdefs.h >>conftest.$ac_ext 22495cat >>conftest.$ac_ext <<_ACEOF 22496/* end confdefs.h. */ 22497 22498#include <sys/types.h> 22499 22500int 22501main () 22502{ 22503 pid_t foo; foo = 1235; 22504 ; 22505 return 0; 22506} 22507_ACEOF 22508rm -f conftest.$ac_objext 22509if { (ac_try="$ac_compile" 22510case "(($ac_try" in 22511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22512 *) ac_try_echo=$ac_try;; 22513esac 22514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22515 (eval "$ac_compile") 2>conftest.er1 22516 ac_status=$? 22517 grep -v '^ *+' conftest.er1 >conftest.err 22518 rm -f conftest.er1 22519 cat conftest.err >&5 22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22521 (exit $ac_status); } && { 22522 test -z "$ac_c_werror_flag" || 22523 test ! -s conftest.err 22524 } && test -s conftest.$ac_objext; then 22525 ac_cv_have_pid_t="yes" 22526else 22527 echo "$as_me: failed program was:" >&5 22528sed 's/^/| /' conftest.$ac_ext >&5 22529 22530 ac_cv_have_pid_t="no" 22531 22532fi 22533 22534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22535 22536fi 22537{ echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5 22538echo "${ECHO_T}$ac_cv_have_pid_t" >&6; } 22539if test "x$ac_cv_have_pid_t" = "xyes" ; then 22540 22541cat >>confdefs.h <<\_ACEOF 22542#define HAVE_PID_T 1 22543_ACEOF 22544 22545fi 22546 22547{ echo "$as_me:$LINENO: checking for mode_t" >&5 22548echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } 22549if test "${ac_cv_have_mode_t+set}" = set; then 22550 echo $ECHO_N "(cached) $ECHO_C" >&6 22551else 22552 22553 cat >conftest.$ac_ext <<_ACEOF 22554/* confdefs.h. */ 22555_ACEOF 22556cat confdefs.h >>conftest.$ac_ext 22557cat >>conftest.$ac_ext <<_ACEOF 22558/* end confdefs.h. */ 22559 22560#include <sys/types.h> 22561 22562int 22563main () 22564{ 22565 mode_t foo; foo = 1235; 22566 ; 22567 return 0; 22568} 22569_ACEOF 22570rm -f conftest.$ac_objext 22571if { (ac_try="$ac_compile" 22572case "(($ac_try" in 22573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22574 *) ac_try_echo=$ac_try;; 22575esac 22576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22577 (eval "$ac_compile") 2>conftest.er1 22578 ac_status=$? 22579 grep -v '^ *+' conftest.er1 >conftest.err 22580 rm -f conftest.er1 22581 cat conftest.err >&5 22582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22583 (exit $ac_status); } && { 22584 test -z "$ac_c_werror_flag" || 22585 test ! -s conftest.err 22586 } && test -s conftest.$ac_objext; then 22587 ac_cv_have_mode_t="yes" 22588else 22589 echo "$as_me: failed program was:" >&5 22590sed 's/^/| /' conftest.$ac_ext >&5 22591 22592 ac_cv_have_mode_t="no" 22593 22594fi 22595 22596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22597 22598fi 22599{ echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5 22600echo "${ECHO_T}$ac_cv_have_mode_t" >&6; } 22601if test "x$ac_cv_have_mode_t" = "xyes" ; then 22602 22603cat >>confdefs.h <<\_ACEOF 22604#define HAVE_MODE_T 1 22605_ACEOF 22606 22607fi 22608 22609 22610{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 22611echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; } 22612if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then 22613 echo $ECHO_N "(cached) $ECHO_C" >&6 22614else 22615 22616 cat >conftest.$ac_ext <<_ACEOF 22617/* confdefs.h. */ 22618_ACEOF 22619cat confdefs.h >>conftest.$ac_ext 22620cat >>conftest.$ac_ext <<_ACEOF 22621/* end confdefs.h. */ 22622 22623#include <sys/types.h> 22624#include <sys/socket.h> 22625 22626int 22627main () 22628{ 22629 struct sockaddr_storage s; 22630 ; 22631 return 0; 22632} 22633_ACEOF 22634rm -f conftest.$ac_objext 22635if { (ac_try="$ac_compile" 22636case "(($ac_try" in 22637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22638 *) ac_try_echo=$ac_try;; 22639esac 22640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22641 (eval "$ac_compile") 2>conftest.er1 22642 ac_status=$? 22643 grep -v '^ *+' conftest.er1 >conftest.err 22644 rm -f conftest.er1 22645 cat conftest.err >&5 22646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22647 (exit $ac_status); } && { 22648 test -z "$ac_c_werror_flag" || 22649 test ! -s conftest.err 22650 } && test -s conftest.$ac_objext; then 22651 ac_cv_have_struct_sockaddr_storage="yes" 22652else 22653 echo "$as_me: failed program was:" >&5 22654sed 's/^/| /' conftest.$ac_ext >&5 22655 22656 ac_cv_have_struct_sockaddr_storage="no" 22657 22658fi 22659 22660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22661 22662fi 22663{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5 22664echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; } 22665if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then 22666 22667cat >>confdefs.h <<\_ACEOF 22668#define HAVE_STRUCT_SOCKADDR_STORAGE 1 22669_ACEOF 22670 22671fi 22672 22673{ echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 22674echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; } 22675if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then 22676 echo $ECHO_N "(cached) $ECHO_C" >&6 22677else 22678 22679 cat >conftest.$ac_ext <<_ACEOF 22680/* confdefs.h. */ 22681_ACEOF 22682cat confdefs.h >>conftest.$ac_ext 22683cat >>conftest.$ac_ext <<_ACEOF 22684/* end confdefs.h. */ 22685 22686#include <sys/types.h> 22687#include <netinet/in.h> 22688 22689int 22690main () 22691{ 22692 struct sockaddr_in6 s; s.sin6_family = 0; 22693 ; 22694 return 0; 22695} 22696_ACEOF 22697rm -f conftest.$ac_objext 22698if { (ac_try="$ac_compile" 22699case "(($ac_try" in 22700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22701 *) ac_try_echo=$ac_try;; 22702esac 22703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22704 (eval "$ac_compile") 2>conftest.er1 22705 ac_status=$? 22706 grep -v '^ *+' conftest.er1 >conftest.err 22707 rm -f conftest.er1 22708 cat conftest.err >&5 22709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22710 (exit $ac_status); } && { 22711 test -z "$ac_c_werror_flag" || 22712 test ! -s conftest.err 22713 } && test -s conftest.$ac_objext; then 22714 ac_cv_have_struct_sockaddr_in6="yes" 22715else 22716 echo "$as_me: failed program was:" >&5 22717sed 's/^/| /' conftest.$ac_ext >&5 22718 22719 ac_cv_have_struct_sockaddr_in6="no" 22720 22721fi 22722 22723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22724 22725fi 22726{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5 22727echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; } 22728if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then 22729 22730cat >>confdefs.h <<\_ACEOF 22731#define HAVE_STRUCT_SOCKADDR_IN6 1 22732_ACEOF 22733 22734fi 22735 22736{ echo "$as_me:$LINENO: checking for struct in6_addr" >&5 22737echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; } 22738if test "${ac_cv_have_struct_in6_addr+set}" = set; then 22739 echo $ECHO_N "(cached) $ECHO_C" >&6 22740else 22741 22742 cat >conftest.$ac_ext <<_ACEOF 22743/* confdefs.h. */ 22744_ACEOF 22745cat confdefs.h >>conftest.$ac_ext 22746cat >>conftest.$ac_ext <<_ACEOF 22747/* end confdefs.h. */ 22748 22749#include <sys/types.h> 22750#include <netinet/in.h> 22751 22752int 22753main () 22754{ 22755 struct in6_addr s; s.s6_addr[0] = 0; 22756 ; 22757 return 0; 22758} 22759_ACEOF 22760rm -f conftest.$ac_objext 22761if { (ac_try="$ac_compile" 22762case "(($ac_try" in 22763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22764 *) ac_try_echo=$ac_try;; 22765esac 22766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22767 (eval "$ac_compile") 2>conftest.er1 22768 ac_status=$? 22769 grep -v '^ *+' conftest.er1 >conftest.err 22770 rm -f conftest.er1 22771 cat conftest.err >&5 22772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22773 (exit $ac_status); } && { 22774 test -z "$ac_c_werror_flag" || 22775 test ! -s conftest.err 22776 } && test -s conftest.$ac_objext; then 22777 ac_cv_have_struct_in6_addr="yes" 22778else 22779 echo "$as_me: failed program was:" >&5 22780sed 's/^/| /' conftest.$ac_ext >&5 22781 22782 ac_cv_have_struct_in6_addr="no" 22783 22784fi 22785 22786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22787 22788fi 22789{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5 22790echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; } 22791if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then 22792 22793cat >>confdefs.h <<\_ACEOF 22794#define HAVE_STRUCT_IN6_ADDR 1 22795_ACEOF 22796 22797 22798 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5 22799echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; } 22800if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then 22801 echo $ECHO_N "(cached) $ECHO_C" >&6 22802else 22803 cat >conftest.$ac_ext <<_ACEOF 22804/* confdefs.h. */ 22805_ACEOF 22806cat confdefs.h >>conftest.$ac_ext 22807cat >>conftest.$ac_ext <<_ACEOF 22808/* end confdefs.h. */ 22809 22810#ifdef HAVE_SYS_TYPES_H 22811#include <sys/types.h> 22812#endif 22813#include <netinet/in.h> 22814 22815 22816int 22817main () 22818{ 22819static struct sockaddr_in6 ac_aggr; 22820if (ac_aggr.sin6_scope_id) 22821return 0; 22822 ; 22823 return 0; 22824} 22825_ACEOF 22826rm -f conftest.$ac_objext 22827if { (ac_try="$ac_compile" 22828case "(($ac_try" in 22829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22830 *) ac_try_echo=$ac_try;; 22831esac 22832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22833 (eval "$ac_compile") 2>conftest.er1 22834 ac_status=$? 22835 grep -v '^ *+' conftest.er1 >conftest.err 22836 rm -f conftest.er1 22837 cat conftest.err >&5 22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22839 (exit $ac_status); } && { 22840 test -z "$ac_c_werror_flag" || 22841 test ! -s conftest.err 22842 } && test -s conftest.$ac_objext; then 22843 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes 22844else 22845 echo "$as_me: failed program was:" >&5 22846sed 's/^/| /' conftest.$ac_ext >&5 22847 22848 cat >conftest.$ac_ext <<_ACEOF 22849/* confdefs.h. */ 22850_ACEOF 22851cat confdefs.h >>conftest.$ac_ext 22852cat >>conftest.$ac_ext <<_ACEOF 22853/* end confdefs.h. */ 22854 22855#ifdef HAVE_SYS_TYPES_H 22856#include <sys/types.h> 22857#endif 22858#include <netinet/in.h> 22859 22860 22861int 22862main () 22863{ 22864static struct sockaddr_in6 ac_aggr; 22865if (sizeof ac_aggr.sin6_scope_id) 22866return 0; 22867 ; 22868 return 0; 22869} 22870_ACEOF 22871rm -f conftest.$ac_objext 22872if { (ac_try="$ac_compile" 22873case "(($ac_try" in 22874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22875 *) ac_try_echo=$ac_try;; 22876esac 22877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22878 (eval "$ac_compile") 2>conftest.er1 22879 ac_status=$? 22880 grep -v '^ *+' conftest.er1 >conftest.err 22881 rm -f conftest.er1 22882 cat conftest.err >&5 22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22884 (exit $ac_status); } && { 22885 test -z "$ac_c_werror_flag" || 22886 test ! -s conftest.err 22887 } && test -s conftest.$ac_objext; then 22888 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes 22889else 22890 echo "$as_me: failed program was:" >&5 22891sed 's/^/| /' conftest.$ac_ext >&5 22892 22893 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no 22894fi 22895 22896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22897fi 22898 22899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22900fi 22901{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5 22902echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; } 22903if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then 22904 22905cat >>confdefs.h <<_ACEOF 22906#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 22907_ACEOF 22908 22909 22910fi 22911 22912fi 22913 22914{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5 22915echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; } 22916if test "${ac_cv_have_struct_addrinfo+set}" = set; then 22917 echo $ECHO_N "(cached) $ECHO_C" >&6 22918else 22919 22920 cat >conftest.$ac_ext <<_ACEOF 22921/* confdefs.h. */ 22922_ACEOF 22923cat confdefs.h >>conftest.$ac_ext 22924cat >>conftest.$ac_ext <<_ACEOF 22925/* end confdefs.h. */ 22926 22927#include <sys/types.h> 22928#include <sys/socket.h> 22929#include <netdb.h> 22930 22931int 22932main () 22933{ 22934 struct addrinfo s; s.ai_flags = AI_PASSIVE; 22935 ; 22936 return 0; 22937} 22938_ACEOF 22939rm -f conftest.$ac_objext 22940if { (ac_try="$ac_compile" 22941case "(($ac_try" in 22942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22943 *) ac_try_echo=$ac_try;; 22944esac 22945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22946 (eval "$ac_compile") 2>conftest.er1 22947 ac_status=$? 22948 grep -v '^ *+' conftest.er1 >conftest.err 22949 rm -f conftest.er1 22950 cat conftest.err >&5 22951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22952 (exit $ac_status); } && { 22953 test -z "$ac_c_werror_flag" || 22954 test ! -s conftest.err 22955 } && test -s conftest.$ac_objext; then 22956 ac_cv_have_struct_addrinfo="yes" 22957else 22958 echo "$as_me: failed program was:" >&5 22959sed 's/^/| /' conftest.$ac_ext >&5 22960 22961 ac_cv_have_struct_addrinfo="no" 22962 22963fi 22964 22965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22966 22967fi 22968{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5 22969echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; } 22970if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then 22971 22972cat >>confdefs.h <<\_ACEOF 22973#define HAVE_STRUCT_ADDRINFO 1 22974_ACEOF 22975 22976fi 22977 22978{ echo "$as_me:$LINENO: checking for struct timeval" >&5 22979echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; } 22980if test "${ac_cv_have_struct_timeval+set}" = set; then 22981 echo $ECHO_N "(cached) $ECHO_C" >&6 22982else 22983 22984 cat >conftest.$ac_ext <<_ACEOF 22985/* confdefs.h. */ 22986_ACEOF 22987cat confdefs.h >>conftest.$ac_ext 22988cat >>conftest.$ac_ext <<_ACEOF 22989/* end confdefs.h. */ 22990 #include <sys/time.h> 22991int 22992main () 22993{ 22994 struct timeval tv; tv.tv_sec = 1; 22995 ; 22996 return 0; 22997} 22998_ACEOF 22999rm -f conftest.$ac_objext 23000if { (ac_try="$ac_compile" 23001case "(($ac_try" in 23002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23003 *) ac_try_echo=$ac_try;; 23004esac 23005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23006 (eval "$ac_compile") 2>conftest.er1 23007 ac_status=$? 23008 grep -v '^ *+' conftest.er1 >conftest.err 23009 rm -f conftest.er1 23010 cat conftest.err >&5 23011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23012 (exit $ac_status); } && { 23013 test -z "$ac_c_werror_flag" || 23014 test ! -s conftest.err 23015 } && test -s conftest.$ac_objext; then 23016 ac_cv_have_struct_timeval="yes" 23017else 23018 echo "$as_me: failed program was:" >&5 23019sed 's/^/| /' conftest.$ac_ext >&5 23020 23021 ac_cv_have_struct_timeval="no" 23022 23023fi 23024 23025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23026 23027fi 23028{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5 23029echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; } 23030if test "x$ac_cv_have_struct_timeval" = "xyes" ; then 23031 23032cat >>confdefs.h <<\_ACEOF 23033#define HAVE_STRUCT_TIMEVAL 1 23034_ACEOF 23035 23036 have_struct_timeval=1 23037fi 23038 23039{ echo "$as_me:$LINENO: checking for struct timespec" >&5 23040echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; } 23041if test "${ac_cv_type_struct_timespec+set}" = set; then 23042 echo $ECHO_N "(cached) $ECHO_C" >&6 23043else 23044 cat >conftest.$ac_ext <<_ACEOF 23045/* confdefs.h. */ 23046_ACEOF 23047cat confdefs.h >>conftest.$ac_ext 23048cat >>conftest.$ac_ext <<_ACEOF 23049/* end confdefs.h. */ 23050$ac_includes_default 23051typedef struct timespec ac__type_new_; 23052int 23053main () 23054{ 23055if ((ac__type_new_ *) 0) 23056 return 0; 23057if (sizeof (ac__type_new_)) 23058 return 0; 23059 ; 23060 return 0; 23061} 23062_ACEOF 23063rm -f conftest.$ac_objext 23064if { (ac_try="$ac_compile" 23065case "(($ac_try" in 23066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23067 *) ac_try_echo=$ac_try;; 23068esac 23069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23070 (eval "$ac_compile") 2>conftest.er1 23071 ac_status=$? 23072 grep -v '^ *+' conftest.er1 >conftest.err 23073 rm -f conftest.er1 23074 cat conftest.err >&5 23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23076 (exit $ac_status); } && { 23077 test -z "$ac_c_werror_flag" || 23078 test ! -s conftest.err 23079 } && test -s conftest.$ac_objext; then 23080 ac_cv_type_struct_timespec=yes 23081else 23082 echo "$as_me: failed program was:" >&5 23083sed 's/^/| /' conftest.$ac_ext >&5 23084 23085 ac_cv_type_struct_timespec=no 23086fi 23087 23088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23089fi 23090{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5 23091echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; } 23092if test $ac_cv_type_struct_timespec = yes; then 23093 23094cat >>confdefs.h <<_ACEOF 23095#define HAVE_STRUCT_TIMESPEC 1 23096_ACEOF 23097 23098 23099fi 23100 23101 23102# We need int64_t or else certian parts of the compile will fail. 23103if test "x$ac_cv_have_int64_t" = "xno" && \ 23104 test "x$ac_cv_sizeof_long_int" != "x8" && \ 23105 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then 23106 echo "OpenSSH requires int64_t support. Contact your vendor or install" 23107 echo "an alternative compiler (I.E., GCC) before continuing." 23108 echo "" 23109 exit 1; 23110else 23111 if test "$cross_compiling" = yes; then 23112 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 23113echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} 23114 23115else 23116 cat >conftest.$ac_ext <<_ACEOF 23117/* confdefs.h. */ 23118_ACEOF 23119cat confdefs.h >>conftest.$ac_ext 23120cat >>conftest.$ac_ext <<_ACEOF 23121/* end confdefs.h. */ 23122 23123#include <stdio.h> 23124#include <string.h> 23125#ifdef HAVE_SNPRINTF 23126main() 23127{ 23128 char buf[50]; 23129 char expected_out[50]; 23130 int mazsize = 50 ; 23131#if (SIZEOF_LONG_INT == 8) 23132 long int num = 0x7fffffffffffffff; 23133#else 23134 long long num = 0x7fffffffffffffffll; 23135#endif 23136 strcpy(expected_out, "9223372036854775807"); 23137 snprintf(buf, mazsize, "%lld", num); 23138 if(strcmp(buf, expected_out) != 0) 23139 exit(1); 23140 exit(0); 23141} 23142#else 23143main() { exit(0); } 23144#endif 23145 23146_ACEOF 23147rm -f conftest$ac_exeext 23148if { (ac_try="$ac_link" 23149case "(($ac_try" in 23150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23151 *) ac_try_echo=$ac_try;; 23152esac 23153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23154 (eval "$ac_link") 2>&5 23155 ac_status=$? 23156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 23158 { (case "(($ac_try" in 23159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23160 *) ac_try_echo=$ac_try;; 23161esac 23162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23163 (eval "$ac_try") 2>&5 23164 ac_status=$? 23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23166 (exit $ac_status); }; }; then 23167 true 23168else 23169 echo "$as_me: program exited with status $ac_status" >&5 23170echo "$as_me: failed program was:" >&5 23171sed 's/^/| /' conftest.$ac_ext >&5 23172 23173( exit $ac_status ) 23174 cat >>confdefs.h <<\_ACEOF 23175#define BROKEN_SNPRINTF 1 23176_ACEOF 23177 23178fi 23179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 23180fi 23181 23182 23183fi 23184 23185 23186# look for field 'ut_host' in header 'utmp.h' 23187 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 23188 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host 23189 { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5 23190echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; } 23191 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then 23192 echo $ECHO_N "(cached) $ECHO_C" >&6 23193else 23194 23195 cat >conftest.$ac_ext <<_ACEOF 23196/* confdefs.h. */ 23197_ACEOF 23198cat confdefs.h >>conftest.$ac_ext 23199cat >>conftest.$ac_ext <<_ACEOF 23200/* end confdefs.h. */ 23201#include <utmp.h> 23202 23203_ACEOF 23204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23205 $EGREP "ut_host" >/dev/null 2>&1; then 23206 eval "$ossh_varname=yes" 23207else 23208 eval "$ossh_varname=no" 23209fi 23210rm -f conftest* 23211 23212fi 23213 23214 ossh_result=`eval 'echo $'"$ossh_varname"` 23215 if test -n "`echo $ossh_varname`"; then 23216 { echo "$as_me:$LINENO: result: $ossh_result" >&5 23217echo "${ECHO_T}$ossh_result" >&6; } 23218 if test "x$ossh_result" = "xyes"; then 23219 23220cat >>confdefs.h <<\_ACEOF 23221#define HAVE_HOST_IN_UTMP 1 23222_ACEOF 23223 23224 fi 23225 else 23226 { echo "$as_me:$LINENO: result: no" >&5 23227echo "${ECHO_T}no" >&6; } 23228 fi 23229 23230 23231# look for field 'ut_host' in header 'utmpx.h' 23232 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 23233 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host 23234 { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5 23235echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; } 23236 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then 23237 echo $ECHO_N "(cached) $ECHO_C" >&6 23238else 23239 23240 cat >conftest.$ac_ext <<_ACEOF 23241/* confdefs.h. */ 23242_ACEOF 23243cat confdefs.h >>conftest.$ac_ext 23244cat >>conftest.$ac_ext <<_ACEOF 23245/* end confdefs.h. */ 23246#include <utmpx.h> 23247 23248_ACEOF 23249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23250 $EGREP "ut_host" >/dev/null 2>&1; then 23251 eval "$ossh_varname=yes" 23252else 23253 eval "$ossh_varname=no" 23254fi 23255rm -f conftest* 23256 23257fi 23258 23259 ossh_result=`eval 'echo $'"$ossh_varname"` 23260 if test -n "`echo $ossh_varname`"; then 23261 { echo "$as_me:$LINENO: result: $ossh_result" >&5 23262echo "${ECHO_T}$ossh_result" >&6; } 23263 if test "x$ossh_result" = "xyes"; then 23264 23265cat >>confdefs.h <<\_ACEOF 23266#define HAVE_HOST_IN_UTMPX 1 23267_ACEOF 23268 23269 fi 23270 else 23271 { echo "$as_me:$LINENO: result: no" >&5 23272echo "${ECHO_T}no" >&6; } 23273 fi 23274 23275 23276# look for field 'syslen' in header 'utmpx.h' 23277 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 23278 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen 23279 { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5 23280echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; } 23281 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then 23282 echo $ECHO_N "(cached) $ECHO_C" >&6 23283else 23284 23285 cat >conftest.$ac_ext <<_ACEOF 23286/* confdefs.h. */ 23287_ACEOF 23288cat confdefs.h >>conftest.$ac_ext 23289cat >>conftest.$ac_ext <<_ACEOF 23290/* end confdefs.h. */ 23291#include <utmpx.h> 23292 23293_ACEOF 23294if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23295 $EGREP "syslen" >/dev/null 2>&1; then 23296 eval "$ossh_varname=yes" 23297else 23298 eval "$ossh_varname=no" 23299fi 23300rm -f conftest* 23301 23302fi 23303 23304 ossh_result=`eval 'echo $'"$ossh_varname"` 23305 if test -n "`echo $ossh_varname`"; then 23306 { echo "$as_me:$LINENO: result: $ossh_result" >&5 23307echo "${ECHO_T}$ossh_result" >&6; } 23308 if test "x$ossh_result" = "xyes"; then 23309 23310cat >>confdefs.h <<\_ACEOF 23311#define HAVE_SYSLEN_IN_UTMPX 1 23312_ACEOF 23313 23314 fi 23315 else 23316 { echo "$as_me:$LINENO: result: no" >&5 23317echo "${ECHO_T}no" >&6; } 23318 fi 23319 23320 23321# look for field 'ut_pid' in header 'utmp.h' 23322 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 23323 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid 23324 { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5 23325echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; } 23326 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then 23327 echo $ECHO_N "(cached) $ECHO_C" >&6 23328else 23329 23330 cat >conftest.$ac_ext <<_ACEOF 23331/* confdefs.h. */ 23332_ACEOF 23333cat confdefs.h >>conftest.$ac_ext 23334cat >>conftest.$ac_ext <<_ACEOF 23335/* end confdefs.h. */ 23336#include <utmp.h> 23337 23338_ACEOF 23339if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23340 $EGREP "ut_pid" >/dev/null 2>&1; then 23341 eval "$ossh_varname=yes" 23342else 23343 eval "$ossh_varname=no" 23344fi 23345rm -f conftest* 23346 23347fi 23348 23349 ossh_result=`eval 'echo $'"$ossh_varname"` 23350 if test -n "`echo $ossh_varname`"; then 23351 { echo "$as_me:$LINENO: result: $ossh_result" >&5 23352echo "${ECHO_T}$ossh_result" >&6; } 23353 if test "x$ossh_result" = "xyes"; then 23354 23355cat >>confdefs.h <<\_ACEOF 23356#define HAVE_PID_IN_UTMP 1 23357_ACEOF 23358 23359 fi 23360 else 23361 { echo "$as_me:$LINENO: result: no" >&5 23362echo "${ECHO_T}no" >&6; } 23363 fi 23364 23365 23366# look for field 'ut_type' in header 'utmp.h' 23367 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 23368 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type 23369 { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5 23370echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; } 23371 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then 23372 echo $ECHO_N "(cached) $ECHO_C" >&6 23373else 23374 23375 cat >conftest.$ac_ext <<_ACEOF 23376/* confdefs.h. */ 23377_ACEOF 23378cat confdefs.h >>conftest.$ac_ext 23379cat >>conftest.$ac_ext <<_ACEOF 23380/* end confdefs.h. */ 23381#include <utmp.h> 23382 23383_ACEOF 23384if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23385 $EGREP "ut_type" >/dev/null 2>&1; then 23386 eval "$ossh_varname=yes" 23387else 23388 eval "$ossh_varname=no" 23389fi 23390rm -f conftest* 23391 23392fi 23393 23394 ossh_result=`eval 'echo $'"$ossh_varname"` 23395 if test -n "`echo $ossh_varname`"; then 23396 { echo "$as_me:$LINENO: result: $ossh_result" >&5 23397echo "${ECHO_T}$ossh_result" >&6; } 23398 if test "x$ossh_result" = "xyes"; then 23399 23400cat >>confdefs.h <<\_ACEOF 23401#define HAVE_TYPE_IN_UTMP 1 23402_ACEOF 23403 23404 fi 23405 else 23406 { echo "$as_me:$LINENO: result: no" >&5 23407echo "${ECHO_T}no" >&6; } 23408 fi 23409 23410 23411# look for field 'ut_type' in header 'utmpx.h' 23412 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 23413 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type 23414 { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5 23415echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; } 23416 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then 23417 echo $ECHO_N "(cached) $ECHO_C" >&6 23418else 23419 23420 cat >conftest.$ac_ext <<_ACEOF 23421/* confdefs.h. */ 23422_ACEOF 23423cat confdefs.h >>conftest.$ac_ext 23424cat >>conftest.$ac_ext <<_ACEOF 23425/* end confdefs.h. */ 23426#include <utmpx.h> 23427 23428_ACEOF 23429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23430 $EGREP "ut_type" >/dev/null 2>&1; then 23431 eval "$ossh_varname=yes" 23432else 23433 eval "$ossh_varname=no" 23434fi 23435rm -f conftest* 23436 23437fi 23438 23439 ossh_result=`eval 'echo $'"$ossh_varname"` 23440 if test -n "`echo $ossh_varname`"; then 23441 { echo "$as_me:$LINENO: result: $ossh_result" >&5 23442echo "${ECHO_T}$ossh_result" >&6; } 23443 if test "x$ossh_result" = "xyes"; then 23444 23445cat >>confdefs.h <<\_ACEOF 23446#define HAVE_TYPE_IN_UTMPX 1 23447_ACEOF 23448 23449 fi 23450 else 23451 { echo "$as_me:$LINENO: result: no" >&5 23452echo "${ECHO_T}no" >&6; } 23453 fi 23454 23455 23456# look for field 'ut_tv' in header 'utmp.h' 23457 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 23458 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv 23459 { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5 23460echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; } 23461 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then 23462 echo $ECHO_N "(cached) $ECHO_C" >&6 23463else 23464 23465 cat >conftest.$ac_ext <<_ACEOF 23466/* confdefs.h. */ 23467_ACEOF 23468cat confdefs.h >>conftest.$ac_ext 23469cat >>conftest.$ac_ext <<_ACEOF 23470/* end confdefs.h. */ 23471#include <utmp.h> 23472 23473_ACEOF 23474if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23475 $EGREP "ut_tv" >/dev/null 2>&1; then 23476 eval "$ossh_varname=yes" 23477else 23478 eval "$ossh_varname=no" 23479fi 23480rm -f conftest* 23481 23482fi 23483 23484 ossh_result=`eval 'echo $'"$ossh_varname"` 23485 if test -n "`echo $ossh_varname`"; then 23486 { echo "$as_me:$LINENO: result: $ossh_result" >&5 23487echo "${ECHO_T}$ossh_result" >&6; } 23488 if test "x$ossh_result" = "xyes"; then 23489 23490cat >>confdefs.h <<\_ACEOF 23491#define HAVE_TV_IN_UTMP 1 23492_ACEOF 23493 23494 fi 23495 else 23496 { echo "$as_me:$LINENO: result: no" >&5 23497echo "${ECHO_T}no" >&6; } 23498 fi 23499 23500 23501# look for field 'ut_id' in header 'utmp.h' 23502 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 23503 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id 23504 { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5 23505echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; } 23506 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then 23507 echo $ECHO_N "(cached) $ECHO_C" >&6 23508else 23509 23510 cat >conftest.$ac_ext <<_ACEOF 23511/* confdefs.h. */ 23512_ACEOF 23513cat confdefs.h >>conftest.$ac_ext 23514cat >>conftest.$ac_ext <<_ACEOF 23515/* end confdefs.h. */ 23516#include <utmp.h> 23517 23518_ACEOF 23519if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23520 $EGREP "ut_id" >/dev/null 2>&1; then 23521 eval "$ossh_varname=yes" 23522else 23523 eval "$ossh_varname=no" 23524fi 23525rm -f conftest* 23526 23527fi 23528 23529 ossh_result=`eval 'echo $'"$ossh_varname"` 23530 if test -n "`echo $ossh_varname`"; then 23531 { echo "$as_me:$LINENO: result: $ossh_result" >&5 23532echo "${ECHO_T}$ossh_result" >&6; } 23533 if test "x$ossh_result" = "xyes"; then 23534 23535cat >>confdefs.h <<\_ACEOF 23536#define HAVE_ID_IN_UTMP 1 23537_ACEOF 23538 23539 fi 23540 else 23541 { echo "$as_me:$LINENO: result: no" >&5 23542echo "${ECHO_T}no" >&6; } 23543 fi 23544 23545 23546# look for field 'ut_id' in header 'utmpx.h' 23547 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 23548 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id 23549 { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5 23550echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; } 23551 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then 23552 echo $ECHO_N "(cached) $ECHO_C" >&6 23553else 23554 23555 cat >conftest.$ac_ext <<_ACEOF 23556/* confdefs.h. */ 23557_ACEOF 23558cat confdefs.h >>conftest.$ac_ext 23559cat >>conftest.$ac_ext <<_ACEOF 23560/* end confdefs.h. */ 23561#include <utmpx.h> 23562 23563_ACEOF 23564if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23565 $EGREP "ut_id" >/dev/null 2>&1; then 23566 eval "$ossh_varname=yes" 23567else 23568 eval "$ossh_varname=no" 23569fi 23570rm -f conftest* 23571 23572fi 23573 23574 ossh_result=`eval 'echo $'"$ossh_varname"` 23575 if test -n "`echo $ossh_varname`"; then 23576 { echo "$as_me:$LINENO: result: $ossh_result" >&5 23577echo "${ECHO_T}$ossh_result" >&6; } 23578 if test "x$ossh_result" = "xyes"; then 23579 23580cat >>confdefs.h <<\_ACEOF 23581#define HAVE_ID_IN_UTMPX 1 23582_ACEOF 23583 23584 fi 23585 else 23586 { echo "$as_me:$LINENO: result: no" >&5 23587echo "${ECHO_T}no" >&6; } 23588 fi 23589 23590 23591# look for field 'ut_addr' in header 'utmp.h' 23592 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 23593 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr 23594 { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5 23595echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; } 23596 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then 23597 echo $ECHO_N "(cached) $ECHO_C" >&6 23598else 23599 23600 cat >conftest.$ac_ext <<_ACEOF 23601/* confdefs.h. */ 23602_ACEOF 23603cat confdefs.h >>conftest.$ac_ext 23604cat >>conftest.$ac_ext <<_ACEOF 23605/* end confdefs.h. */ 23606#include <utmp.h> 23607 23608_ACEOF 23609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23610 $EGREP "ut_addr" >/dev/null 2>&1; then 23611 eval "$ossh_varname=yes" 23612else 23613 eval "$ossh_varname=no" 23614fi 23615rm -f conftest* 23616 23617fi 23618 23619 ossh_result=`eval 'echo $'"$ossh_varname"` 23620 if test -n "`echo $ossh_varname`"; then 23621 { echo "$as_me:$LINENO: result: $ossh_result" >&5 23622echo "${ECHO_T}$ossh_result" >&6; } 23623 if test "x$ossh_result" = "xyes"; then 23624 23625cat >>confdefs.h <<\_ACEOF 23626#define HAVE_ADDR_IN_UTMP 1 23627_ACEOF 23628 23629 fi 23630 else 23631 { echo "$as_me:$LINENO: result: no" >&5 23632echo "${ECHO_T}no" >&6; } 23633 fi 23634 23635 23636# look for field 'ut_addr' in header 'utmpx.h' 23637 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 23638 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr 23639 { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5 23640echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; } 23641 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then 23642 echo $ECHO_N "(cached) $ECHO_C" >&6 23643else 23644 23645 cat >conftest.$ac_ext <<_ACEOF 23646/* confdefs.h. */ 23647_ACEOF 23648cat confdefs.h >>conftest.$ac_ext 23649cat >>conftest.$ac_ext <<_ACEOF 23650/* end confdefs.h. */ 23651#include <utmpx.h> 23652 23653_ACEOF 23654if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23655 $EGREP "ut_addr" >/dev/null 2>&1; then 23656 eval "$ossh_varname=yes" 23657else 23658 eval "$ossh_varname=no" 23659fi 23660rm -f conftest* 23661 23662fi 23663 23664 ossh_result=`eval 'echo $'"$ossh_varname"` 23665 if test -n "`echo $ossh_varname`"; then 23666 { echo "$as_me:$LINENO: result: $ossh_result" >&5 23667echo "${ECHO_T}$ossh_result" >&6; } 23668 if test "x$ossh_result" = "xyes"; then 23669 23670cat >>confdefs.h <<\_ACEOF 23671#define HAVE_ADDR_IN_UTMPX 1 23672_ACEOF 23673 23674 fi 23675 else 23676 { echo "$as_me:$LINENO: result: no" >&5 23677echo "${ECHO_T}no" >&6; } 23678 fi 23679 23680 23681# look for field 'ut_addr_v6' in header 'utmp.h' 23682 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 23683 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 23684 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5 23685echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; } 23686 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then 23687 echo $ECHO_N "(cached) $ECHO_C" >&6 23688else 23689 23690 cat >conftest.$ac_ext <<_ACEOF 23691/* confdefs.h. */ 23692_ACEOF 23693cat confdefs.h >>conftest.$ac_ext 23694cat >>conftest.$ac_ext <<_ACEOF 23695/* end confdefs.h. */ 23696#include <utmp.h> 23697 23698_ACEOF 23699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23700 $EGREP "ut_addr_v6" >/dev/null 2>&1; then 23701 eval "$ossh_varname=yes" 23702else 23703 eval "$ossh_varname=no" 23704fi 23705rm -f conftest* 23706 23707fi 23708 23709 ossh_result=`eval 'echo $'"$ossh_varname"` 23710 if test -n "`echo $ossh_varname`"; then 23711 { echo "$as_me:$LINENO: result: $ossh_result" >&5 23712echo "${ECHO_T}$ossh_result" >&6; } 23713 if test "x$ossh_result" = "xyes"; then 23714 23715cat >>confdefs.h <<\_ACEOF 23716#define HAVE_ADDR_V6_IN_UTMP 1 23717_ACEOF 23718 23719 fi 23720 else 23721 { echo "$as_me:$LINENO: result: no" >&5 23722echo "${ECHO_T}no" >&6; } 23723 fi 23724 23725 23726# look for field 'ut_addr_v6' in header 'utmpx.h' 23727 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 23728 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 23729 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5 23730echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; } 23731 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then 23732 echo $ECHO_N "(cached) $ECHO_C" >&6 23733else 23734 23735 cat >conftest.$ac_ext <<_ACEOF 23736/* confdefs.h. */ 23737_ACEOF 23738cat confdefs.h >>conftest.$ac_ext 23739cat >>conftest.$ac_ext <<_ACEOF 23740/* end confdefs.h. */ 23741#include <utmpx.h> 23742 23743_ACEOF 23744if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23745 $EGREP "ut_addr_v6" >/dev/null 2>&1; then 23746 eval "$ossh_varname=yes" 23747else 23748 eval "$ossh_varname=no" 23749fi 23750rm -f conftest* 23751 23752fi 23753 23754 ossh_result=`eval 'echo $'"$ossh_varname"` 23755 if test -n "`echo $ossh_varname`"; then 23756 { echo "$as_me:$LINENO: result: $ossh_result" >&5 23757echo "${ECHO_T}$ossh_result" >&6; } 23758 if test "x$ossh_result" = "xyes"; then 23759 23760cat >>confdefs.h <<\_ACEOF 23761#define HAVE_ADDR_V6_IN_UTMPX 1 23762_ACEOF 23763 23764 fi 23765 else 23766 { echo "$as_me:$LINENO: result: no" >&5 23767echo "${ECHO_T}no" >&6; } 23768 fi 23769 23770 23771# look for field 'ut_exit' in header 'utmp.h' 23772 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 23773 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit 23774 { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5 23775echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; } 23776 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then 23777 echo $ECHO_N "(cached) $ECHO_C" >&6 23778else 23779 23780 cat >conftest.$ac_ext <<_ACEOF 23781/* confdefs.h. */ 23782_ACEOF 23783cat confdefs.h >>conftest.$ac_ext 23784cat >>conftest.$ac_ext <<_ACEOF 23785/* end confdefs.h. */ 23786#include <utmp.h> 23787 23788_ACEOF 23789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23790 $EGREP "ut_exit" >/dev/null 2>&1; then 23791 eval "$ossh_varname=yes" 23792else 23793 eval "$ossh_varname=no" 23794fi 23795rm -f conftest* 23796 23797fi 23798 23799 ossh_result=`eval 'echo $'"$ossh_varname"` 23800 if test -n "`echo $ossh_varname`"; then 23801 { echo "$as_me:$LINENO: result: $ossh_result" >&5 23802echo "${ECHO_T}$ossh_result" >&6; } 23803 if test "x$ossh_result" = "xyes"; then 23804 23805cat >>confdefs.h <<\_ACEOF 23806#define HAVE_EXIT_IN_UTMP 1 23807_ACEOF 23808 23809 fi 23810 else 23811 { echo "$as_me:$LINENO: result: no" >&5 23812echo "${ECHO_T}no" >&6; } 23813 fi 23814 23815 23816# look for field 'ut_time' in header 'utmp.h' 23817 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 23818 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time 23819 { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5 23820echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; } 23821 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then 23822 echo $ECHO_N "(cached) $ECHO_C" >&6 23823else 23824 23825 cat >conftest.$ac_ext <<_ACEOF 23826/* confdefs.h. */ 23827_ACEOF 23828cat confdefs.h >>conftest.$ac_ext 23829cat >>conftest.$ac_ext <<_ACEOF 23830/* end confdefs.h. */ 23831#include <utmp.h> 23832 23833_ACEOF 23834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23835 $EGREP "ut_time" >/dev/null 2>&1; then 23836 eval "$ossh_varname=yes" 23837else 23838 eval "$ossh_varname=no" 23839fi 23840rm -f conftest* 23841 23842fi 23843 23844 ossh_result=`eval 'echo $'"$ossh_varname"` 23845 if test -n "`echo $ossh_varname`"; then 23846 { echo "$as_me:$LINENO: result: $ossh_result" >&5 23847echo "${ECHO_T}$ossh_result" >&6; } 23848 if test "x$ossh_result" = "xyes"; then 23849 23850cat >>confdefs.h <<\_ACEOF 23851#define HAVE_TIME_IN_UTMP 1 23852_ACEOF 23853 23854 fi 23855 else 23856 { echo "$as_me:$LINENO: result: no" >&5 23857echo "${ECHO_T}no" >&6; } 23858 fi 23859 23860 23861# look for field 'ut_time' in header 'utmpx.h' 23862 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 23863 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time 23864 { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5 23865echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; } 23866 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then 23867 echo $ECHO_N "(cached) $ECHO_C" >&6 23868else 23869 23870 cat >conftest.$ac_ext <<_ACEOF 23871/* confdefs.h. */ 23872_ACEOF 23873cat confdefs.h >>conftest.$ac_ext 23874cat >>conftest.$ac_ext <<_ACEOF 23875/* end confdefs.h. */ 23876#include <utmpx.h> 23877 23878_ACEOF 23879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23880 $EGREP "ut_time" >/dev/null 2>&1; then 23881 eval "$ossh_varname=yes" 23882else 23883 eval "$ossh_varname=no" 23884fi 23885rm -f conftest* 23886 23887fi 23888 23889 ossh_result=`eval 'echo $'"$ossh_varname"` 23890 if test -n "`echo $ossh_varname`"; then 23891 { echo "$as_me:$LINENO: result: $ossh_result" >&5 23892echo "${ECHO_T}$ossh_result" >&6; } 23893 if test "x$ossh_result" = "xyes"; then 23894 23895cat >>confdefs.h <<\_ACEOF 23896#define HAVE_TIME_IN_UTMPX 1 23897_ACEOF 23898 23899 fi 23900 else 23901 { echo "$as_me:$LINENO: result: no" >&5 23902echo "${ECHO_T}no" >&6; } 23903 fi 23904 23905 23906# look for field 'ut_tv' in header 'utmpx.h' 23907 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 23908 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv 23909 { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5 23910echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; } 23911 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then 23912 echo $ECHO_N "(cached) $ECHO_C" >&6 23913else 23914 23915 cat >conftest.$ac_ext <<_ACEOF 23916/* confdefs.h. */ 23917_ACEOF 23918cat confdefs.h >>conftest.$ac_ext 23919cat >>conftest.$ac_ext <<_ACEOF 23920/* end confdefs.h. */ 23921#include <utmpx.h> 23922 23923_ACEOF 23924if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23925 $EGREP "ut_tv" >/dev/null 2>&1; then 23926 eval "$ossh_varname=yes" 23927else 23928 eval "$ossh_varname=no" 23929fi 23930rm -f conftest* 23931 23932fi 23933 23934 ossh_result=`eval 'echo $'"$ossh_varname"` 23935 if test -n "`echo $ossh_varname`"; then 23936 { echo "$as_me:$LINENO: result: $ossh_result" >&5 23937echo "${ECHO_T}$ossh_result" >&6; } 23938 if test "x$ossh_result" = "xyes"; then 23939 23940cat >>confdefs.h <<\_ACEOF 23941#define HAVE_TV_IN_UTMPX 1 23942_ACEOF 23943 23944 fi 23945 else 23946 { echo "$as_me:$LINENO: result: no" >&5 23947echo "${ECHO_T}no" >&6; } 23948 fi 23949 23950 23951{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 23952echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; } 23953if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then 23954 echo $ECHO_N "(cached) $ECHO_C" >&6 23955else 23956 cat >conftest.$ac_ext <<_ACEOF 23957/* confdefs.h. */ 23958_ACEOF 23959cat confdefs.h >>conftest.$ac_ext 23960cat >>conftest.$ac_ext <<_ACEOF 23961/* end confdefs.h. */ 23962$ac_includes_default 23963int 23964main () 23965{ 23966static struct stat ac_aggr; 23967if (ac_aggr.st_blksize) 23968return 0; 23969 ; 23970 return 0; 23971} 23972_ACEOF 23973rm -f conftest.$ac_objext 23974if { (ac_try="$ac_compile" 23975case "(($ac_try" in 23976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23977 *) ac_try_echo=$ac_try;; 23978esac 23979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23980 (eval "$ac_compile") 2>conftest.er1 23981 ac_status=$? 23982 grep -v '^ *+' conftest.er1 >conftest.err 23983 rm -f conftest.er1 23984 cat conftest.err >&5 23985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23986 (exit $ac_status); } && { 23987 test -z "$ac_c_werror_flag" || 23988 test ! -s conftest.err 23989 } && test -s conftest.$ac_objext; then 23990 ac_cv_member_struct_stat_st_blksize=yes 23991else 23992 echo "$as_me: failed program was:" >&5 23993sed 's/^/| /' conftest.$ac_ext >&5 23994 23995 cat >conftest.$ac_ext <<_ACEOF 23996/* confdefs.h. */ 23997_ACEOF 23998cat confdefs.h >>conftest.$ac_ext 23999cat >>conftest.$ac_ext <<_ACEOF 24000/* end confdefs.h. */ 24001$ac_includes_default 24002int 24003main () 24004{ 24005static struct stat ac_aggr; 24006if (sizeof ac_aggr.st_blksize) 24007return 0; 24008 ; 24009 return 0; 24010} 24011_ACEOF 24012rm -f conftest.$ac_objext 24013if { (ac_try="$ac_compile" 24014case "(($ac_try" in 24015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24016 *) ac_try_echo=$ac_try;; 24017esac 24018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24019 (eval "$ac_compile") 2>conftest.er1 24020 ac_status=$? 24021 grep -v '^ *+' conftest.er1 >conftest.err 24022 rm -f conftest.er1 24023 cat conftest.err >&5 24024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24025 (exit $ac_status); } && { 24026 test -z "$ac_c_werror_flag" || 24027 test ! -s conftest.err 24028 } && test -s conftest.$ac_objext; then 24029 ac_cv_member_struct_stat_st_blksize=yes 24030else 24031 echo "$as_me: failed program was:" >&5 24032sed 's/^/| /' conftest.$ac_ext >&5 24033 24034 ac_cv_member_struct_stat_st_blksize=no 24035fi 24036 24037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24038fi 24039 24040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24041fi 24042{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 24043echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } 24044if test $ac_cv_member_struct_stat_st_blksize = yes; then 24045 24046cat >>confdefs.h <<_ACEOF 24047#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 24048_ACEOF 24049 24050 24051fi 24052 24053{ echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5 24054echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; } 24055if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then 24056 echo $ECHO_N "(cached) $ECHO_C" >&6 24057else 24058 cat >conftest.$ac_ext <<_ACEOF 24059/* confdefs.h. */ 24060_ACEOF 24061cat confdefs.h >>conftest.$ac_ext 24062cat >>conftest.$ac_ext <<_ACEOF 24063/* end confdefs.h. */ 24064 24065#include <stdio.h> 24066#if HAVE_SYS_TYPES_H 24067# include <sys/types.h> 24068#endif 24069#include <netinet/in.h> 24070#include <arpa/nameser.h> 24071#include <resolv.h> 24072 24073 24074int 24075main () 24076{ 24077static struct __res_state ac_aggr; 24078if (ac_aggr.retrans) 24079return 0; 24080 ; 24081 return 0; 24082} 24083_ACEOF 24084rm -f conftest.$ac_objext 24085if { (ac_try="$ac_compile" 24086case "(($ac_try" in 24087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24088 *) ac_try_echo=$ac_try;; 24089esac 24090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24091 (eval "$ac_compile") 2>conftest.er1 24092 ac_status=$? 24093 grep -v '^ *+' conftest.er1 >conftest.err 24094 rm -f conftest.er1 24095 cat conftest.err >&5 24096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24097 (exit $ac_status); } && { 24098 test -z "$ac_c_werror_flag" || 24099 test ! -s conftest.err 24100 } && test -s conftest.$ac_objext; then 24101 ac_cv_member_struct___res_state_retrans=yes 24102else 24103 echo "$as_me: failed program was:" >&5 24104sed 's/^/| /' conftest.$ac_ext >&5 24105 24106 cat >conftest.$ac_ext <<_ACEOF 24107/* confdefs.h. */ 24108_ACEOF 24109cat confdefs.h >>conftest.$ac_ext 24110cat >>conftest.$ac_ext <<_ACEOF 24111/* end confdefs.h. */ 24112 24113#include <stdio.h> 24114#if HAVE_SYS_TYPES_H 24115# include <sys/types.h> 24116#endif 24117#include <netinet/in.h> 24118#include <arpa/nameser.h> 24119#include <resolv.h> 24120 24121 24122int 24123main () 24124{ 24125static struct __res_state ac_aggr; 24126if (sizeof ac_aggr.retrans) 24127return 0; 24128 ; 24129 return 0; 24130} 24131_ACEOF 24132rm -f conftest.$ac_objext 24133if { (ac_try="$ac_compile" 24134case "(($ac_try" in 24135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24136 *) ac_try_echo=$ac_try;; 24137esac 24138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24139 (eval "$ac_compile") 2>conftest.er1 24140 ac_status=$? 24141 grep -v '^ *+' conftest.er1 >conftest.err 24142 rm -f conftest.er1 24143 cat conftest.err >&5 24144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24145 (exit $ac_status); } && { 24146 test -z "$ac_c_werror_flag" || 24147 test ! -s conftest.err 24148 } && test -s conftest.$ac_objext; then 24149 ac_cv_member_struct___res_state_retrans=yes 24150else 24151 echo "$as_me: failed program was:" >&5 24152sed 's/^/| /' conftest.$ac_ext >&5 24153 24154 ac_cv_member_struct___res_state_retrans=no 24155fi 24156 24157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24158fi 24159 24160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24161fi 24162{ echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5 24163echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; } 24164if test $ac_cv_member_struct___res_state_retrans = yes; then 24165 : 24166else 24167 24168cat >>confdefs.h <<\_ACEOF 24169#define __res_state state 24170_ACEOF 24171 24172fi 24173 24174 24175{ echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5 24176echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; } 24177if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then 24178 echo $ECHO_N "(cached) $ECHO_C" >&6 24179else 24180 24181 cat >conftest.$ac_ext <<_ACEOF 24182/* confdefs.h. */ 24183_ACEOF 24184cat confdefs.h >>conftest.$ac_ext 24185cat >>conftest.$ac_ext <<_ACEOF 24186/* end confdefs.h. */ 24187 24188#include <sys/types.h> 24189#include <sys/socket.h> 24190 24191int 24192main () 24193{ 24194 struct sockaddr_storage s; s.ss_family = 1; 24195 ; 24196 return 0; 24197} 24198_ACEOF 24199rm -f conftest.$ac_objext 24200if { (ac_try="$ac_compile" 24201case "(($ac_try" in 24202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24203 *) ac_try_echo=$ac_try;; 24204esac 24205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24206 (eval "$ac_compile") 2>conftest.er1 24207 ac_status=$? 24208 grep -v '^ *+' conftest.er1 >conftest.err 24209 rm -f conftest.er1 24210 cat conftest.err >&5 24211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24212 (exit $ac_status); } && { 24213 test -z "$ac_c_werror_flag" || 24214 test ! -s conftest.err 24215 } && test -s conftest.$ac_objext; then 24216 ac_cv_have_ss_family_in_struct_ss="yes" 24217else 24218 echo "$as_me: failed program was:" >&5 24219sed 's/^/| /' conftest.$ac_ext >&5 24220 24221 ac_cv_have_ss_family_in_struct_ss="no" 24222fi 24223 24224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24225 24226fi 24227{ echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5 24228echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; } 24229if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then 24230 24231cat >>confdefs.h <<\_ACEOF 24232#define HAVE_SS_FAMILY_IN_SS 1 24233_ACEOF 24234 24235fi 24236 24237{ echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5 24238echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; } 24239if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then 24240 echo $ECHO_N "(cached) $ECHO_C" >&6 24241else 24242 24243 cat >conftest.$ac_ext <<_ACEOF 24244/* confdefs.h. */ 24245_ACEOF 24246cat confdefs.h >>conftest.$ac_ext 24247cat >>conftest.$ac_ext <<_ACEOF 24248/* end confdefs.h. */ 24249 24250#include <sys/types.h> 24251#include <sys/socket.h> 24252 24253int 24254main () 24255{ 24256 struct sockaddr_storage s; s.__ss_family = 1; 24257 ; 24258 return 0; 24259} 24260_ACEOF 24261rm -f conftest.$ac_objext 24262if { (ac_try="$ac_compile" 24263case "(($ac_try" in 24264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24265 *) ac_try_echo=$ac_try;; 24266esac 24267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24268 (eval "$ac_compile") 2>conftest.er1 24269 ac_status=$? 24270 grep -v '^ *+' conftest.er1 >conftest.err 24271 rm -f conftest.er1 24272 cat conftest.err >&5 24273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24274 (exit $ac_status); } && { 24275 test -z "$ac_c_werror_flag" || 24276 test ! -s conftest.err 24277 } && test -s conftest.$ac_objext; then 24278 ac_cv_have___ss_family_in_struct_ss="yes" 24279else 24280 echo "$as_me: failed program was:" >&5 24281sed 's/^/| /' conftest.$ac_ext >&5 24282 24283 ac_cv_have___ss_family_in_struct_ss="no" 24284 24285fi 24286 24287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24288 24289fi 24290{ echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5 24291echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; } 24292if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then 24293 24294cat >>confdefs.h <<\_ACEOF 24295#define HAVE___SS_FAMILY_IN_SS 1 24296_ACEOF 24297 24298fi 24299 24300{ echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5 24301echo $ECHO_N "checking for pw_class field in struct passwd... $ECHO_C" >&6; } 24302if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then 24303 echo $ECHO_N "(cached) $ECHO_C" >&6 24304else 24305 24306 cat >conftest.$ac_ext <<_ACEOF 24307/* confdefs.h. */ 24308_ACEOF 24309cat confdefs.h >>conftest.$ac_ext 24310cat >>conftest.$ac_ext <<_ACEOF 24311/* end confdefs.h. */ 24312 24313#include <pwd.h> 24314 24315int 24316main () 24317{ 24318 struct passwd p; p.pw_class = 0; 24319 ; 24320 return 0; 24321} 24322_ACEOF 24323rm -f conftest.$ac_objext 24324if { (ac_try="$ac_compile" 24325case "(($ac_try" in 24326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24327 *) ac_try_echo=$ac_try;; 24328esac 24329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24330 (eval "$ac_compile") 2>conftest.er1 24331 ac_status=$? 24332 grep -v '^ *+' conftest.er1 >conftest.err 24333 rm -f conftest.er1 24334 cat conftest.err >&5 24335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24336 (exit $ac_status); } && { 24337 test -z "$ac_c_werror_flag" || 24338 test ! -s conftest.err 24339 } && test -s conftest.$ac_objext; then 24340 ac_cv_have_pw_class_in_struct_passwd="yes" 24341else 24342 echo "$as_me: failed program was:" >&5 24343sed 's/^/| /' conftest.$ac_ext >&5 24344 24345 ac_cv_have_pw_class_in_struct_passwd="no" 24346 24347fi 24348 24349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24350 24351fi 24352{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5 24353echo "${ECHO_T}$ac_cv_have_pw_class_in_struct_passwd" >&6; } 24354if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then 24355 24356cat >>confdefs.h <<\_ACEOF 24357#define HAVE_PW_CLASS_IN_PASSWD 1 24358_ACEOF 24359 24360fi 24361 24362{ echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5 24363echo $ECHO_N "checking for pw_expire field in struct passwd... $ECHO_C" >&6; } 24364if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then 24365 echo $ECHO_N "(cached) $ECHO_C" >&6 24366else 24367 24368 cat >conftest.$ac_ext <<_ACEOF 24369/* confdefs.h. */ 24370_ACEOF 24371cat confdefs.h >>conftest.$ac_ext 24372cat >>conftest.$ac_ext <<_ACEOF 24373/* end confdefs.h. */ 24374 24375#include <pwd.h> 24376 24377int 24378main () 24379{ 24380 struct passwd p; p.pw_expire = 0; 24381 ; 24382 return 0; 24383} 24384_ACEOF 24385rm -f conftest.$ac_objext 24386if { (ac_try="$ac_compile" 24387case "(($ac_try" in 24388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24389 *) ac_try_echo=$ac_try;; 24390esac 24391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24392 (eval "$ac_compile") 2>conftest.er1 24393 ac_status=$? 24394 grep -v '^ *+' conftest.er1 >conftest.err 24395 rm -f conftest.er1 24396 cat conftest.err >&5 24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24398 (exit $ac_status); } && { 24399 test -z "$ac_c_werror_flag" || 24400 test ! -s conftest.err 24401 } && test -s conftest.$ac_objext; then 24402 ac_cv_have_pw_expire_in_struct_passwd="yes" 24403else 24404 echo "$as_me: failed program was:" >&5 24405sed 's/^/| /' conftest.$ac_ext >&5 24406 24407 ac_cv_have_pw_expire_in_struct_passwd="no" 24408 24409fi 24410 24411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24412 24413fi 24414{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5 24415echo "${ECHO_T}$ac_cv_have_pw_expire_in_struct_passwd" >&6; } 24416if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then 24417 24418cat >>confdefs.h <<\_ACEOF 24419#define HAVE_PW_EXPIRE_IN_PASSWD 1 24420_ACEOF 24421 24422fi 24423 24424{ echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5 24425echo $ECHO_N "checking for pw_change field in struct passwd... $ECHO_C" >&6; } 24426if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then 24427 echo $ECHO_N "(cached) $ECHO_C" >&6 24428else 24429 24430 cat >conftest.$ac_ext <<_ACEOF 24431/* confdefs.h. */ 24432_ACEOF 24433cat confdefs.h >>conftest.$ac_ext 24434cat >>conftest.$ac_ext <<_ACEOF 24435/* end confdefs.h. */ 24436 24437#include <pwd.h> 24438 24439int 24440main () 24441{ 24442 struct passwd p; p.pw_change = 0; 24443 ; 24444 return 0; 24445} 24446_ACEOF 24447rm -f conftest.$ac_objext 24448if { (ac_try="$ac_compile" 24449case "(($ac_try" in 24450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24451 *) ac_try_echo=$ac_try;; 24452esac 24453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24454 (eval "$ac_compile") 2>conftest.er1 24455 ac_status=$? 24456 grep -v '^ *+' conftest.er1 >conftest.err 24457 rm -f conftest.er1 24458 cat conftest.err >&5 24459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24460 (exit $ac_status); } && { 24461 test -z "$ac_c_werror_flag" || 24462 test ! -s conftest.err 24463 } && test -s conftest.$ac_objext; then 24464 ac_cv_have_pw_change_in_struct_passwd="yes" 24465else 24466 echo "$as_me: failed program was:" >&5 24467sed 's/^/| /' conftest.$ac_ext >&5 24468 24469 ac_cv_have_pw_change_in_struct_passwd="no" 24470 24471fi 24472 24473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24474 24475fi 24476{ echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5 24477echo "${ECHO_T}$ac_cv_have_pw_change_in_struct_passwd" >&6; } 24478if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then 24479 24480cat >>confdefs.h <<\_ACEOF 24481#define HAVE_PW_CHANGE_IN_PASSWD 1 24482_ACEOF 24483 24484fi 24485 24486{ echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5 24487echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; } 24488if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then 24489 echo $ECHO_N "(cached) $ECHO_C" >&6 24490else 24491 24492 cat >conftest.$ac_ext <<_ACEOF 24493 24494#include <sys/types.h> 24495#include <sys/socket.h> 24496#include <sys/uio.h> 24497int main() { 24498#ifdef msg_accrights 24499#error "msg_accrights is a macro" 24500exit(1); 24501#endif 24502struct msghdr m; 24503m.msg_accrights = 0; 24504exit(0); 24505} 24506 24507_ACEOF 24508rm -f conftest.$ac_objext 24509if { (ac_try="$ac_compile" 24510case "(($ac_try" in 24511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24512 *) ac_try_echo=$ac_try;; 24513esac 24514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24515 (eval "$ac_compile") 2>conftest.er1 24516 ac_status=$? 24517 grep -v '^ *+' conftest.er1 >conftest.err 24518 rm -f conftest.er1 24519 cat conftest.err >&5 24520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24521 (exit $ac_status); } && { 24522 test -z "$ac_c_werror_flag" || 24523 test ! -s conftest.err 24524 } && test -s conftest.$ac_objext; then 24525 ac_cv_have_accrights_in_msghdr="yes" 24526else 24527 echo "$as_me: failed program was:" >&5 24528sed 's/^/| /' conftest.$ac_ext >&5 24529 24530 ac_cv_have_accrights_in_msghdr="no" 24531 24532fi 24533 24534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24535 24536fi 24537{ echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5 24538echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; } 24539if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then 24540 24541cat >>confdefs.h <<\_ACEOF 24542#define HAVE_ACCRIGHTS_IN_MSGHDR 1 24543_ACEOF 24544 24545fi 24546 24547{ echo "$as_me:$LINENO: checking if f_fsid has val members" >&5 24548echo $ECHO_N "checking if f_fsid has val members... $ECHO_C" >&6; } 24549cat >conftest.$ac_ext <<_ACEOF 24550/* confdefs.h. */ 24551_ACEOF 24552cat confdefs.h >>conftest.$ac_ext 24553cat >>conftest.$ac_ext <<_ACEOF 24554/* end confdefs.h. */ 24555 24556#include <sys/types.h> 24557#include <sys/statvfs.h> 24558int 24559main () 24560{ 24561struct fsid_t t; t.val[0] = 0; 24562 ; 24563 return 0; 24564} 24565_ACEOF 24566rm -f conftest.$ac_objext 24567if { (ac_try="$ac_compile" 24568case "(($ac_try" in 24569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24570 *) ac_try_echo=$ac_try;; 24571esac 24572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24573 (eval "$ac_compile") 2>conftest.er1 24574 ac_status=$? 24575 grep -v '^ *+' conftest.er1 >conftest.err 24576 rm -f conftest.er1 24577 cat conftest.err >&5 24578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24579 (exit $ac_status); } && { 24580 test -z "$ac_c_werror_flag" || 24581 test ! -s conftest.err 24582 } && test -s conftest.$ac_objext; then 24583 { echo "$as_me:$LINENO: result: yes" >&5 24584echo "${ECHO_T}yes" >&6; } 24585 24586cat >>confdefs.h <<\_ACEOF 24587#define FSID_HAS_VAL 1 24588_ACEOF 24589 24590else 24591 echo "$as_me: failed program was:" >&5 24592sed 's/^/| /' conftest.$ac_ext >&5 24593 24594 { echo "$as_me:$LINENO: result: no" >&5 24595echo "${ECHO_T}no" >&6; } 24596 24597fi 24598 24599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24600 24601{ echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5 24602echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; } 24603if test "${ac_cv_have_control_in_msghdr+set}" = set; then 24604 echo $ECHO_N "(cached) $ECHO_C" >&6 24605else 24606 24607 cat >conftest.$ac_ext <<_ACEOF 24608 24609#include <sys/types.h> 24610#include <sys/socket.h> 24611#include <sys/uio.h> 24612int main() { 24613#ifdef msg_control 24614#error "msg_control is a macro" 24615exit(1); 24616#endif 24617struct msghdr m; 24618m.msg_control = 0; 24619exit(0); 24620} 24621 24622_ACEOF 24623rm -f conftest.$ac_objext 24624if { (ac_try="$ac_compile" 24625case "(($ac_try" in 24626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24627 *) ac_try_echo=$ac_try;; 24628esac 24629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24630 (eval "$ac_compile") 2>conftest.er1 24631 ac_status=$? 24632 grep -v '^ *+' conftest.er1 >conftest.err 24633 rm -f conftest.er1 24634 cat conftest.err >&5 24635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24636 (exit $ac_status); } && { 24637 test -z "$ac_c_werror_flag" || 24638 test ! -s conftest.err 24639 } && test -s conftest.$ac_objext; then 24640 ac_cv_have_control_in_msghdr="yes" 24641else 24642 echo "$as_me: failed program was:" >&5 24643sed 's/^/| /' conftest.$ac_ext >&5 24644 24645 ac_cv_have_control_in_msghdr="no" 24646 24647fi 24648 24649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24650 24651fi 24652{ echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5 24653echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; } 24654if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then 24655 24656cat >>confdefs.h <<\_ACEOF 24657#define HAVE_CONTROL_IN_MSGHDR 1 24658_ACEOF 24659 24660fi 24661 24662{ echo "$as_me:$LINENO: checking if libc defines __progname" >&5 24663echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; } 24664if test "${ac_cv_libc_defines___progname+set}" = set; then 24665 echo $ECHO_N "(cached) $ECHO_C" >&6 24666else 24667 24668 cat >conftest.$ac_ext <<_ACEOF 24669/* confdefs.h. */ 24670_ACEOF 24671cat confdefs.h >>conftest.$ac_ext 24672cat >>conftest.$ac_ext <<_ACEOF 24673/* end confdefs.h. */ 24674 24675int 24676main () 24677{ 24678 extern char *__progname; printf("%s", __progname); 24679 ; 24680 return 0; 24681} 24682_ACEOF 24683rm -f conftest.$ac_objext conftest$ac_exeext 24684if { (ac_try="$ac_link" 24685case "(($ac_try" in 24686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24687 *) ac_try_echo=$ac_try;; 24688esac 24689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24690 (eval "$ac_link") 2>conftest.er1 24691 ac_status=$? 24692 grep -v '^ *+' conftest.er1 >conftest.err 24693 rm -f conftest.er1 24694 cat conftest.err >&5 24695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24696 (exit $ac_status); } && { 24697 test -z "$ac_c_werror_flag" || 24698 test ! -s conftest.err 24699 } && test -s conftest$ac_exeext && 24700 $as_test_x conftest$ac_exeext; then 24701 ac_cv_libc_defines___progname="yes" 24702else 24703 echo "$as_me: failed program was:" >&5 24704sed 's/^/| /' conftest.$ac_ext >&5 24705 24706 ac_cv_libc_defines___progname="no" 24707 24708fi 24709 24710rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24711 conftest$ac_exeext conftest.$ac_ext 24712 24713fi 24714{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5 24715echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; } 24716if test "x$ac_cv_libc_defines___progname" = "xyes" ; then 24717 24718cat >>confdefs.h <<\_ACEOF 24719#define HAVE___PROGNAME 1 24720_ACEOF 24721 24722fi 24723 24724{ echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5 24725echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; } 24726if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then 24727 echo $ECHO_N "(cached) $ECHO_C" >&6 24728else 24729 24730 cat >conftest.$ac_ext <<_ACEOF 24731/* confdefs.h. */ 24732_ACEOF 24733cat confdefs.h >>conftest.$ac_ext 24734cat >>conftest.$ac_ext <<_ACEOF 24735/* end confdefs.h. */ 24736 24737#include <stdio.h> 24738 24739int 24740main () 24741{ 24742 printf("%s", __FUNCTION__); 24743 ; 24744 return 0; 24745} 24746_ACEOF 24747rm -f conftest.$ac_objext conftest$ac_exeext 24748if { (ac_try="$ac_link" 24749case "(($ac_try" in 24750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24751 *) ac_try_echo=$ac_try;; 24752esac 24753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24754 (eval "$ac_link") 2>conftest.er1 24755 ac_status=$? 24756 grep -v '^ *+' conftest.er1 >conftest.err 24757 rm -f conftest.er1 24758 cat conftest.err >&5 24759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24760 (exit $ac_status); } && { 24761 test -z "$ac_c_werror_flag" || 24762 test ! -s conftest.err 24763 } && test -s conftest$ac_exeext && 24764 $as_test_x conftest$ac_exeext; then 24765 ac_cv_cc_implements___FUNCTION__="yes" 24766else 24767 echo "$as_me: failed program was:" >&5 24768sed 's/^/| /' conftest.$ac_ext >&5 24769 24770 ac_cv_cc_implements___FUNCTION__="no" 24771 24772fi 24773 24774rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24775 conftest$ac_exeext conftest.$ac_ext 24776 24777fi 24778{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5 24779echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; } 24780if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then 24781 24782cat >>confdefs.h <<\_ACEOF 24783#define HAVE___FUNCTION__ 1 24784_ACEOF 24785 24786fi 24787 24788{ echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5 24789echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; } 24790if test "${ac_cv_cc_implements___func__+set}" = set; then 24791 echo $ECHO_N "(cached) $ECHO_C" >&6 24792else 24793 24794 cat >conftest.$ac_ext <<_ACEOF 24795/* confdefs.h. */ 24796_ACEOF 24797cat confdefs.h >>conftest.$ac_ext 24798cat >>conftest.$ac_ext <<_ACEOF 24799/* end confdefs.h. */ 24800 24801#include <stdio.h> 24802 24803int 24804main () 24805{ 24806 printf("%s", __func__); 24807 ; 24808 return 0; 24809} 24810_ACEOF 24811rm -f conftest.$ac_objext conftest$ac_exeext 24812if { (ac_try="$ac_link" 24813case "(($ac_try" in 24814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24815 *) ac_try_echo=$ac_try;; 24816esac 24817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24818 (eval "$ac_link") 2>conftest.er1 24819 ac_status=$? 24820 grep -v '^ *+' conftest.er1 >conftest.err 24821 rm -f conftest.er1 24822 cat conftest.err >&5 24823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24824 (exit $ac_status); } && { 24825 test -z "$ac_c_werror_flag" || 24826 test ! -s conftest.err 24827 } && test -s conftest$ac_exeext && 24828 $as_test_x conftest$ac_exeext; then 24829 ac_cv_cc_implements___func__="yes" 24830else 24831 echo "$as_me: failed program was:" >&5 24832sed 's/^/| /' conftest.$ac_ext >&5 24833 24834 ac_cv_cc_implements___func__="no" 24835 24836fi 24837 24838rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24839 conftest$ac_exeext conftest.$ac_ext 24840 24841fi 24842{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5 24843echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; } 24844if test "x$ac_cv_cc_implements___func__" = "xyes" ; then 24845 24846cat >>confdefs.h <<\_ACEOF 24847#define HAVE___func__ 1 24848_ACEOF 24849 24850fi 24851 24852{ echo "$as_me:$LINENO: checking whether va_copy exists" >&5 24853echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; } 24854if test "${ac_cv_have_va_copy+set}" = set; then 24855 echo $ECHO_N "(cached) $ECHO_C" >&6 24856else 24857 24858 cat >conftest.$ac_ext <<_ACEOF 24859/* confdefs.h. */ 24860_ACEOF 24861cat confdefs.h >>conftest.$ac_ext 24862cat >>conftest.$ac_ext <<_ACEOF 24863/* end confdefs.h. */ 24864#include <stdarg.h> 24865 va_list x,y; 24866int 24867main () 24868{ 24869va_copy(x,y); 24870 ; 24871 return 0; 24872} 24873_ACEOF 24874rm -f conftest.$ac_objext conftest$ac_exeext 24875if { (ac_try="$ac_link" 24876case "(($ac_try" in 24877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24878 *) ac_try_echo=$ac_try;; 24879esac 24880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24881 (eval "$ac_link") 2>conftest.er1 24882 ac_status=$? 24883 grep -v '^ *+' conftest.er1 >conftest.err 24884 rm -f conftest.er1 24885 cat conftest.err >&5 24886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24887 (exit $ac_status); } && { 24888 test -z "$ac_c_werror_flag" || 24889 test ! -s conftest.err 24890 } && test -s conftest$ac_exeext && 24891 $as_test_x conftest$ac_exeext; then 24892 ac_cv_have_va_copy="yes" 24893else 24894 echo "$as_me: failed program was:" >&5 24895sed 's/^/| /' conftest.$ac_ext >&5 24896 24897 ac_cv_have_va_copy="no" 24898 24899fi 24900 24901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24902 conftest$ac_exeext conftest.$ac_ext 24903 24904fi 24905{ echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5 24906echo "${ECHO_T}$ac_cv_have_va_copy" >&6; } 24907if test "x$ac_cv_have_va_copy" = "xyes" ; then 24908 24909cat >>confdefs.h <<\_ACEOF 24910#define HAVE_VA_COPY 1 24911_ACEOF 24912 24913fi 24914 24915{ echo "$as_me:$LINENO: checking whether __va_copy exists" >&5 24916echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; } 24917if test "${ac_cv_have___va_copy+set}" = set; then 24918 echo $ECHO_N "(cached) $ECHO_C" >&6 24919else 24920 24921 cat >conftest.$ac_ext <<_ACEOF 24922/* confdefs.h. */ 24923_ACEOF 24924cat confdefs.h >>conftest.$ac_ext 24925cat >>conftest.$ac_ext <<_ACEOF 24926/* end confdefs.h. */ 24927#include <stdarg.h> 24928 va_list x,y; 24929int 24930main () 24931{ 24932__va_copy(x,y); 24933 ; 24934 return 0; 24935} 24936_ACEOF 24937rm -f conftest.$ac_objext conftest$ac_exeext 24938if { (ac_try="$ac_link" 24939case "(($ac_try" in 24940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24941 *) ac_try_echo=$ac_try;; 24942esac 24943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24944 (eval "$ac_link") 2>conftest.er1 24945 ac_status=$? 24946 grep -v '^ *+' conftest.er1 >conftest.err 24947 rm -f conftest.er1 24948 cat conftest.err >&5 24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24950 (exit $ac_status); } && { 24951 test -z "$ac_c_werror_flag" || 24952 test ! -s conftest.err 24953 } && test -s conftest$ac_exeext && 24954 $as_test_x conftest$ac_exeext; then 24955 ac_cv_have___va_copy="yes" 24956else 24957 echo "$as_me: failed program was:" >&5 24958sed 's/^/| /' conftest.$ac_ext >&5 24959 24960 ac_cv_have___va_copy="no" 24961 24962fi 24963 24964rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24965 conftest$ac_exeext conftest.$ac_ext 24966 24967fi 24968{ echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5 24969echo "${ECHO_T}$ac_cv_have___va_copy" >&6; } 24970if test "x$ac_cv_have___va_copy" = "xyes" ; then 24971 24972cat >>confdefs.h <<\_ACEOF 24973#define HAVE___VA_COPY 1 24974_ACEOF 24975 24976fi 24977 24978{ echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5 24979echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; } 24980if test "${ac_cv_have_getopt_optreset+set}" = set; then 24981 echo $ECHO_N "(cached) $ECHO_C" >&6 24982else 24983 24984 cat >conftest.$ac_ext <<_ACEOF 24985/* confdefs.h. */ 24986_ACEOF 24987cat confdefs.h >>conftest.$ac_ext 24988cat >>conftest.$ac_ext <<_ACEOF 24989/* end confdefs.h. */ 24990 24991#include <getopt.h> 24992 24993int 24994main () 24995{ 24996 extern int optreset; optreset = 0; 24997 ; 24998 return 0; 24999} 25000_ACEOF 25001rm -f conftest.$ac_objext conftest$ac_exeext 25002if { (ac_try="$ac_link" 25003case "(($ac_try" in 25004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25005 *) ac_try_echo=$ac_try;; 25006esac 25007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25008 (eval "$ac_link") 2>conftest.er1 25009 ac_status=$? 25010 grep -v '^ *+' conftest.er1 >conftest.err 25011 rm -f conftest.er1 25012 cat conftest.err >&5 25013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25014 (exit $ac_status); } && { 25015 test -z "$ac_c_werror_flag" || 25016 test ! -s conftest.err 25017 } && test -s conftest$ac_exeext && 25018 $as_test_x conftest$ac_exeext; then 25019 ac_cv_have_getopt_optreset="yes" 25020else 25021 echo "$as_me: failed program was:" >&5 25022sed 's/^/| /' conftest.$ac_ext >&5 25023 25024 ac_cv_have_getopt_optreset="no" 25025 25026fi 25027 25028rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25029 conftest$ac_exeext conftest.$ac_ext 25030 25031fi 25032{ echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5 25033echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; } 25034if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then 25035 25036cat >>confdefs.h <<\_ACEOF 25037#define HAVE_GETOPT_OPTRESET 1 25038_ACEOF 25039 25040fi 25041 25042{ echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5 25043echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; } 25044if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then 25045 echo $ECHO_N "(cached) $ECHO_C" >&6 25046else 25047 25048 cat >conftest.$ac_ext <<_ACEOF 25049/* confdefs.h. */ 25050_ACEOF 25051cat confdefs.h >>conftest.$ac_ext 25052cat >>conftest.$ac_ext <<_ACEOF 25053/* end confdefs.h. */ 25054 25055int 25056main () 25057{ 25058 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); 25059 ; 25060 return 0; 25061} 25062_ACEOF 25063rm -f conftest.$ac_objext conftest$ac_exeext 25064if { (ac_try="$ac_link" 25065case "(($ac_try" in 25066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25067 *) ac_try_echo=$ac_try;; 25068esac 25069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25070 (eval "$ac_link") 2>conftest.er1 25071 ac_status=$? 25072 grep -v '^ *+' conftest.er1 >conftest.err 25073 rm -f conftest.er1 25074 cat conftest.err >&5 25075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25076 (exit $ac_status); } && { 25077 test -z "$ac_c_werror_flag" || 25078 test ! -s conftest.err 25079 } && test -s conftest$ac_exeext && 25080 $as_test_x conftest$ac_exeext; then 25081 ac_cv_libc_defines_sys_errlist="yes" 25082else 25083 echo "$as_me: failed program was:" >&5 25084sed 's/^/| /' conftest.$ac_ext >&5 25085 25086 ac_cv_libc_defines_sys_errlist="no" 25087 25088fi 25089 25090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25091 conftest$ac_exeext conftest.$ac_ext 25092 25093fi 25094{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5 25095echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; } 25096if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then 25097 25098cat >>confdefs.h <<\_ACEOF 25099#define HAVE_SYS_ERRLIST 1 25100_ACEOF 25101 25102fi 25103 25104 25105{ echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5 25106echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; } 25107if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then 25108 echo $ECHO_N "(cached) $ECHO_C" >&6 25109else 25110 25111 cat >conftest.$ac_ext <<_ACEOF 25112/* confdefs.h. */ 25113_ACEOF 25114cat confdefs.h >>conftest.$ac_ext 25115cat >>conftest.$ac_ext <<_ACEOF 25116/* end confdefs.h. */ 25117 25118int 25119main () 25120{ 25121 extern int sys_nerr; printf("%i", sys_nerr); 25122 ; 25123 return 0; 25124} 25125_ACEOF 25126rm -f conftest.$ac_objext conftest$ac_exeext 25127if { (ac_try="$ac_link" 25128case "(($ac_try" in 25129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25130 *) ac_try_echo=$ac_try;; 25131esac 25132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25133 (eval "$ac_link") 2>conftest.er1 25134 ac_status=$? 25135 grep -v '^ *+' conftest.er1 >conftest.err 25136 rm -f conftest.er1 25137 cat conftest.err >&5 25138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25139 (exit $ac_status); } && { 25140 test -z "$ac_c_werror_flag" || 25141 test ! -s conftest.err 25142 } && test -s conftest$ac_exeext && 25143 $as_test_x conftest$ac_exeext; then 25144 ac_cv_libc_defines_sys_nerr="yes" 25145else 25146 echo "$as_me: failed program was:" >&5 25147sed 's/^/| /' conftest.$ac_ext >&5 25148 25149 ac_cv_libc_defines_sys_nerr="no" 25150 25151fi 25152 25153rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25154 conftest$ac_exeext conftest.$ac_ext 25155 25156fi 25157{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5 25158echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; } 25159if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then 25160 25161cat >>confdefs.h <<\_ACEOF 25162#define HAVE_SYS_NERR 1 25163_ACEOF 25164 25165fi 25166 25167SCARD_MSG="no" 25168# Check whether user wants sectok support 25169 25170# Check whether --with-sectok was given. 25171if test "${with_sectok+set}" = set; then 25172 withval=$with_sectok; 25173 if test "x$withval" != "xno" ; then 25174 if test "x$withval" != "xyes" ; then 25175 CPPFLAGS="$CPPFLAGS -I${withval}" 25176 LDFLAGS="$LDFLAGS -L${withval}" 25177 if test ! -z "$need_dash_r" ; then 25178 LDFLAGS="$LDFLAGS -R${withval}" 25179 fi 25180 if test ! -z "$blibpath" ; then 25181 blibpath="$blibpath:${withval}" 25182 fi 25183 fi 25184 25185for ac_header in sectok.h 25186do 25187as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 25188if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 25189 { echo "$as_me:$LINENO: checking for $ac_header" >&5 25190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 25191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 25192 echo $ECHO_N "(cached) $ECHO_C" >&6 25193fi 25194ac_res=`eval echo '${'$as_ac_Header'}'` 25195 { echo "$as_me:$LINENO: result: $ac_res" >&5 25196echo "${ECHO_T}$ac_res" >&6; } 25197else 25198 # Is the header compilable? 25199{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 25200echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 25201cat >conftest.$ac_ext <<_ACEOF 25202/* confdefs.h. */ 25203_ACEOF 25204cat confdefs.h >>conftest.$ac_ext 25205cat >>conftest.$ac_ext <<_ACEOF 25206/* end confdefs.h. */ 25207$ac_includes_default 25208#include <$ac_header> 25209_ACEOF 25210rm -f conftest.$ac_objext 25211if { (ac_try="$ac_compile" 25212case "(($ac_try" in 25213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25214 *) ac_try_echo=$ac_try;; 25215esac 25216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25217 (eval "$ac_compile") 2>conftest.er1 25218 ac_status=$? 25219 grep -v '^ *+' conftest.er1 >conftest.err 25220 rm -f conftest.er1 25221 cat conftest.err >&5 25222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25223 (exit $ac_status); } && { 25224 test -z "$ac_c_werror_flag" || 25225 test ! -s conftest.err 25226 } && test -s conftest.$ac_objext; then 25227 ac_header_compiler=yes 25228else 25229 echo "$as_me: failed program was:" >&5 25230sed 's/^/| /' conftest.$ac_ext >&5 25231 25232 ac_header_compiler=no 25233fi 25234 25235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25236{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 25237echo "${ECHO_T}$ac_header_compiler" >&6; } 25238 25239# Is the header present? 25240{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 25241echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 25242cat >conftest.$ac_ext <<_ACEOF 25243/* confdefs.h. */ 25244_ACEOF 25245cat confdefs.h >>conftest.$ac_ext 25246cat >>conftest.$ac_ext <<_ACEOF 25247/* end confdefs.h. */ 25248#include <$ac_header> 25249_ACEOF 25250if { (ac_try="$ac_cpp conftest.$ac_ext" 25251case "(($ac_try" in 25252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25253 *) ac_try_echo=$ac_try;; 25254esac 25255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 25257 ac_status=$? 25258 grep -v '^ *+' conftest.er1 >conftest.err 25259 rm -f conftest.er1 25260 cat conftest.err >&5 25261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25262 (exit $ac_status); } >/dev/null && { 25263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 25264 test ! -s conftest.err 25265 }; then 25266 ac_header_preproc=yes 25267else 25268 echo "$as_me: failed program was:" >&5 25269sed 's/^/| /' conftest.$ac_ext >&5 25270 25271 ac_header_preproc=no 25272fi 25273 25274rm -f conftest.err conftest.$ac_ext 25275{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 25276echo "${ECHO_T}$ac_header_preproc" >&6; } 25277 25278# So? What about this header? 25279case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 25280 yes:no: ) 25281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 25282echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 25283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 25284echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 25285 ac_header_preproc=yes 25286 ;; 25287 no:yes:* ) 25288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 25289echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 25290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 25291echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 25292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 25293echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 25294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 25295echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 25296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 25297echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 25298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 25299echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 25300 ( cat <<\_ASBOX 25301## ------------------------------------------- ## 25302## Report this to openssh-unix-dev@mindrot.org ## 25303## ------------------------------------------- ## 25304_ASBOX 25305 ) | sed "s/^/$as_me: WARNING: /" >&2 25306 ;; 25307esac 25308{ echo "$as_me:$LINENO: checking for $ac_header" >&5 25309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 25310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 25311 echo $ECHO_N "(cached) $ECHO_C" >&6 25312else 25313 eval "$as_ac_Header=\$ac_header_preproc" 25314fi 25315ac_res=`eval echo '${'$as_ac_Header'}'` 25316 { echo "$as_me:$LINENO: result: $ac_res" >&5 25317echo "${ECHO_T}$ac_res" >&6; } 25318 25319fi 25320if test `eval echo '${'$as_ac_Header'}'` = yes; then 25321 cat >>confdefs.h <<_ACEOF 25322#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 25323_ACEOF 25324 25325fi 25326 25327done 25328 25329 if test "$ac_cv_header_sectok_h" != yes; then 25330 { { echo "$as_me:$LINENO: error: Can't find sectok.h" >&5 25331echo "$as_me: error: Can't find sectok.h" >&2;} 25332 { (exit 1); exit 1; }; } 25333 fi 25334 25335{ echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5 25336echo $ECHO_N "checking for sectok_open in -lsectok... $ECHO_C" >&6; } 25337if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then 25338 echo $ECHO_N "(cached) $ECHO_C" >&6 25339else 25340 ac_check_lib_save_LIBS=$LIBS 25341LIBS="-lsectok $LIBS" 25342cat >conftest.$ac_ext <<_ACEOF 25343/* confdefs.h. */ 25344_ACEOF 25345cat confdefs.h >>conftest.$ac_ext 25346cat >>conftest.$ac_ext <<_ACEOF 25347/* end confdefs.h. */ 25348 25349/* Override any GCC internal prototype to avoid an error. 25350 Use char because int might match the return type of a GCC 25351 builtin and then its argument prototype would still apply. */ 25352#ifdef __cplusplus 25353extern "C" 25354#endif 25355char sectok_open (); 25356int 25357main () 25358{ 25359return sectok_open (); 25360 ; 25361 return 0; 25362} 25363_ACEOF 25364rm -f conftest.$ac_objext conftest$ac_exeext 25365if { (ac_try="$ac_link" 25366case "(($ac_try" in 25367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25368 *) ac_try_echo=$ac_try;; 25369esac 25370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25371 (eval "$ac_link") 2>conftest.er1 25372 ac_status=$? 25373 grep -v '^ *+' conftest.er1 >conftest.err 25374 rm -f conftest.er1 25375 cat conftest.err >&5 25376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25377 (exit $ac_status); } && { 25378 test -z "$ac_c_werror_flag" || 25379 test ! -s conftest.err 25380 } && test -s conftest$ac_exeext && 25381 $as_test_x conftest$ac_exeext; then 25382 ac_cv_lib_sectok_sectok_open=yes 25383else 25384 echo "$as_me: failed program was:" >&5 25385sed 's/^/| /' conftest.$ac_ext >&5 25386 25387 ac_cv_lib_sectok_sectok_open=no 25388fi 25389 25390rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25391 conftest$ac_exeext conftest.$ac_ext 25392LIBS=$ac_check_lib_save_LIBS 25393fi 25394{ echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5 25395echo "${ECHO_T}$ac_cv_lib_sectok_sectok_open" >&6; } 25396if test $ac_cv_lib_sectok_sectok_open = yes; then 25397 cat >>confdefs.h <<_ACEOF 25398#define HAVE_LIBSECTOK 1 25399_ACEOF 25400 25401 LIBS="-lsectok $LIBS" 25402 25403fi 25404 25405 if test "$ac_cv_lib_sectok_sectok_open" != yes; then 25406 { { echo "$as_me:$LINENO: error: Can't find libsectok" >&5 25407echo "$as_me: error: Can't find libsectok" >&2;} 25408 { (exit 1); exit 1; }; } 25409 fi 25410 25411cat >>confdefs.h <<\_ACEOF 25412#define SMARTCARD 1 25413_ACEOF 25414 25415 25416cat >>confdefs.h <<\_ACEOF 25417#define USE_SECTOK 1 25418_ACEOF 25419 25420 SCARD_MSG="yes, using sectok" 25421 fi 25422 25423 25424fi 25425 25426 25427# Check whether user wants OpenSC support 25428OPENSC_CONFIG="no" 25429 25430# Check whether --with-opensc was given. 25431if test "${with_opensc+set}" = set; then 25432 withval=$with_opensc; 25433 if test "x$withval" != "xno" ; then 25434 if test "x$withval" != "xyes" ; then 25435 OPENSC_CONFIG=$withval/bin/opensc-config 25436 else 25437 # Extract the first word of "opensc-config", so it can be a program name with args. 25438set dummy opensc-config; ac_word=$2 25439{ echo "$as_me:$LINENO: checking for $ac_word" >&5 25440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 25441if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then 25442 echo $ECHO_N "(cached) $ECHO_C" >&6 25443else 25444 case $OPENSC_CONFIG in 25445 [\\/]* | ?:[\\/]*) 25446 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path. 25447 ;; 25448 *) 25449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25450for as_dir in $PATH 25451do 25452 IFS=$as_save_IFS 25453 test -z "$as_dir" && as_dir=. 25454 for ac_exec_ext in '' $ac_executable_extensions; do 25455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 25456 ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext" 25457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 25458 break 2 25459 fi 25460done 25461done 25462IFS=$as_save_IFS 25463 25464 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no" 25465 ;; 25466esac 25467fi 25468OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG 25469if test -n "$OPENSC_CONFIG"; then 25470 { echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5 25471echo "${ECHO_T}$OPENSC_CONFIG" >&6; } 25472else 25473 { echo "$as_me:$LINENO: result: no" >&5 25474echo "${ECHO_T}no" >&6; } 25475fi 25476 25477 25478 fi 25479 if test "$OPENSC_CONFIG" != "no"; then 25480 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags` 25481 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs` 25482 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS" 25483 LIBS="$LIBS $LIBOPENSC_LIBS" 25484 cat >>confdefs.h <<\_ACEOF 25485#define SMARTCARD 1 25486_ACEOF 25487 25488 25489cat >>confdefs.h <<\_ACEOF 25490#define USE_OPENSC 1 25491_ACEOF 25492 25493 SCARD_MSG="yes, using OpenSC" 25494 fi 25495 fi 25496 25497 25498fi 25499 25500 25501# Check libraries needed by DNS fingerprint support 25502{ echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5 25503echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; } 25504if test "${ac_cv_search_getrrsetbyname+set}" = set; then 25505 echo $ECHO_N "(cached) $ECHO_C" >&6 25506else 25507 ac_func_search_save_LIBS=$LIBS 25508cat >conftest.$ac_ext <<_ACEOF 25509/* confdefs.h. */ 25510_ACEOF 25511cat confdefs.h >>conftest.$ac_ext 25512cat >>conftest.$ac_ext <<_ACEOF 25513/* end confdefs.h. */ 25514 25515/* Override any GCC internal prototype to avoid an error. 25516 Use char because int might match the return type of a GCC 25517 builtin and then its argument prototype would still apply. */ 25518#ifdef __cplusplus 25519extern "C" 25520#endif 25521char getrrsetbyname (); 25522int 25523main () 25524{ 25525return getrrsetbyname (); 25526 ; 25527 return 0; 25528} 25529_ACEOF 25530for ac_lib in '' resolv; do 25531 if test -z "$ac_lib"; then 25532 ac_res="none required" 25533 else 25534 ac_res=-l$ac_lib 25535 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 25536 fi 25537 rm -f conftest.$ac_objext conftest$ac_exeext 25538if { (ac_try="$ac_link" 25539case "(($ac_try" in 25540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25541 *) ac_try_echo=$ac_try;; 25542esac 25543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25544 (eval "$ac_link") 2>conftest.er1 25545 ac_status=$? 25546 grep -v '^ *+' conftest.er1 >conftest.err 25547 rm -f conftest.er1 25548 cat conftest.err >&5 25549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25550 (exit $ac_status); } && { 25551 test -z "$ac_c_werror_flag" || 25552 test ! -s conftest.err 25553 } && test -s conftest$ac_exeext && 25554 $as_test_x conftest$ac_exeext; then 25555 ac_cv_search_getrrsetbyname=$ac_res 25556else 25557 echo "$as_me: failed program was:" >&5 25558sed 's/^/| /' conftest.$ac_ext >&5 25559 25560 25561fi 25562 25563rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25564 conftest$ac_exeext 25565 if test "${ac_cv_search_getrrsetbyname+set}" = set; then 25566 break 25567fi 25568done 25569if test "${ac_cv_search_getrrsetbyname+set}" = set; then 25570 : 25571else 25572 ac_cv_search_getrrsetbyname=no 25573fi 25574rm conftest.$ac_ext 25575LIBS=$ac_func_search_save_LIBS 25576fi 25577{ echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5 25578echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; } 25579ac_res=$ac_cv_search_getrrsetbyname 25580if test "$ac_res" != no; then 25581 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 25582 25583cat >>confdefs.h <<\_ACEOF 25584#define HAVE_GETRRSETBYNAME 1 25585_ACEOF 25586 25587else 25588 25589 # Needed by our getrrsetbyname() 25590 { echo "$as_me:$LINENO: checking for library containing res_query" >&5 25591echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; } 25592if test "${ac_cv_search_res_query+set}" = set; then 25593 echo $ECHO_N "(cached) $ECHO_C" >&6 25594else 25595 ac_func_search_save_LIBS=$LIBS 25596cat >conftest.$ac_ext <<_ACEOF 25597/* confdefs.h. */ 25598_ACEOF 25599cat confdefs.h >>conftest.$ac_ext 25600cat >>conftest.$ac_ext <<_ACEOF 25601/* end confdefs.h. */ 25602 25603/* Override any GCC internal prototype to avoid an error. 25604 Use char because int might match the return type of a GCC 25605 builtin and then its argument prototype would still apply. */ 25606#ifdef __cplusplus 25607extern "C" 25608#endif 25609char res_query (); 25610int 25611main () 25612{ 25613return res_query (); 25614 ; 25615 return 0; 25616} 25617_ACEOF 25618for ac_lib in '' resolv; do 25619 if test -z "$ac_lib"; then 25620 ac_res="none required" 25621 else 25622 ac_res=-l$ac_lib 25623 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 25624 fi 25625 rm -f conftest.$ac_objext conftest$ac_exeext 25626if { (ac_try="$ac_link" 25627case "(($ac_try" in 25628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25629 *) ac_try_echo=$ac_try;; 25630esac 25631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25632 (eval "$ac_link") 2>conftest.er1 25633 ac_status=$? 25634 grep -v '^ *+' conftest.er1 >conftest.err 25635 rm -f conftest.er1 25636 cat conftest.err >&5 25637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25638 (exit $ac_status); } && { 25639 test -z "$ac_c_werror_flag" || 25640 test ! -s conftest.err 25641 } && test -s conftest$ac_exeext && 25642 $as_test_x conftest$ac_exeext; then 25643 ac_cv_search_res_query=$ac_res 25644else 25645 echo "$as_me: failed program was:" >&5 25646sed 's/^/| /' conftest.$ac_ext >&5 25647 25648 25649fi 25650 25651rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25652 conftest$ac_exeext 25653 if test "${ac_cv_search_res_query+set}" = set; then 25654 break 25655fi 25656done 25657if test "${ac_cv_search_res_query+set}" = set; then 25658 : 25659else 25660 ac_cv_search_res_query=no 25661fi 25662rm conftest.$ac_ext 25663LIBS=$ac_func_search_save_LIBS 25664fi 25665{ echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5 25666echo "${ECHO_T}$ac_cv_search_res_query" >&6; } 25667ac_res=$ac_cv_search_res_query 25668if test "$ac_res" != no; then 25669 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 25670 25671fi 25672 25673 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 25674echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; } 25675if test "${ac_cv_search_dn_expand+set}" = set; then 25676 echo $ECHO_N "(cached) $ECHO_C" >&6 25677else 25678 ac_func_search_save_LIBS=$LIBS 25679cat >conftest.$ac_ext <<_ACEOF 25680/* confdefs.h. */ 25681_ACEOF 25682cat confdefs.h >>conftest.$ac_ext 25683cat >>conftest.$ac_ext <<_ACEOF 25684/* end confdefs.h. */ 25685 25686/* Override any GCC internal prototype to avoid an error. 25687 Use char because int might match the return type of a GCC 25688 builtin and then its argument prototype would still apply. */ 25689#ifdef __cplusplus 25690extern "C" 25691#endif 25692char dn_expand (); 25693int 25694main () 25695{ 25696return dn_expand (); 25697 ; 25698 return 0; 25699} 25700_ACEOF 25701for ac_lib in '' resolv; do 25702 if test -z "$ac_lib"; then 25703 ac_res="none required" 25704 else 25705 ac_res=-l$ac_lib 25706 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 25707 fi 25708 rm -f conftest.$ac_objext conftest$ac_exeext 25709if { (ac_try="$ac_link" 25710case "(($ac_try" in 25711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25712 *) ac_try_echo=$ac_try;; 25713esac 25714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25715 (eval "$ac_link") 2>conftest.er1 25716 ac_status=$? 25717 grep -v '^ *+' conftest.er1 >conftest.err 25718 rm -f conftest.er1 25719 cat conftest.err >&5 25720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25721 (exit $ac_status); } && { 25722 test -z "$ac_c_werror_flag" || 25723 test ! -s conftest.err 25724 } && test -s conftest$ac_exeext && 25725 $as_test_x conftest$ac_exeext; then 25726 ac_cv_search_dn_expand=$ac_res 25727else 25728 echo "$as_me: failed program was:" >&5 25729sed 's/^/| /' conftest.$ac_ext >&5 25730 25731 25732fi 25733 25734rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25735 conftest$ac_exeext 25736 if test "${ac_cv_search_dn_expand+set}" = set; then 25737 break 25738fi 25739done 25740if test "${ac_cv_search_dn_expand+set}" = set; then 25741 : 25742else 25743 ac_cv_search_dn_expand=no 25744fi 25745rm conftest.$ac_ext 25746LIBS=$ac_func_search_save_LIBS 25747fi 25748{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 25749echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; } 25750ac_res=$ac_cv_search_dn_expand 25751if test "$ac_res" != no; then 25752 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 25753 25754fi 25755 25756 { echo "$as_me:$LINENO: checking if res_query will link" >&5 25757echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; } 25758 cat >conftest.$ac_ext <<_ACEOF 25759/* confdefs.h. */ 25760_ACEOF 25761cat confdefs.h >>conftest.$ac_ext 25762cat >>conftest.$ac_ext <<_ACEOF 25763/* end confdefs.h. */ 25764 25765/* Override any GCC internal prototype to avoid an error. 25766 Use char because int might match the return type of a GCC 25767 builtin and then its argument prototype would still apply. */ 25768#ifdef __cplusplus 25769extern "C" 25770#endif 25771char res_query (); 25772int 25773main () 25774{ 25775return res_query (); 25776 ; 25777 return 0; 25778} 25779_ACEOF 25780rm -f conftest.$ac_objext conftest$ac_exeext 25781if { (ac_try="$ac_link" 25782case "(($ac_try" in 25783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25784 *) ac_try_echo=$ac_try;; 25785esac 25786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25787 (eval "$ac_link") 2>conftest.er1 25788 ac_status=$? 25789 grep -v '^ *+' conftest.er1 >conftest.err 25790 rm -f conftest.er1 25791 cat conftest.err >&5 25792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25793 (exit $ac_status); } && { 25794 test -z "$ac_c_werror_flag" || 25795 test ! -s conftest.err 25796 } && test -s conftest$ac_exeext && 25797 $as_test_x conftest$ac_exeext; then 25798 { echo "$as_me:$LINENO: result: yes" >&5 25799echo "${ECHO_T}yes" >&6; } 25800else 25801 echo "$as_me: failed program was:" >&5 25802sed 's/^/| /' conftest.$ac_ext >&5 25803 25804 { echo "$as_me:$LINENO: result: no" >&5 25805echo "${ECHO_T}no" >&6; } 25806 saved_LIBS="$LIBS" 25807 LIBS="$LIBS -lresolv" 25808 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 25809echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } 25810 cat >conftest.$ac_ext <<_ACEOF 25811 25812#include <resolv.h> 25813int main() 25814{ 25815 res_query (0, 0, 0, 0, 0); 25816 return 0; 25817} 25818 25819_ACEOF 25820rm -f conftest.$ac_objext conftest$ac_exeext 25821if { (ac_try="$ac_link" 25822case "(($ac_try" in 25823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25824 *) ac_try_echo=$ac_try;; 25825esac 25826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25827 (eval "$ac_link") 2>conftest.er1 25828 ac_status=$? 25829 grep -v '^ *+' conftest.er1 >conftest.err 25830 rm -f conftest.er1 25831 cat conftest.err >&5 25832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25833 (exit $ac_status); } && { 25834 test -z "$ac_c_werror_flag" || 25835 test ! -s conftest.err 25836 } && test -s conftest$ac_exeext && 25837 $as_test_x conftest$ac_exeext; then 25838 LIBS="$LIBS -lresolv" 25839 { echo "$as_me:$LINENO: result: yes" >&5 25840echo "${ECHO_T}yes" >&6; } 25841else 25842 echo "$as_me: failed program was:" >&5 25843sed 's/^/| /' conftest.$ac_ext >&5 25844 25845 LIBS="$saved_LIBS" 25846 { echo "$as_me:$LINENO: result: no" >&5 25847echo "${ECHO_T}no" >&6; } 25848fi 25849 25850rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25851 conftest$ac_exeext conftest.$ac_ext 25852 25853fi 25854 25855rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25856 conftest$ac_exeext conftest.$ac_ext 25857 25858 25859for ac_func in _getshort _getlong 25860do 25861as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 25862{ echo "$as_me:$LINENO: checking for $ac_func" >&5 25863echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 25864if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 25865 echo $ECHO_N "(cached) $ECHO_C" >&6 25866else 25867 cat >conftest.$ac_ext <<_ACEOF 25868/* confdefs.h. */ 25869_ACEOF 25870cat confdefs.h >>conftest.$ac_ext 25871cat >>conftest.$ac_ext <<_ACEOF 25872/* end confdefs.h. */ 25873/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 25874 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 25875#define $ac_func innocuous_$ac_func 25876 25877/* System header to define __stub macros and hopefully few prototypes, 25878 which can conflict with char $ac_func (); below. 25879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 25880 <limits.h> exists even on freestanding compilers. */ 25881 25882#ifdef __STDC__ 25883# include <limits.h> 25884#else 25885# include <assert.h> 25886#endif 25887 25888#undef $ac_func 25889 25890/* Override any GCC internal prototype to avoid an error. 25891 Use char because int might match the return type of a GCC 25892 builtin and then its argument prototype would still apply. */ 25893#ifdef __cplusplus 25894extern "C" 25895#endif 25896char $ac_func (); 25897/* The GNU C library defines this for functions which it implements 25898 to always fail with ENOSYS. Some functions are actually named 25899 something starting with __ and the normal name is an alias. */ 25900#if defined __stub_$ac_func || defined __stub___$ac_func 25901choke me 25902#endif 25903 25904int 25905main () 25906{ 25907return $ac_func (); 25908 ; 25909 return 0; 25910} 25911_ACEOF 25912rm -f conftest.$ac_objext conftest$ac_exeext 25913if { (ac_try="$ac_link" 25914case "(($ac_try" in 25915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25916 *) ac_try_echo=$ac_try;; 25917esac 25918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25919 (eval "$ac_link") 2>conftest.er1 25920 ac_status=$? 25921 grep -v '^ *+' conftest.er1 >conftest.err 25922 rm -f conftest.er1 25923 cat conftest.err >&5 25924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25925 (exit $ac_status); } && { 25926 test -z "$ac_c_werror_flag" || 25927 test ! -s conftest.err 25928 } && test -s conftest$ac_exeext && 25929 $as_test_x conftest$ac_exeext; then 25930 eval "$as_ac_var=yes" 25931else 25932 echo "$as_me: failed program was:" >&5 25933sed 's/^/| /' conftest.$ac_ext >&5 25934 25935 eval "$as_ac_var=no" 25936fi 25937 25938rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25939 conftest$ac_exeext conftest.$ac_ext 25940fi 25941ac_res=`eval echo '${'$as_ac_var'}'` 25942 { echo "$as_me:$LINENO: result: $ac_res" >&5 25943echo "${ECHO_T}$ac_res" >&6; } 25944if test `eval echo '${'$as_ac_var'}'` = yes; then 25945 cat >>confdefs.h <<_ACEOF 25946#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 25947_ACEOF 25948 25949fi 25950done 25951 25952 { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5 25953echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; } 25954if test "${ac_cv_have_decl__getshort+set}" = set; then 25955 echo $ECHO_N "(cached) $ECHO_C" >&6 25956else 25957 cat >conftest.$ac_ext <<_ACEOF 25958/* confdefs.h. */ 25959_ACEOF 25960cat confdefs.h >>conftest.$ac_ext 25961cat >>conftest.$ac_ext <<_ACEOF 25962/* end confdefs.h. */ 25963#include <sys/types.h> 25964 #include <arpa/nameser.h> 25965 25966int 25967main () 25968{ 25969#ifndef _getshort 25970 (void) _getshort; 25971#endif 25972 25973 ; 25974 return 0; 25975} 25976_ACEOF 25977rm -f conftest.$ac_objext 25978if { (ac_try="$ac_compile" 25979case "(($ac_try" in 25980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25981 *) ac_try_echo=$ac_try;; 25982esac 25983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25984 (eval "$ac_compile") 2>conftest.er1 25985 ac_status=$? 25986 grep -v '^ *+' conftest.er1 >conftest.err 25987 rm -f conftest.er1 25988 cat conftest.err >&5 25989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25990 (exit $ac_status); } && { 25991 test -z "$ac_c_werror_flag" || 25992 test ! -s conftest.err 25993 } && test -s conftest.$ac_objext; then 25994 ac_cv_have_decl__getshort=yes 25995else 25996 echo "$as_me: failed program was:" >&5 25997sed 's/^/| /' conftest.$ac_ext >&5 25998 25999 ac_cv_have_decl__getshort=no 26000fi 26001 26002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26003fi 26004{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5 26005echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; } 26006if test $ac_cv_have_decl__getshort = yes; then 26007 26008cat >>confdefs.h <<_ACEOF 26009#define HAVE_DECL__GETSHORT 1 26010_ACEOF 26011 26012 26013else 26014 cat >>confdefs.h <<_ACEOF 26015#define HAVE_DECL__GETSHORT 0 26016_ACEOF 26017 26018 26019fi 26020{ echo "$as_me:$LINENO: checking whether _getlong is declared" >&5 26021echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; } 26022if test "${ac_cv_have_decl__getlong+set}" = set; then 26023 echo $ECHO_N "(cached) $ECHO_C" >&6 26024else 26025 cat >conftest.$ac_ext <<_ACEOF 26026/* confdefs.h. */ 26027_ACEOF 26028cat confdefs.h >>conftest.$ac_ext 26029cat >>conftest.$ac_ext <<_ACEOF 26030/* end confdefs.h. */ 26031#include <sys/types.h> 26032 #include <arpa/nameser.h> 26033 26034int 26035main () 26036{ 26037#ifndef _getlong 26038 (void) _getlong; 26039#endif 26040 26041 ; 26042 return 0; 26043} 26044_ACEOF 26045rm -f conftest.$ac_objext 26046if { (ac_try="$ac_compile" 26047case "(($ac_try" in 26048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26049 *) ac_try_echo=$ac_try;; 26050esac 26051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26052 (eval "$ac_compile") 2>conftest.er1 26053 ac_status=$? 26054 grep -v '^ *+' conftest.er1 >conftest.err 26055 rm -f conftest.er1 26056 cat conftest.err >&5 26057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26058 (exit $ac_status); } && { 26059 test -z "$ac_c_werror_flag" || 26060 test ! -s conftest.err 26061 } && test -s conftest.$ac_objext; then 26062 ac_cv_have_decl__getlong=yes 26063else 26064 echo "$as_me: failed program was:" >&5 26065sed 's/^/| /' conftest.$ac_ext >&5 26066 26067 ac_cv_have_decl__getlong=no 26068fi 26069 26070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26071fi 26072{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5 26073echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; } 26074if test $ac_cv_have_decl__getlong = yes; then 26075 26076cat >>confdefs.h <<_ACEOF 26077#define HAVE_DECL__GETLONG 1 26078_ACEOF 26079 26080 26081else 26082 cat >>confdefs.h <<_ACEOF 26083#define HAVE_DECL__GETLONG 0 26084_ACEOF 26085 26086 26087fi 26088 26089 26090 { echo "$as_me:$LINENO: checking for HEADER.ad" >&5 26091echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; } 26092if test "${ac_cv_member_HEADER_ad+set}" = set; then 26093 echo $ECHO_N "(cached) $ECHO_C" >&6 26094else 26095 cat >conftest.$ac_ext <<_ACEOF 26096/* confdefs.h. */ 26097_ACEOF 26098cat confdefs.h >>conftest.$ac_ext 26099cat >>conftest.$ac_ext <<_ACEOF 26100/* end confdefs.h. */ 26101#include <arpa/nameser.h> 26102 26103int 26104main () 26105{ 26106static HEADER ac_aggr; 26107if (ac_aggr.ad) 26108return 0; 26109 ; 26110 return 0; 26111} 26112_ACEOF 26113rm -f conftest.$ac_objext 26114if { (ac_try="$ac_compile" 26115case "(($ac_try" in 26116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26117 *) ac_try_echo=$ac_try;; 26118esac 26119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26120 (eval "$ac_compile") 2>conftest.er1 26121 ac_status=$? 26122 grep -v '^ *+' conftest.er1 >conftest.err 26123 rm -f conftest.er1 26124 cat conftest.err >&5 26125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26126 (exit $ac_status); } && { 26127 test -z "$ac_c_werror_flag" || 26128 test ! -s conftest.err 26129 } && test -s conftest.$ac_objext; then 26130 ac_cv_member_HEADER_ad=yes 26131else 26132 echo "$as_me: failed program was:" >&5 26133sed 's/^/| /' conftest.$ac_ext >&5 26134 26135 cat >conftest.$ac_ext <<_ACEOF 26136/* confdefs.h. */ 26137_ACEOF 26138cat confdefs.h >>conftest.$ac_ext 26139cat >>conftest.$ac_ext <<_ACEOF 26140/* end confdefs.h. */ 26141#include <arpa/nameser.h> 26142 26143int 26144main () 26145{ 26146static HEADER ac_aggr; 26147if (sizeof ac_aggr.ad) 26148return 0; 26149 ; 26150 return 0; 26151} 26152_ACEOF 26153rm -f conftest.$ac_objext 26154if { (ac_try="$ac_compile" 26155case "(($ac_try" in 26156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26157 *) ac_try_echo=$ac_try;; 26158esac 26159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26160 (eval "$ac_compile") 2>conftest.er1 26161 ac_status=$? 26162 grep -v '^ *+' conftest.er1 >conftest.err 26163 rm -f conftest.er1 26164 cat conftest.err >&5 26165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26166 (exit $ac_status); } && { 26167 test -z "$ac_c_werror_flag" || 26168 test ! -s conftest.err 26169 } && test -s conftest.$ac_objext; then 26170 ac_cv_member_HEADER_ad=yes 26171else 26172 echo "$as_me: failed program was:" >&5 26173sed 's/^/| /' conftest.$ac_ext >&5 26174 26175 ac_cv_member_HEADER_ad=no 26176fi 26177 26178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26179fi 26180 26181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26182fi 26183{ echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5 26184echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; } 26185if test $ac_cv_member_HEADER_ad = yes; then 26186 26187cat >>confdefs.h <<\_ACEOF 26188#define HAVE_HEADER_AD 1 26189_ACEOF 26190 26191fi 26192 26193 26194fi 26195 26196 26197{ echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5 26198echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; } 26199cat >conftest.$ac_ext <<_ACEOF 26200 26201#include <stdio.h> 26202#if HAVE_SYS_TYPES_H 26203# include <sys/types.h> 26204#endif 26205#include <netinet/in.h> 26206#include <arpa/nameser.h> 26207#include <resolv.h> 26208extern struct __res_state _res; 26209int main() { return 0; } 26210 26211_ACEOF 26212rm -f conftest.$ac_objext conftest$ac_exeext 26213if { (ac_try="$ac_link" 26214case "(($ac_try" in 26215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26216 *) ac_try_echo=$ac_try;; 26217esac 26218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26219 (eval "$ac_link") 2>conftest.er1 26220 ac_status=$? 26221 grep -v '^ *+' conftest.er1 >conftest.err 26222 rm -f conftest.er1 26223 cat conftest.err >&5 26224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26225 (exit $ac_status); } && { 26226 test -z "$ac_c_werror_flag" || 26227 test ! -s conftest.err 26228 } && test -s conftest$ac_exeext && 26229 $as_test_x conftest$ac_exeext; then 26230 { echo "$as_me:$LINENO: result: yes" >&5 26231echo "${ECHO_T}yes" >&6; } 26232 26233cat >>confdefs.h <<\_ACEOF 26234#define HAVE__RES_EXTERN 1 26235_ACEOF 26236 26237 26238else 26239 echo "$as_me: failed program was:" >&5 26240sed 's/^/| /' conftest.$ac_ext >&5 26241 26242 { echo "$as_me:$LINENO: result: no" >&5 26243echo "${ECHO_T}no" >&6; } 26244 26245fi 26246 26247rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26248 conftest$ac_exeext conftest.$ac_ext 26249 26250# Check whether user wants SELinux support 26251SELINUX_MSG="no" 26252LIBSELINUX="" 26253 26254# Check whether --with-selinux was given. 26255if test "${with_selinux+set}" = set; then 26256 withval=$with_selinux; if test "x$withval" != "xno" ; then 26257 save_LIBS="$LIBS" 26258 26259cat >>confdefs.h <<\_ACEOF 26260#define WITH_SELINUX 1 26261_ACEOF 26262 26263 SELINUX_MSG="yes" 26264 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then 26265 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 26266echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; } 26267if test "${ac_cv_header_selinux_selinux_h+set}" = set; then 26268 echo $ECHO_N "(cached) $ECHO_C" >&6 26269fi 26270{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 26271echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; } 26272else 26273 # Is the header compilable? 26274{ echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5 26275echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; } 26276cat >conftest.$ac_ext <<_ACEOF 26277/* confdefs.h. */ 26278_ACEOF 26279cat confdefs.h >>conftest.$ac_ext 26280cat >>conftest.$ac_ext <<_ACEOF 26281/* end confdefs.h. */ 26282$ac_includes_default 26283#include <selinux/selinux.h> 26284_ACEOF 26285rm -f conftest.$ac_objext 26286if { (ac_try="$ac_compile" 26287case "(($ac_try" in 26288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26289 *) ac_try_echo=$ac_try;; 26290esac 26291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26292 (eval "$ac_compile") 2>conftest.er1 26293 ac_status=$? 26294 grep -v '^ *+' conftest.er1 >conftest.err 26295 rm -f conftest.er1 26296 cat conftest.err >&5 26297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26298 (exit $ac_status); } && { 26299 test -z "$ac_c_werror_flag" || 26300 test ! -s conftest.err 26301 } && test -s conftest.$ac_objext; then 26302 ac_header_compiler=yes 26303else 26304 echo "$as_me: failed program was:" >&5 26305sed 's/^/| /' conftest.$ac_ext >&5 26306 26307 ac_header_compiler=no 26308fi 26309 26310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26311{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 26312echo "${ECHO_T}$ac_header_compiler" >&6; } 26313 26314# Is the header present? 26315{ echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5 26316echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; } 26317cat >conftest.$ac_ext <<_ACEOF 26318/* confdefs.h. */ 26319_ACEOF 26320cat confdefs.h >>conftest.$ac_ext 26321cat >>conftest.$ac_ext <<_ACEOF 26322/* end confdefs.h. */ 26323#include <selinux/selinux.h> 26324_ACEOF 26325if { (ac_try="$ac_cpp conftest.$ac_ext" 26326case "(($ac_try" in 26327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26328 *) ac_try_echo=$ac_try;; 26329esac 26330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 26332 ac_status=$? 26333 grep -v '^ *+' conftest.er1 >conftest.err 26334 rm -f conftest.er1 26335 cat conftest.err >&5 26336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26337 (exit $ac_status); } >/dev/null && { 26338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 26339 test ! -s conftest.err 26340 }; then 26341 ac_header_preproc=yes 26342else 26343 echo "$as_me: failed program was:" >&5 26344sed 's/^/| /' conftest.$ac_ext >&5 26345 26346 ac_header_preproc=no 26347fi 26348 26349rm -f conftest.err conftest.$ac_ext 26350{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 26351echo "${ECHO_T}$ac_header_preproc" >&6; } 26352 26353# So? What about this header? 26354case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 26355 yes:no: ) 26356 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5 26357echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 26358 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5 26359echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;} 26360 ac_header_preproc=yes 26361 ;; 26362 no:yes:* ) 26363 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5 26364echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;} 26365 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5 26366echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;} 26367 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5 26368echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;} 26369 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5 26370echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;} 26371 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5 26372echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;} 26373 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5 26374echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;} 26375 ( cat <<\_ASBOX 26376## ------------------------------------------- ## 26377## Report this to openssh-unix-dev@mindrot.org ## 26378## ------------------------------------------- ## 26379_ASBOX 26380 ) | sed "s/^/$as_me: WARNING: /" >&2 26381 ;; 26382esac 26383{ echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 26384echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; } 26385if test "${ac_cv_header_selinux_selinux_h+set}" = set; then 26386 echo $ECHO_N "(cached) $ECHO_C" >&6 26387else 26388 ac_cv_header_selinux_selinux_h=$ac_header_preproc 26389fi 26390{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 26391echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; } 26392 26393fi 26394if test $ac_cv_header_selinux_selinux_h = yes; then 26395 : 26396else 26397 { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5 26398echo "$as_me: error: SELinux support requires selinux.h header" >&2;} 26399 { (exit 1); exit 1; }; } 26400fi 26401 26402 26403 { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5 26404echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; } 26405if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then 26406 echo $ECHO_N "(cached) $ECHO_C" >&6 26407else 26408 ac_check_lib_save_LIBS=$LIBS 26409LIBS="-lselinux $LIBS" 26410cat >conftest.$ac_ext <<_ACEOF 26411/* confdefs.h. */ 26412_ACEOF 26413cat confdefs.h >>conftest.$ac_ext 26414cat >>conftest.$ac_ext <<_ACEOF 26415/* end confdefs.h. */ 26416 26417/* Override any GCC internal prototype to avoid an error. 26418 Use char because int might match the return type of a GCC 26419 builtin and then its argument prototype would still apply. */ 26420#ifdef __cplusplus 26421extern "C" 26422#endif 26423char setexeccon (); 26424int 26425main () 26426{ 26427return setexeccon (); 26428 ; 26429 return 0; 26430} 26431_ACEOF 26432rm -f conftest.$ac_objext conftest$ac_exeext 26433if { (ac_try="$ac_link" 26434case "(($ac_try" in 26435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26436 *) ac_try_echo=$ac_try;; 26437esac 26438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26439 (eval "$ac_link") 2>conftest.er1 26440 ac_status=$? 26441 grep -v '^ *+' conftest.er1 >conftest.err 26442 rm -f conftest.er1 26443 cat conftest.err >&5 26444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26445 (exit $ac_status); } && { 26446 test -z "$ac_c_werror_flag" || 26447 test ! -s conftest.err 26448 } && test -s conftest$ac_exeext && 26449 $as_test_x conftest$ac_exeext; then 26450 ac_cv_lib_selinux_setexeccon=yes 26451else 26452 echo "$as_me: failed program was:" >&5 26453sed 's/^/| /' conftest.$ac_ext >&5 26454 26455 ac_cv_lib_selinux_setexeccon=no 26456fi 26457 26458rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26459 conftest$ac_exeext conftest.$ac_ext 26460LIBS=$ac_check_lib_save_LIBS 26461fi 26462{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5 26463echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; } 26464if test $ac_cv_lib_selinux_setexeccon = yes; then 26465 LIBSELINUX="-lselinux" 26466else 26467 { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5 26468echo "$as_me: error: SELinux support requires libselinux library" >&2;} 26469 { (exit 1); exit 1; }; } 26470fi 26471 26472 SSHDLIBS="$SSHDLIBS $LIBSELINUX" 26473 26474 26475for ac_func in getseuserbyname get_default_context_with_level 26476do 26477as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 26478{ echo "$as_me:$LINENO: checking for $ac_func" >&5 26479echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 26480if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 26481 echo $ECHO_N "(cached) $ECHO_C" >&6 26482else 26483 cat >conftest.$ac_ext <<_ACEOF 26484/* confdefs.h. */ 26485_ACEOF 26486cat confdefs.h >>conftest.$ac_ext 26487cat >>conftest.$ac_ext <<_ACEOF 26488/* end confdefs.h. */ 26489/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 26490 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26491#define $ac_func innocuous_$ac_func 26492 26493/* System header to define __stub macros and hopefully few prototypes, 26494 which can conflict with char $ac_func (); below. 26495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26496 <limits.h> exists even on freestanding compilers. */ 26497 26498#ifdef __STDC__ 26499# include <limits.h> 26500#else 26501# include <assert.h> 26502#endif 26503 26504#undef $ac_func 26505 26506/* Override any GCC internal prototype to avoid an error. 26507 Use char because int might match the return type of a GCC 26508 builtin and then its argument prototype would still apply. */ 26509#ifdef __cplusplus 26510extern "C" 26511#endif 26512char $ac_func (); 26513/* The GNU C library defines this for functions which it implements 26514 to always fail with ENOSYS. Some functions are actually named 26515 something starting with __ and the normal name is an alias. */ 26516#if defined __stub_$ac_func || defined __stub___$ac_func 26517choke me 26518#endif 26519 26520int 26521main () 26522{ 26523return $ac_func (); 26524 ; 26525 return 0; 26526} 26527_ACEOF 26528rm -f conftest.$ac_objext conftest$ac_exeext 26529if { (ac_try="$ac_link" 26530case "(($ac_try" in 26531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26532 *) ac_try_echo=$ac_try;; 26533esac 26534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26535 (eval "$ac_link") 2>conftest.er1 26536 ac_status=$? 26537 grep -v '^ *+' conftest.er1 >conftest.err 26538 rm -f conftest.er1 26539 cat conftest.err >&5 26540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26541 (exit $ac_status); } && { 26542 test -z "$ac_c_werror_flag" || 26543 test ! -s conftest.err 26544 } && test -s conftest$ac_exeext && 26545 $as_test_x conftest$ac_exeext; then 26546 eval "$as_ac_var=yes" 26547else 26548 echo "$as_me: failed program was:" >&5 26549sed 's/^/| /' conftest.$ac_ext >&5 26550 26551 eval "$as_ac_var=no" 26552fi 26553 26554rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26555 conftest$ac_exeext conftest.$ac_ext 26556fi 26557ac_res=`eval echo '${'$as_ac_var'}'` 26558 { echo "$as_me:$LINENO: result: $ac_res" >&5 26559echo "${ECHO_T}$ac_res" >&6; } 26560if test `eval echo '${'$as_ac_var'}'` = yes; then 26561 cat >>confdefs.h <<_ACEOF 26562#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 26563_ACEOF 26564 26565fi 26566done 26567 26568 LIBS="$save_LIBS" 26569 fi 26570 26571fi 26572 26573 26574# Check whether user wants Kerberos 5 support 26575KRB5_MSG="no" 26576 26577# Check whether --with-kerberos5 was given. 26578if test "${with_kerberos5+set}" = set; then 26579 withval=$with_kerberos5; if test "x$withval" != "xno" ; then 26580 if test "x$withval" = "xyes" ; then 26581 KRB5ROOT="/usr/local" 26582 else 26583 KRB5ROOT=${withval} 26584 fi 26585 26586 26587cat >>confdefs.h <<\_ACEOF 26588#define KRB5 1 26589_ACEOF 26590 26591 KRB5_MSG="yes" 26592 26593 { echo "$as_me:$LINENO: checking for krb5-config" >&5 26594echo $ECHO_N "checking for krb5-config... $ECHO_C" >&6; } 26595 if test -x $KRB5ROOT/bin/krb5-config ; then 26596 KRB5CONF=$KRB5ROOT/bin/krb5-config 26597 { echo "$as_me:$LINENO: result: $KRB5CONF" >&5 26598echo "${ECHO_T}$KRB5CONF" >&6; } 26599 26600 { echo "$as_me:$LINENO: checking for gssapi support" >&5 26601echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; } 26602 if $KRB5CONF | grep gssapi >/dev/null ; then 26603 { echo "$as_me:$LINENO: result: yes" >&5 26604echo "${ECHO_T}yes" >&6; } 26605 26606cat >>confdefs.h <<\_ACEOF 26607#define GSSAPI 1 26608_ACEOF 26609 26610 k5confopts=gssapi 26611 else 26612 { echo "$as_me:$LINENO: result: no" >&5 26613echo "${ECHO_T}no" >&6; } 26614 k5confopts="" 26615 fi 26616 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`" 26617 K5LIBS="`$KRB5CONF --libs $k5confopts`" 26618 CPPFLAGS="$CPPFLAGS $K5CFLAGS" 26619 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 26620echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; } 26621 cat >conftest.$ac_ext <<_ACEOF 26622/* confdefs.h. */ 26623_ACEOF 26624cat confdefs.h >>conftest.$ac_ext 26625cat >>conftest.$ac_ext <<_ACEOF 26626/* end confdefs.h. */ 26627 #include <krb5.h> 26628int 26629main () 26630{ 26631 char *tmp = heimdal_version; 26632 ; 26633 return 0; 26634} 26635_ACEOF 26636rm -f conftest.$ac_objext 26637if { (ac_try="$ac_compile" 26638case "(($ac_try" in 26639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26640 *) ac_try_echo=$ac_try;; 26641esac 26642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26643 (eval "$ac_compile") 2>conftest.er1 26644 ac_status=$? 26645 grep -v '^ *+' conftest.er1 >conftest.err 26646 rm -f conftest.er1 26647 cat conftest.err >&5 26648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26649 (exit $ac_status); } && { 26650 test -z "$ac_c_werror_flag" || 26651 test ! -s conftest.err 26652 } && test -s conftest.$ac_objext; then 26653 { echo "$as_me:$LINENO: result: yes" >&5 26654echo "${ECHO_T}yes" >&6; } 26655 26656cat >>confdefs.h <<\_ACEOF 26657#define HEIMDAL 1 26658_ACEOF 26659 26660else 26661 echo "$as_me: failed program was:" >&5 26662sed 's/^/| /' conftest.$ac_ext >&5 26663 26664 { echo "$as_me:$LINENO: result: no" >&5 26665echo "${ECHO_T}no" >&6; } 26666 26667fi 26668 26669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26670 else 26671 { echo "$as_me:$LINENO: result: no" >&5 26672echo "${ECHO_T}no" >&6; } 26673 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" 26674 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" 26675 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 26676echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; } 26677 cat >conftest.$ac_ext <<_ACEOF 26678/* confdefs.h. */ 26679_ACEOF 26680cat confdefs.h >>conftest.$ac_ext 26681cat >>conftest.$ac_ext <<_ACEOF 26682/* end confdefs.h. */ 26683 #include <krb5.h> 26684int 26685main () 26686{ 26687 char *tmp = heimdal_version; 26688 ; 26689 return 0; 26690} 26691_ACEOF 26692rm -f conftest.$ac_objext 26693if { (ac_try="$ac_compile" 26694case "(($ac_try" in 26695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26696 *) ac_try_echo=$ac_try;; 26697esac 26698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26699 (eval "$ac_compile") 2>conftest.er1 26700 ac_status=$? 26701 grep -v '^ *+' conftest.er1 >conftest.err 26702 rm -f conftest.er1 26703 cat conftest.err >&5 26704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26705 (exit $ac_status); } && { 26706 test -z "$ac_c_werror_flag" || 26707 test ! -s conftest.err 26708 } && test -s conftest.$ac_objext; then 26709 { echo "$as_me:$LINENO: result: yes" >&5 26710echo "${ECHO_T}yes" >&6; } 26711 cat >>confdefs.h <<\_ACEOF 26712#define HEIMDAL 1 26713_ACEOF 26714 26715 K5LIBS="-lkrb5 -ldes" 26716 K5LIBS="$K5LIBS -lcom_err -lasn1" 26717 { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5 26718echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; } 26719if test "${ac_cv_lib_roken_net_write+set}" = set; then 26720 echo $ECHO_N "(cached) $ECHO_C" >&6 26721else 26722 ac_check_lib_save_LIBS=$LIBS 26723LIBS="-lroken $LIBS" 26724cat >conftest.$ac_ext <<_ACEOF 26725/* confdefs.h. */ 26726_ACEOF 26727cat confdefs.h >>conftest.$ac_ext 26728cat >>conftest.$ac_ext <<_ACEOF 26729/* end confdefs.h. */ 26730 26731/* Override any GCC internal prototype to avoid an error. 26732 Use char because int might match the return type of a GCC 26733 builtin and then its argument prototype would still apply. */ 26734#ifdef __cplusplus 26735extern "C" 26736#endif 26737char net_write (); 26738int 26739main () 26740{ 26741return net_write (); 26742 ; 26743 return 0; 26744} 26745_ACEOF 26746rm -f conftest.$ac_objext conftest$ac_exeext 26747if { (ac_try="$ac_link" 26748case "(($ac_try" in 26749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26750 *) ac_try_echo=$ac_try;; 26751esac 26752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26753 (eval "$ac_link") 2>conftest.er1 26754 ac_status=$? 26755 grep -v '^ *+' conftest.er1 >conftest.err 26756 rm -f conftest.er1 26757 cat conftest.err >&5 26758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26759 (exit $ac_status); } && { 26760 test -z "$ac_c_werror_flag" || 26761 test ! -s conftest.err 26762 } && test -s conftest$ac_exeext && 26763 $as_test_x conftest$ac_exeext; then 26764 ac_cv_lib_roken_net_write=yes 26765else 26766 echo "$as_me: failed program was:" >&5 26767sed 's/^/| /' conftest.$ac_ext >&5 26768 26769 ac_cv_lib_roken_net_write=no 26770fi 26771 26772rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26773 conftest$ac_exeext conftest.$ac_ext 26774LIBS=$ac_check_lib_save_LIBS 26775fi 26776{ echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5 26777echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; } 26778if test $ac_cv_lib_roken_net_write = yes; then 26779 K5LIBS="$K5LIBS -lroken" 26780fi 26781 26782 26783else 26784 echo "$as_me: failed program was:" >&5 26785sed 's/^/| /' conftest.$ac_ext >&5 26786 26787 { echo "$as_me:$LINENO: result: no" >&5 26788echo "${ECHO_T}no" >&6; } 26789 K5LIBS="-lkrb5 -lk5crypto -lcom_err" 26790 26791 26792fi 26793 26794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26795 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 26796echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; } 26797if test "${ac_cv_search_dn_expand+set}" = set; then 26798 echo $ECHO_N "(cached) $ECHO_C" >&6 26799else 26800 ac_func_search_save_LIBS=$LIBS 26801cat >conftest.$ac_ext <<_ACEOF 26802/* confdefs.h. */ 26803_ACEOF 26804cat confdefs.h >>conftest.$ac_ext 26805cat >>conftest.$ac_ext <<_ACEOF 26806/* end confdefs.h. */ 26807 26808/* Override any GCC internal prototype to avoid an error. 26809 Use char because int might match the return type of a GCC 26810 builtin and then its argument prototype would still apply. */ 26811#ifdef __cplusplus 26812extern "C" 26813#endif 26814char dn_expand (); 26815int 26816main () 26817{ 26818return dn_expand (); 26819 ; 26820 return 0; 26821} 26822_ACEOF 26823for ac_lib in '' resolv; do 26824 if test -z "$ac_lib"; then 26825 ac_res="none required" 26826 else 26827 ac_res=-l$ac_lib 26828 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 26829 fi 26830 rm -f conftest.$ac_objext conftest$ac_exeext 26831if { (ac_try="$ac_link" 26832case "(($ac_try" in 26833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26834 *) ac_try_echo=$ac_try;; 26835esac 26836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26837 (eval "$ac_link") 2>conftest.er1 26838 ac_status=$? 26839 grep -v '^ *+' conftest.er1 >conftest.err 26840 rm -f conftest.er1 26841 cat conftest.err >&5 26842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26843 (exit $ac_status); } && { 26844 test -z "$ac_c_werror_flag" || 26845 test ! -s conftest.err 26846 } && test -s conftest$ac_exeext && 26847 $as_test_x conftest$ac_exeext; then 26848 ac_cv_search_dn_expand=$ac_res 26849else 26850 echo "$as_me: failed program was:" >&5 26851sed 's/^/| /' conftest.$ac_ext >&5 26852 26853 26854fi 26855 26856rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26857 conftest$ac_exeext 26858 if test "${ac_cv_search_dn_expand+set}" = set; then 26859 break 26860fi 26861done 26862if test "${ac_cv_search_dn_expand+set}" = set; then 26863 : 26864else 26865 ac_cv_search_dn_expand=no 26866fi 26867rm conftest.$ac_ext 26868LIBS=$ac_func_search_save_LIBS 26869fi 26870{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 26871echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; } 26872ac_res=$ac_cv_search_dn_expand 26873if test "$ac_res" != no; then 26874 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 26875 26876fi 26877 26878 26879 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5 26880echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; } 26881if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then 26882 echo $ECHO_N "(cached) $ECHO_C" >&6 26883else 26884 ac_check_lib_save_LIBS=$LIBS 26885LIBS="-lgssapi_krb5 $K5LIBS $LIBS" 26886cat >conftest.$ac_ext <<_ACEOF 26887/* confdefs.h. */ 26888_ACEOF 26889cat confdefs.h >>conftest.$ac_ext 26890cat >>conftest.$ac_ext <<_ACEOF 26891/* end confdefs.h. */ 26892 26893/* Override any GCC internal prototype to avoid an error. 26894 Use char because int might match the return type of a GCC 26895 builtin and then its argument prototype would still apply. */ 26896#ifdef __cplusplus 26897extern "C" 26898#endif 26899char gss_init_sec_context (); 26900int 26901main () 26902{ 26903return gss_init_sec_context (); 26904 ; 26905 return 0; 26906} 26907_ACEOF 26908rm -f conftest.$ac_objext conftest$ac_exeext 26909if { (ac_try="$ac_link" 26910case "(($ac_try" in 26911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26912 *) ac_try_echo=$ac_try;; 26913esac 26914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26915 (eval "$ac_link") 2>conftest.er1 26916 ac_status=$? 26917 grep -v '^ *+' conftest.er1 >conftest.err 26918 rm -f conftest.er1 26919 cat conftest.err >&5 26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26921 (exit $ac_status); } && { 26922 test -z "$ac_c_werror_flag" || 26923 test ! -s conftest.err 26924 } && test -s conftest$ac_exeext && 26925 $as_test_x conftest$ac_exeext; then 26926 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes 26927else 26928 echo "$as_me: failed program was:" >&5 26929sed 's/^/| /' conftest.$ac_ext >&5 26930 26931 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no 26932fi 26933 26934rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26935 conftest$ac_exeext conftest.$ac_ext 26936LIBS=$ac_check_lib_save_LIBS 26937fi 26938{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 26939echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } 26940if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then 26941 cat >>confdefs.h <<\_ACEOF 26942#define GSSAPI 1 26943_ACEOF 26944 26945 K5LIBS="-lgssapi_krb5 $K5LIBS" 26946else 26947 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5 26948echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; } 26949if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then 26950 echo $ECHO_N "(cached) $ECHO_C" >&6 26951else 26952 ac_check_lib_save_LIBS=$LIBS 26953LIBS="-lgssapi $K5LIBS $LIBS" 26954cat >conftest.$ac_ext <<_ACEOF 26955/* confdefs.h. */ 26956_ACEOF 26957cat confdefs.h >>conftest.$ac_ext 26958cat >>conftest.$ac_ext <<_ACEOF 26959/* end confdefs.h. */ 26960 26961/* Override any GCC internal prototype to avoid an error. 26962 Use char because int might match the return type of a GCC 26963 builtin and then its argument prototype would still apply. */ 26964#ifdef __cplusplus 26965extern "C" 26966#endif 26967char gss_init_sec_context (); 26968int 26969main () 26970{ 26971return gss_init_sec_context (); 26972 ; 26973 return 0; 26974} 26975_ACEOF 26976rm -f conftest.$ac_objext conftest$ac_exeext 26977if { (ac_try="$ac_link" 26978case "(($ac_try" in 26979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26980 *) ac_try_echo=$ac_try;; 26981esac 26982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26983 (eval "$ac_link") 2>conftest.er1 26984 ac_status=$? 26985 grep -v '^ *+' conftest.er1 >conftest.err 26986 rm -f conftest.er1 26987 cat conftest.err >&5 26988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26989 (exit $ac_status); } && { 26990 test -z "$ac_c_werror_flag" || 26991 test ! -s conftest.err 26992 } && test -s conftest$ac_exeext && 26993 $as_test_x conftest$ac_exeext; then 26994 ac_cv_lib_gssapi_gss_init_sec_context=yes 26995else 26996 echo "$as_me: failed program was:" >&5 26997sed 's/^/| /' conftest.$ac_ext >&5 26998 26999 ac_cv_lib_gssapi_gss_init_sec_context=no 27000fi 27001 27002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27003 conftest$ac_exeext conftest.$ac_ext 27004LIBS=$ac_check_lib_save_LIBS 27005fi 27006{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 27007echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } 27008if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then 27009 cat >>confdefs.h <<\_ACEOF 27010#define GSSAPI 1 27011_ACEOF 27012 27013 K5LIBS="-lgssapi $K5LIBS" 27014else 27015 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 27016echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} 27017fi 27018 27019 27020fi 27021 27022 27023 if test "${ac_cv_header_gssapi_h+set}" = set; then 27024 { echo "$as_me:$LINENO: checking for gssapi.h" >&5 27025echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; } 27026if test "${ac_cv_header_gssapi_h+set}" = set; then 27027 echo $ECHO_N "(cached) $ECHO_C" >&6 27028fi 27029{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 27030echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; } 27031else 27032 # Is the header compilable? 27033{ echo "$as_me:$LINENO: checking gssapi.h usability" >&5 27034echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; } 27035cat >conftest.$ac_ext <<_ACEOF 27036/* confdefs.h. */ 27037_ACEOF 27038cat confdefs.h >>conftest.$ac_ext 27039cat >>conftest.$ac_ext <<_ACEOF 27040/* end confdefs.h. */ 27041$ac_includes_default 27042#include <gssapi.h> 27043_ACEOF 27044rm -f conftest.$ac_objext 27045if { (ac_try="$ac_compile" 27046case "(($ac_try" in 27047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27048 *) ac_try_echo=$ac_try;; 27049esac 27050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27051 (eval "$ac_compile") 2>conftest.er1 27052 ac_status=$? 27053 grep -v '^ *+' conftest.er1 >conftest.err 27054 rm -f conftest.er1 27055 cat conftest.err >&5 27056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27057 (exit $ac_status); } && { 27058 test -z "$ac_c_werror_flag" || 27059 test ! -s conftest.err 27060 } && test -s conftest.$ac_objext; then 27061 ac_header_compiler=yes 27062else 27063 echo "$as_me: failed program was:" >&5 27064sed 's/^/| /' conftest.$ac_ext >&5 27065 27066 ac_header_compiler=no 27067fi 27068 27069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27070{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 27071echo "${ECHO_T}$ac_header_compiler" >&6; } 27072 27073# Is the header present? 27074{ echo "$as_me:$LINENO: checking gssapi.h presence" >&5 27075echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; } 27076cat >conftest.$ac_ext <<_ACEOF 27077/* confdefs.h. */ 27078_ACEOF 27079cat confdefs.h >>conftest.$ac_ext 27080cat >>conftest.$ac_ext <<_ACEOF 27081/* end confdefs.h. */ 27082#include <gssapi.h> 27083_ACEOF 27084if { (ac_try="$ac_cpp conftest.$ac_ext" 27085case "(($ac_try" in 27086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27087 *) ac_try_echo=$ac_try;; 27088esac 27089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 27091 ac_status=$? 27092 grep -v '^ *+' conftest.er1 >conftest.err 27093 rm -f conftest.er1 27094 cat conftest.err >&5 27095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27096 (exit $ac_status); } >/dev/null && { 27097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 27098 test ! -s conftest.err 27099 }; then 27100 ac_header_preproc=yes 27101else 27102 echo "$as_me: failed program was:" >&5 27103sed 's/^/| /' conftest.$ac_ext >&5 27104 27105 ac_header_preproc=no 27106fi 27107 27108rm -f conftest.err conftest.$ac_ext 27109{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 27110echo "${ECHO_T}$ac_header_preproc" >&6; } 27111 27112# So? What about this header? 27113case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 27114 yes:no: ) 27115 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 27116echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 27117 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5 27118echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;} 27119 ac_header_preproc=yes 27120 ;; 27121 no:yes:* ) 27122 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5 27123echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;} 27124 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5 27125echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;} 27126 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5 27127echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;} 27128 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5 27129echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;} 27130 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5 27131echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;} 27132 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5 27133echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;} 27134 ( cat <<\_ASBOX 27135## ------------------------------------------- ## 27136## Report this to openssh-unix-dev@mindrot.org ## 27137## ------------------------------------------- ## 27138_ASBOX 27139 ) | sed "s/^/$as_me: WARNING: /" >&2 27140 ;; 27141esac 27142{ echo "$as_me:$LINENO: checking for gssapi.h" >&5 27143echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; } 27144if test "${ac_cv_header_gssapi_h+set}" = set; then 27145 echo $ECHO_N "(cached) $ECHO_C" >&6 27146else 27147 ac_cv_header_gssapi_h=$ac_header_preproc 27148fi 27149{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 27150echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; } 27151 27152fi 27153if test $ac_cv_header_gssapi_h = yes; then 27154 : 27155else 27156 unset ac_cv_header_gssapi_h 27157 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" 27158 27159for ac_header in gssapi.h 27160do 27161as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 27162if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 27163 { echo "$as_me:$LINENO: checking for $ac_header" >&5 27164echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 27165if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 27166 echo $ECHO_N "(cached) $ECHO_C" >&6 27167fi 27168ac_res=`eval echo '${'$as_ac_Header'}'` 27169 { echo "$as_me:$LINENO: result: $ac_res" >&5 27170echo "${ECHO_T}$ac_res" >&6; } 27171else 27172 # Is the header compilable? 27173{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 27174echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 27175cat >conftest.$ac_ext <<_ACEOF 27176/* confdefs.h. */ 27177_ACEOF 27178cat confdefs.h >>conftest.$ac_ext 27179cat >>conftest.$ac_ext <<_ACEOF 27180/* end confdefs.h. */ 27181$ac_includes_default 27182#include <$ac_header> 27183_ACEOF 27184rm -f conftest.$ac_objext 27185if { (ac_try="$ac_compile" 27186case "(($ac_try" in 27187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27188 *) ac_try_echo=$ac_try;; 27189esac 27190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27191 (eval "$ac_compile") 2>conftest.er1 27192 ac_status=$? 27193 grep -v '^ *+' conftest.er1 >conftest.err 27194 rm -f conftest.er1 27195 cat conftest.err >&5 27196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27197 (exit $ac_status); } && { 27198 test -z "$ac_c_werror_flag" || 27199 test ! -s conftest.err 27200 } && test -s conftest.$ac_objext; then 27201 ac_header_compiler=yes 27202else 27203 echo "$as_me: failed program was:" >&5 27204sed 's/^/| /' conftest.$ac_ext >&5 27205 27206 ac_header_compiler=no 27207fi 27208 27209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27210{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 27211echo "${ECHO_T}$ac_header_compiler" >&6; } 27212 27213# Is the header present? 27214{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 27215echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 27216cat >conftest.$ac_ext <<_ACEOF 27217/* confdefs.h. */ 27218_ACEOF 27219cat confdefs.h >>conftest.$ac_ext 27220cat >>conftest.$ac_ext <<_ACEOF 27221/* end confdefs.h. */ 27222#include <$ac_header> 27223_ACEOF 27224if { (ac_try="$ac_cpp conftest.$ac_ext" 27225case "(($ac_try" in 27226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27227 *) ac_try_echo=$ac_try;; 27228esac 27229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 27231 ac_status=$? 27232 grep -v '^ *+' conftest.er1 >conftest.err 27233 rm -f conftest.er1 27234 cat conftest.err >&5 27235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27236 (exit $ac_status); } >/dev/null && { 27237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 27238 test ! -s conftest.err 27239 }; then 27240 ac_header_preproc=yes 27241else 27242 echo "$as_me: failed program was:" >&5 27243sed 's/^/| /' conftest.$ac_ext >&5 27244 27245 ac_header_preproc=no 27246fi 27247 27248rm -f conftest.err conftest.$ac_ext 27249{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 27250echo "${ECHO_T}$ac_header_preproc" >&6; } 27251 27252# So? What about this header? 27253case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 27254 yes:no: ) 27255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 27256echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 27257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 27258echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 27259 ac_header_preproc=yes 27260 ;; 27261 no:yes:* ) 27262 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 27263echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 27264 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 27265echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 27266 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 27267echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 27268 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 27269echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 27270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 27271echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 27272 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 27273echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 27274 ( cat <<\_ASBOX 27275## ------------------------------------------- ## 27276## Report this to openssh-unix-dev@mindrot.org ## 27277## ------------------------------------------- ## 27278_ASBOX 27279 ) | sed "s/^/$as_me: WARNING: /" >&2 27280 ;; 27281esac 27282{ echo "$as_me:$LINENO: checking for $ac_header" >&5 27283echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 27284if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 27285 echo $ECHO_N "(cached) $ECHO_C" >&6 27286else 27287 eval "$as_ac_Header=\$ac_header_preproc" 27288fi 27289ac_res=`eval echo '${'$as_ac_Header'}'` 27290 { echo "$as_me:$LINENO: result: $ac_res" >&5 27291echo "${ECHO_T}$ac_res" >&6; } 27292 27293fi 27294if test `eval echo '${'$as_ac_Header'}'` = yes; then 27295 cat >>confdefs.h <<_ACEOF 27296#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 27297_ACEOF 27298 27299else 27300 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 27301echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} 27302 27303fi 27304 27305done 27306 27307 27308 27309fi 27310 27311 27312 27313 oldCPP="$CPPFLAGS" 27314 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" 27315 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then 27316 { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 27317echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; } 27318if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then 27319 echo $ECHO_N "(cached) $ECHO_C" >&6 27320fi 27321{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 27322echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; } 27323else 27324 # Is the header compilable? 27325{ echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5 27326echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; } 27327cat >conftest.$ac_ext <<_ACEOF 27328/* confdefs.h. */ 27329_ACEOF 27330cat confdefs.h >>conftest.$ac_ext 27331cat >>conftest.$ac_ext <<_ACEOF 27332/* end confdefs.h. */ 27333$ac_includes_default 27334#include <gssapi_krb5.h> 27335_ACEOF 27336rm -f conftest.$ac_objext 27337if { (ac_try="$ac_compile" 27338case "(($ac_try" in 27339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27340 *) ac_try_echo=$ac_try;; 27341esac 27342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27343 (eval "$ac_compile") 2>conftest.er1 27344 ac_status=$? 27345 grep -v '^ *+' conftest.er1 >conftest.err 27346 rm -f conftest.er1 27347 cat conftest.err >&5 27348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27349 (exit $ac_status); } && { 27350 test -z "$ac_c_werror_flag" || 27351 test ! -s conftest.err 27352 } && test -s conftest.$ac_objext; then 27353 ac_header_compiler=yes 27354else 27355 echo "$as_me: failed program was:" >&5 27356sed 's/^/| /' conftest.$ac_ext >&5 27357 27358 ac_header_compiler=no 27359fi 27360 27361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27362{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 27363echo "${ECHO_T}$ac_header_compiler" >&6; } 27364 27365# Is the header present? 27366{ echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5 27367echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; } 27368cat >conftest.$ac_ext <<_ACEOF 27369/* confdefs.h. */ 27370_ACEOF 27371cat confdefs.h >>conftest.$ac_ext 27372cat >>conftest.$ac_ext <<_ACEOF 27373/* end confdefs.h. */ 27374#include <gssapi_krb5.h> 27375_ACEOF 27376if { (ac_try="$ac_cpp conftest.$ac_ext" 27377case "(($ac_try" in 27378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27379 *) ac_try_echo=$ac_try;; 27380esac 27381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 27383 ac_status=$? 27384 grep -v '^ *+' conftest.er1 >conftest.err 27385 rm -f conftest.er1 27386 cat conftest.err >&5 27387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27388 (exit $ac_status); } >/dev/null && { 27389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 27390 test ! -s conftest.err 27391 }; then 27392 ac_header_preproc=yes 27393else 27394 echo "$as_me: failed program was:" >&5 27395sed 's/^/| /' conftest.$ac_ext >&5 27396 27397 ac_header_preproc=no 27398fi 27399 27400rm -f conftest.err conftest.$ac_ext 27401{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 27402echo "${ECHO_T}$ac_header_preproc" >&6; } 27403 27404# So? What about this header? 27405case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 27406 yes:no: ) 27407 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5 27408echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 27409 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5 27410echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;} 27411 ac_header_preproc=yes 27412 ;; 27413 no:yes:* ) 27414 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5 27415echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;} 27416 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5 27417echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;} 27418 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5 27419echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;} 27420 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5 27421echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;} 27422 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5 27423echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;} 27424 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5 27425echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;} 27426 ( cat <<\_ASBOX 27427## ------------------------------------------- ## 27428## Report this to openssh-unix-dev@mindrot.org ## 27429## ------------------------------------------- ## 27430_ASBOX 27431 ) | sed "s/^/$as_me: WARNING: /" >&2 27432 ;; 27433esac 27434{ echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 27435echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; } 27436if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then 27437 echo $ECHO_N "(cached) $ECHO_C" >&6 27438else 27439 ac_cv_header_gssapi_krb5_h=$ac_header_preproc 27440fi 27441{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 27442echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; } 27443 27444fi 27445if test $ac_cv_header_gssapi_krb5_h = yes; then 27446 : 27447else 27448 CPPFLAGS="$oldCPP" 27449fi 27450 27451 27452 27453 fi 27454 if test ! -z "$need_dash_r" ; then 27455 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" 27456 fi 27457 if test ! -z "$blibpath" ; then 27458 blibpath="$blibpath:${KRB5ROOT}/lib" 27459 fi 27460 27461 27462 27463for ac_header in gssapi.h gssapi/gssapi.h 27464do 27465as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 27466if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 27467 { echo "$as_me:$LINENO: checking for $ac_header" >&5 27468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 27469if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 27470 echo $ECHO_N "(cached) $ECHO_C" >&6 27471fi 27472ac_res=`eval echo '${'$as_ac_Header'}'` 27473 { echo "$as_me:$LINENO: result: $ac_res" >&5 27474echo "${ECHO_T}$ac_res" >&6; } 27475else 27476 # Is the header compilable? 27477{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 27478echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 27479cat >conftest.$ac_ext <<_ACEOF 27480/* confdefs.h. */ 27481_ACEOF 27482cat confdefs.h >>conftest.$ac_ext 27483cat >>conftest.$ac_ext <<_ACEOF 27484/* end confdefs.h. */ 27485$ac_includes_default 27486#include <$ac_header> 27487_ACEOF 27488rm -f conftest.$ac_objext 27489if { (ac_try="$ac_compile" 27490case "(($ac_try" in 27491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27492 *) ac_try_echo=$ac_try;; 27493esac 27494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27495 (eval "$ac_compile") 2>conftest.er1 27496 ac_status=$? 27497 grep -v '^ *+' conftest.er1 >conftest.err 27498 rm -f conftest.er1 27499 cat conftest.err >&5 27500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27501 (exit $ac_status); } && { 27502 test -z "$ac_c_werror_flag" || 27503 test ! -s conftest.err 27504 } && test -s conftest.$ac_objext; then 27505 ac_header_compiler=yes 27506else 27507 echo "$as_me: failed program was:" >&5 27508sed 's/^/| /' conftest.$ac_ext >&5 27509 27510 ac_header_compiler=no 27511fi 27512 27513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27514{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 27515echo "${ECHO_T}$ac_header_compiler" >&6; } 27516 27517# Is the header present? 27518{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 27519echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 27520cat >conftest.$ac_ext <<_ACEOF 27521/* confdefs.h. */ 27522_ACEOF 27523cat confdefs.h >>conftest.$ac_ext 27524cat >>conftest.$ac_ext <<_ACEOF 27525/* end confdefs.h. */ 27526#include <$ac_header> 27527_ACEOF 27528if { (ac_try="$ac_cpp conftest.$ac_ext" 27529case "(($ac_try" in 27530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27531 *) ac_try_echo=$ac_try;; 27532esac 27533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 27535 ac_status=$? 27536 grep -v '^ *+' conftest.er1 >conftest.err 27537 rm -f conftest.er1 27538 cat conftest.err >&5 27539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27540 (exit $ac_status); } >/dev/null && { 27541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 27542 test ! -s conftest.err 27543 }; then 27544 ac_header_preproc=yes 27545else 27546 echo "$as_me: failed program was:" >&5 27547sed 's/^/| /' conftest.$ac_ext >&5 27548 27549 ac_header_preproc=no 27550fi 27551 27552rm -f conftest.err conftest.$ac_ext 27553{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 27554echo "${ECHO_T}$ac_header_preproc" >&6; } 27555 27556# So? What about this header? 27557case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 27558 yes:no: ) 27559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 27560echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 27561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 27562echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 27563 ac_header_preproc=yes 27564 ;; 27565 no:yes:* ) 27566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 27567echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 27568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 27569echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 27570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 27571echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 27572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 27573echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 27574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 27575echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 27576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 27577echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 27578 ( cat <<\_ASBOX 27579## ------------------------------------------- ## 27580## Report this to openssh-unix-dev@mindrot.org ## 27581## ------------------------------------------- ## 27582_ASBOX 27583 ) | sed "s/^/$as_me: WARNING: /" >&2 27584 ;; 27585esac 27586{ echo "$as_me:$LINENO: checking for $ac_header" >&5 27587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 27588if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 27589 echo $ECHO_N "(cached) $ECHO_C" >&6 27590else 27591 eval "$as_ac_Header=\$ac_header_preproc" 27592fi 27593ac_res=`eval echo '${'$as_ac_Header'}'` 27594 { echo "$as_me:$LINENO: result: $ac_res" >&5 27595echo "${ECHO_T}$ac_res" >&6; } 27596 27597fi 27598if test `eval echo '${'$as_ac_Header'}'` = yes; then 27599 cat >>confdefs.h <<_ACEOF 27600#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 27601_ACEOF 27602 27603fi 27604 27605done 27606 27607 27608 27609for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h 27610do 27611as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 27612if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 27613 { echo "$as_me:$LINENO: checking for $ac_header" >&5 27614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 27615if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 27616 echo $ECHO_N "(cached) $ECHO_C" >&6 27617fi 27618ac_res=`eval echo '${'$as_ac_Header'}'` 27619 { echo "$as_me:$LINENO: result: $ac_res" >&5 27620echo "${ECHO_T}$ac_res" >&6; } 27621else 27622 # Is the header compilable? 27623{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 27624echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 27625cat >conftest.$ac_ext <<_ACEOF 27626/* confdefs.h. */ 27627_ACEOF 27628cat confdefs.h >>conftest.$ac_ext 27629cat >>conftest.$ac_ext <<_ACEOF 27630/* end confdefs.h. */ 27631$ac_includes_default 27632#include <$ac_header> 27633_ACEOF 27634rm -f conftest.$ac_objext 27635if { (ac_try="$ac_compile" 27636case "(($ac_try" in 27637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27638 *) ac_try_echo=$ac_try;; 27639esac 27640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27641 (eval "$ac_compile") 2>conftest.er1 27642 ac_status=$? 27643 grep -v '^ *+' conftest.er1 >conftest.err 27644 rm -f conftest.er1 27645 cat conftest.err >&5 27646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27647 (exit $ac_status); } && { 27648 test -z "$ac_c_werror_flag" || 27649 test ! -s conftest.err 27650 } && test -s conftest.$ac_objext; then 27651 ac_header_compiler=yes 27652else 27653 echo "$as_me: failed program was:" >&5 27654sed 's/^/| /' conftest.$ac_ext >&5 27655 27656 ac_header_compiler=no 27657fi 27658 27659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27660{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 27661echo "${ECHO_T}$ac_header_compiler" >&6; } 27662 27663# Is the header present? 27664{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 27665echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 27666cat >conftest.$ac_ext <<_ACEOF 27667/* confdefs.h. */ 27668_ACEOF 27669cat confdefs.h >>conftest.$ac_ext 27670cat >>conftest.$ac_ext <<_ACEOF 27671/* end confdefs.h. */ 27672#include <$ac_header> 27673_ACEOF 27674if { (ac_try="$ac_cpp conftest.$ac_ext" 27675case "(($ac_try" in 27676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27677 *) ac_try_echo=$ac_try;; 27678esac 27679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 27681 ac_status=$? 27682 grep -v '^ *+' conftest.er1 >conftest.err 27683 rm -f conftest.er1 27684 cat conftest.err >&5 27685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27686 (exit $ac_status); } >/dev/null && { 27687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 27688 test ! -s conftest.err 27689 }; then 27690 ac_header_preproc=yes 27691else 27692 echo "$as_me: failed program was:" >&5 27693sed 's/^/| /' conftest.$ac_ext >&5 27694 27695 ac_header_preproc=no 27696fi 27697 27698rm -f conftest.err conftest.$ac_ext 27699{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 27700echo "${ECHO_T}$ac_header_preproc" >&6; } 27701 27702# So? What about this header? 27703case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 27704 yes:no: ) 27705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 27706echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 27707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 27708echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 27709 ac_header_preproc=yes 27710 ;; 27711 no:yes:* ) 27712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 27713echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 27714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 27715echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 27716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 27717echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 27718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 27719echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 27720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 27721echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 27722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 27723echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 27724 ( cat <<\_ASBOX 27725## ------------------------------------------- ## 27726## Report this to openssh-unix-dev@mindrot.org ## 27727## ------------------------------------------- ## 27728_ASBOX 27729 ) | sed "s/^/$as_me: WARNING: /" >&2 27730 ;; 27731esac 27732{ echo "$as_me:$LINENO: checking for $ac_header" >&5 27733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 27734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 27735 echo $ECHO_N "(cached) $ECHO_C" >&6 27736else 27737 eval "$as_ac_Header=\$ac_header_preproc" 27738fi 27739ac_res=`eval echo '${'$as_ac_Header'}'` 27740 { echo "$as_me:$LINENO: result: $ac_res" >&5 27741echo "${ECHO_T}$ac_res" >&6; } 27742 27743fi 27744if test `eval echo '${'$as_ac_Header'}'` = yes; then 27745 cat >>confdefs.h <<_ACEOF 27746#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 27747_ACEOF 27748 27749fi 27750 27751done 27752 27753 27754 27755for ac_header in gssapi_generic.h gssapi/gssapi_generic.h 27756do 27757as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 27758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 27759 { echo "$as_me:$LINENO: checking for $ac_header" >&5 27760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 27761if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 27762 echo $ECHO_N "(cached) $ECHO_C" >&6 27763fi 27764ac_res=`eval echo '${'$as_ac_Header'}'` 27765 { echo "$as_me:$LINENO: result: $ac_res" >&5 27766echo "${ECHO_T}$ac_res" >&6; } 27767else 27768 # Is the header compilable? 27769{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 27770echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 27771cat >conftest.$ac_ext <<_ACEOF 27772/* confdefs.h. */ 27773_ACEOF 27774cat confdefs.h >>conftest.$ac_ext 27775cat >>conftest.$ac_ext <<_ACEOF 27776/* end confdefs.h. */ 27777$ac_includes_default 27778#include <$ac_header> 27779_ACEOF 27780rm -f conftest.$ac_objext 27781if { (ac_try="$ac_compile" 27782case "(($ac_try" in 27783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27784 *) ac_try_echo=$ac_try;; 27785esac 27786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27787 (eval "$ac_compile") 2>conftest.er1 27788 ac_status=$? 27789 grep -v '^ *+' conftest.er1 >conftest.err 27790 rm -f conftest.er1 27791 cat conftest.err >&5 27792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27793 (exit $ac_status); } && { 27794 test -z "$ac_c_werror_flag" || 27795 test ! -s conftest.err 27796 } && test -s conftest.$ac_objext; then 27797 ac_header_compiler=yes 27798else 27799 echo "$as_me: failed program was:" >&5 27800sed 's/^/| /' conftest.$ac_ext >&5 27801 27802 ac_header_compiler=no 27803fi 27804 27805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27806{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 27807echo "${ECHO_T}$ac_header_compiler" >&6; } 27808 27809# Is the header present? 27810{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 27811echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 27812cat >conftest.$ac_ext <<_ACEOF 27813/* confdefs.h. */ 27814_ACEOF 27815cat confdefs.h >>conftest.$ac_ext 27816cat >>conftest.$ac_ext <<_ACEOF 27817/* end confdefs.h. */ 27818#include <$ac_header> 27819_ACEOF 27820if { (ac_try="$ac_cpp conftest.$ac_ext" 27821case "(($ac_try" in 27822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27823 *) ac_try_echo=$ac_try;; 27824esac 27825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 27827 ac_status=$? 27828 grep -v '^ *+' conftest.er1 >conftest.err 27829 rm -f conftest.er1 27830 cat conftest.err >&5 27831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27832 (exit $ac_status); } >/dev/null && { 27833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 27834 test ! -s conftest.err 27835 }; then 27836 ac_header_preproc=yes 27837else 27838 echo "$as_me: failed program was:" >&5 27839sed 's/^/| /' conftest.$ac_ext >&5 27840 27841 ac_header_preproc=no 27842fi 27843 27844rm -f conftest.err conftest.$ac_ext 27845{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 27846echo "${ECHO_T}$ac_header_preproc" >&6; } 27847 27848# So? What about this header? 27849case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 27850 yes:no: ) 27851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 27852echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 27853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 27854echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 27855 ac_header_preproc=yes 27856 ;; 27857 no:yes:* ) 27858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 27859echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 27860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 27861echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 27862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 27863echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 27864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 27865echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 27866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 27867echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 27868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 27869echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 27870 ( cat <<\_ASBOX 27871## ------------------------------------------- ## 27872## Report this to openssh-unix-dev@mindrot.org ## 27873## ------------------------------------------- ## 27874_ASBOX 27875 ) | sed "s/^/$as_me: WARNING: /" >&2 27876 ;; 27877esac 27878{ echo "$as_me:$LINENO: checking for $ac_header" >&5 27879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 27880if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 27881 echo $ECHO_N "(cached) $ECHO_C" >&6 27882else 27883 eval "$as_ac_Header=\$ac_header_preproc" 27884fi 27885ac_res=`eval echo '${'$as_ac_Header'}'` 27886 { echo "$as_me:$LINENO: result: $ac_res" >&5 27887echo "${ECHO_T}$ac_res" >&6; } 27888 27889fi 27890if test `eval echo '${'$as_ac_Header'}'` = yes; then 27891 cat >>confdefs.h <<_ACEOF 27892#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 27893_ACEOF 27894 27895fi 27896 27897done 27898 27899 27900 LIBS="$LIBS $K5LIBS" 27901 { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5 27902echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; } 27903if test "${ac_cv_search_k_hasafs+set}" = set; then 27904 echo $ECHO_N "(cached) $ECHO_C" >&6 27905else 27906 ac_func_search_save_LIBS=$LIBS 27907cat >conftest.$ac_ext <<_ACEOF 27908/* confdefs.h. */ 27909_ACEOF 27910cat confdefs.h >>conftest.$ac_ext 27911cat >>conftest.$ac_ext <<_ACEOF 27912/* end confdefs.h. */ 27913 27914/* Override any GCC internal prototype to avoid an error. 27915 Use char because int might match the return type of a GCC 27916 builtin and then its argument prototype would still apply. */ 27917#ifdef __cplusplus 27918extern "C" 27919#endif 27920char k_hasafs (); 27921int 27922main () 27923{ 27924return k_hasafs (); 27925 ; 27926 return 0; 27927} 27928_ACEOF 27929for ac_lib in '' kafs; do 27930 if test -z "$ac_lib"; then 27931 ac_res="none required" 27932 else 27933 ac_res=-l$ac_lib 27934 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 27935 fi 27936 rm -f conftest.$ac_objext conftest$ac_exeext 27937if { (ac_try="$ac_link" 27938case "(($ac_try" in 27939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27940 *) ac_try_echo=$ac_try;; 27941esac 27942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27943 (eval "$ac_link") 2>conftest.er1 27944 ac_status=$? 27945 grep -v '^ *+' conftest.er1 >conftest.err 27946 rm -f conftest.er1 27947 cat conftest.err >&5 27948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27949 (exit $ac_status); } && { 27950 test -z "$ac_c_werror_flag" || 27951 test ! -s conftest.err 27952 } && test -s conftest$ac_exeext && 27953 $as_test_x conftest$ac_exeext; then 27954 ac_cv_search_k_hasafs=$ac_res 27955else 27956 echo "$as_me: failed program was:" >&5 27957sed 's/^/| /' conftest.$ac_ext >&5 27958 27959 27960fi 27961 27962rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27963 conftest$ac_exeext 27964 if test "${ac_cv_search_k_hasafs+set}" = set; then 27965 break 27966fi 27967done 27968if test "${ac_cv_search_k_hasafs+set}" = set; then 27969 : 27970else 27971 ac_cv_search_k_hasafs=no 27972fi 27973rm conftest.$ac_ext 27974LIBS=$ac_func_search_save_LIBS 27975fi 27976{ echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5 27977echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; } 27978ac_res=$ac_cv_search_k_hasafs 27979if test "$ac_res" != no; then 27980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 27981 27982cat >>confdefs.h <<\_ACEOF 27983#define USE_AFS 1 27984_ACEOF 27985 27986fi 27987 27988 fi 27989 27990 27991fi 27992 27993 27994# Looking for programs, paths and files 27995 27996PRIVSEP_PATH=/var/empty 27997 27998# Check whether --with-privsep-path was given. 27999if test "${with_privsep_path+set}" = set; then 28000 withval=$with_privsep_path; 28001 if test -n "$withval" && test "x$withval" != "xno" && \ 28002 test "x${withval}" != "xyes"; then 28003 PRIVSEP_PATH=$withval 28004 fi 28005 28006 28007fi 28008 28009 28010 28011 28012# Check whether --with-xauth was given. 28013if test "${with_xauth+set}" = set; then 28014 withval=$with_xauth; 28015 if test -n "$withval" && test "x$withval" != "xno" && \ 28016 test "x${withval}" != "xyes"; then 28017 xauth_path=$withval 28018 fi 28019 28020else 28021 28022 TestPath="$PATH" 28023 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" 28024 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" 28025 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" 28026 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" 28027 # Extract the first word of "xauth", so it can be a program name with args. 28028set dummy xauth; ac_word=$2 28029{ echo "$as_me:$LINENO: checking for $ac_word" >&5 28030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 28031if test "${ac_cv_path_xauth_path+set}" = set; then 28032 echo $ECHO_N "(cached) $ECHO_C" >&6 28033else 28034 case $xauth_path in 28035 [\\/]* | ?:[\\/]*) 28036 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. 28037 ;; 28038 *) 28039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28040for as_dir in $TestPath 28041do 28042 IFS=$as_save_IFS 28043 test -z "$as_dir" && as_dir=. 28044 for ac_exec_ext in '' $ac_executable_extensions; do 28045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 28046 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" 28047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 28048 break 2 28049 fi 28050done 28051done 28052IFS=$as_save_IFS 28053 28054 ;; 28055esac 28056fi 28057xauth_path=$ac_cv_path_xauth_path 28058if test -n "$xauth_path"; then 28059 { echo "$as_me:$LINENO: result: $xauth_path" >&5 28060echo "${ECHO_T}$xauth_path" >&6; } 28061else 28062 { echo "$as_me:$LINENO: result: no" >&5 28063echo "${ECHO_T}no" >&6; } 28064fi 28065 28066 28067 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then 28068 xauth_path="/usr/openwin/bin/xauth" 28069 fi 28070 28071 28072fi 28073 28074 28075STRIP_OPT=-s 28076# Check whether --enable-strip was given. 28077if test "${enable_strip+set}" = set; then 28078 enableval=$enable_strip; 28079 if test "x$enableval" = "xno" ; then 28080 STRIP_OPT= 28081 fi 28082 28083 28084fi 28085 28086 28087 28088if test -z "$xauth_path" ; then 28089 XAUTH_PATH="undefined" 28090 28091else 28092 28093cat >>confdefs.h <<_ACEOF 28094#define XAUTH_PATH "$xauth_path" 28095_ACEOF 28096 28097 XAUTH_PATH=$xauth_path 28098 28099fi 28100 28101# Check for mail directory (last resort if we cannot get it from headers) 28102if test ! -z "$MAIL" ; then 28103 maildir=`dirname $MAIL` 28104 28105cat >>confdefs.h <<_ACEOF 28106#define MAIL_DIRECTORY "$maildir" 28107_ACEOF 28108 28109fi 28110 28111if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then 28112 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 28113echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} 28114 disable_ptmx_check=yes 28115fi 28116if test -z "$no_dev_ptmx" ; then 28117 if test "x$disable_ptmx_check" != "xyes" ; then 28118 { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5 28119echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; } 28120if test "${ac_cv_file___dev_ptmx_+set}" = set; then 28121 echo $ECHO_N "(cached) $ECHO_C" >&6 28122else 28123 test "$cross_compiling" = yes && 28124 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 28125echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 28126 { (exit 1); exit 1; }; } 28127if test -r ""/dev/ptmx""; then 28128 ac_cv_file___dev_ptmx_=yes 28129else 28130 ac_cv_file___dev_ptmx_=no 28131fi 28132fi 28133{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5 28134echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; } 28135if test $ac_cv_file___dev_ptmx_ = yes; then 28136 28137 28138cat >>confdefs.h <<_ACEOF 28139#define HAVE_DEV_PTMX 1 28140_ACEOF 28141 28142 have_dev_ptmx=1 28143 28144 28145fi 28146 28147 fi 28148fi 28149 28150if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then 28151 { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5 28152echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; } 28153if test "${ac_cv_file___dev_ptc_+set}" = set; then 28154 echo $ECHO_N "(cached) $ECHO_C" >&6 28155else 28156 test "$cross_compiling" = yes && 28157 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 28158echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 28159 { (exit 1); exit 1; }; } 28160if test -r ""/dev/ptc""; then 28161 ac_cv_file___dev_ptc_=yes 28162else 28163 ac_cv_file___dev_ptc_=no 28164fi 28165fi 28166{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5 28167echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; } 28168if test $ac_cv_file___dev_ptc_ = yes; then 28169 28170 28171cat >>confdefs.h <<_ACEOF 28172#define HAVE_DEV_PTS_AND_PTC 1 28173_ACEOF 28174 28175 have_dev_ptc=1 28176 28177 28178fi 28179 28180else 28181 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5 28182echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} 28183fi 28184 28185# Options from here on. Some of these are preset by platform above 28186 28187# Check whether --with-mantype was given. 28188if test "${with_mantype+set}" = set; then 28189 withval=$with_mantype; 28190 case "$withval" in 28191 man|cat|doc) 28192 MANTYPE=$withval 28193 ;; 28194 *) 28195 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5 28196echo "$as_me: error: invalid man type: $withval" >&2;} 28197 { (exit 1); exit 1; }; } 28198 ;; 28199 esac 28200 28201 28202fi 28203 28204if test -z "$MANTYPE"; then 28205 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" 28206 for ac_prog in nroff awf 28207do 28208 # Extract the first word of "$ac_prog", so it can be a program name with args. 28209set dummy $ac_prog; ac_word=$2 28210{ echo "$as_me:$LINENO: checking for $ac_word" >&5 28211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 28212if test "${ac_cv_path_NROFF+set}" = set; then 28213 echo $ECHO_N "(cached) $ECHO_C" >&6 28214else 28215 case $NROFF in 28216 [\\/]* | ?:[\\/]*) 28217 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. 28218 ;; 28219 *) 28220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28221for as_dir in $TestPath 28222do 28223 IFS=$as_save_IFS 28224 test -z "$as_dir" && as_dir=. 28225 for ac_exec_ext in '' $ac_executable_extensions; do 28226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 28227 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" 28228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 28229 break 2 28230 fi 28231done 28232done 28233IFS=$as_save_IFS 28234 28235 ;; 28236esac 28237fi 28238NROFF=$ac_cv_path_NROFF 28239if test -n "$NROFF"; then 28240 { echo "$as_me:$LINENO: result: $NROFF" >&5 28241echo "${ECHO_T}$NROFF" >&6; } 28242else 28243 { echo "$as_me:$LINENO: result: no" >&5 28244echo "${ECHO_T}no" >&6; } 28245fi 28246 28247 28248 test -n "$NROFF" && break 28249done 28250test -n "$NROFF" || NROFF="/bin/false" 28251 28252 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then 28253 MANTYPE=doc 28254 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then 28255 MANTYPE=man 28256 else 28257 MANTYPE=cat 28258 fi 28259fi 28260 28261if test "$MANTYPE" = "doc"; then 28262 mansubdir=man; 28263else 28264 mansubdir=$MANTYPE; 28265fi 28266 28267 28268# Check whether to enable MD5 passwords 28269MD5_MSG="no" 28270 28271# Check whether --with-md5-passwords was given. 28272if test "${with_md5_passwords+set}" = set; then 28273 withval=$with_md5_passwords; 28274 if test "x$withval" != "xno" ; then 28275 28276cat >>confdefs.h <<\_ACEOF 28277#define HAVE_MD5_PASSWORDS 1 28278_ACEOF 28279 28280 MD5_MSG="yes" 28281 fi 28282 28283 28284fi 28285 28286 28287# Whether to disable shadow password support 28288 28289# Check whether --with-shadow was given. 28290if test "${with_shadow+set}" = set; then 28291 withval=$with_shadow; 28292 if test "x$withval" = "xno" ; then 28293 cat >>confdefs.h <<\_ACEOF 28294#define DISABLE_SHADOW 1 28295_ACEOF 28296 28297 disable_shadow=yes 28298 fi 28299 28300 28301fi 28302 28303 28304if test -z "$disable_shadow" ; then 28305 { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5 28306echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; } 28307 cat >conftest.$ac_ext <<_ACEOF 28308/* confdefs.h. */ 28309_ACEOF 28310cat confdefs.h >>conftest.$ac_ext 28311cat >>conftest.$ac_ext <<_ACEOF 28312/* end confdefs.h. */ 28313 28314#include <sys/types.h> 28315#include <shadow.h> 28316 struct spwd sp; 28317 28318int 28319main () 28320{ 28321 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; 28322 ; 28323 return 0; 28324} 28325_ACEOF 28326rm -f conftest.$ac_objext 28327if { (ac_try="$ac_compile" 28328case "(($ac_try" in 28329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28330 *) ac_try_echo=$ac_try;; 28331esac 28332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28333 (eval "$ac_compile") 2>conftest.er1 28334 ac_status=$? 28335 grep -v '^ *+' conftest.er1 >conftest.err 28336 rm -f conftest.er1 28337 cat conftest.err >&5 28338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28339 (exit $ac_status); } && { 28340 test -z "$ac_c_werror_flag" || 28341 test ! -s conftest.err 28342 } && test -s conftest.$ac_objext; then 28343 sp_expire_available=yes 28344else 28345 echo "$as_me: failed program was:" >&5 28346sed 's/^/| /' conftest.$ac_ext >&5 28347 28348 28349 28350fi 28351 28352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28353 28354 if test "x$sp_expire_available" = "xyes" ; then 28355 { echo "$as_me:$LINENO: result: yes" >&5 28356echo "${ECHO_T}yes" >&6; } 28357 28358cat >>confdefs.h <<\_ACEOF 28359#define HAS_SHADOW_EXPIRE 1 28360_ACEOF 28361 28362 else 28363 { echo "$as_me:$LINENO: result: no" >&5 28364echo "${ECHO_T}no" >&6; } 28365 fi 28366fi 28367 28368# Use ip address instead of hostname in $DISPLAY 28369if test ! -z "$IPADDR_IN_DISPLAY" ; then 28370 DISPLAY_HACK_MSG="yes" 28371 28372cat >>confdefs.h <<\_ACEOF 28373#define IPADDR_IN_DISPLAY 1 28374_ACEOF 28375 28376else 28377 DISPLAY_HACK_MSG="no" 28378 28379# Check whether --with-ipaddr-display was given. 28380if test "${with_ipaddr_display+set}" = set; then 28381 withval=$with_ipaddr_display; 28382 if test "x$withval" != "xno" ; then 28383 cat >>confdefs.h <<\_ACEOF 28384#define IPADDR_IN_DISPLAY 1 28385_ACEOF 28386 28387 DISPLAY_HACK_MSG="yes" 28388 fi 28389 28390 28391fi 28392 28393fi 28394 28395# check for /etc/default/login and use it if present. 28396# Check whether --enable-etc-default-login was given. 28397if test "${enable_etc_default_login+set}" = set; then 28398 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then 28399 { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5 28400echo "$as_me: /etc/default/login handling disabled" >&6;} 28401 etc_default_login=no 28402 else 28403 etc_default_login=yes 28404 fi 28405else 28406 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; 28407 then 28408 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5 28409echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;} 28410 etc_default_login=no 28411 else 28412 etc_default_login=yes 28413 fi 28414 28415fi 28416 28417 28418if test "x$etc_default_login" != "xno"; then 28419 { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5 28420echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; } 28421if test "${ac_cv_file___etc_default_login_+set}" = set; then 28422 echo $ECHO_N "(cached) $ECHO_C" >&6 28423else 28424 test "$cross_compiling" = yes && 28425 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 28426echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 28427 { (exit 1); exit 1; }; } 28428if test -r ""/etc/default/login""; then 28429 ac_cv_file___etc_default_login_=yes 28430else 28431 ac_cv_file___etc_default_login_=no 28432fi 28433fi 28434{ echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5 28435echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; } 28436if test $ac_cv_file___etc_default_login_ = yes; then 28437 external_path_file=/etc/default/login 28438fi 28439 28440 if test "x$external_path_file" = "x/etc/default/login"; then 28441 28442cat >>confdefs.h <<\_ACEOF 28443#define HAVE_ETC_DEFAULT_LOGIN 1 28444_ACEOF 28445 28446 fi 28447fi 28448 28449if test $ac_cv_func_login_getcapbool = "yes" && \ 28450 test $ac_cv_header_login_cap_h = "yes" ; then 28451 external_path_file=/etc/login.conf 28452fi 28453 28454# Whether to mess with the default path 28455SERVER_PATH_MSG="(default)" 28456 28457# Check whether --with-default-path was given. 28458if test "${with_default_path+set}" = set; then 28459 withval=$with_default_path; 28460 if test "x$external_path_file" = "x/etc/login.conf" ; then 28461 { echo "$as_me:$LINENO: WARNING: 28462--with-default-path=PATH has no effect on this system. 28463Edit /etc/login.conf instead." >&5 28464echo "$as_me: WARNING: 28465--with-default-path=PATH has no effect on this system. 28466Edit /etc/login.conf instead." >&2;} 28467 elif test "x$withval" != "xno" ; then 28468 if test ! -z "$external_path_file" ; then 28469 { echo "$as_me:$LINENO: WARNING: 28470--with-default-path=PATH will only be used if PATH is not defined in 28471$external_path_file ." >&5 28472echo "$as_me: WARNING: 28473--with-default-path=PATH will only be used if PATH is not defined in 28474$external_path_file ." >&2;} 28475 fi 28476 user_path="$withval" 28477 SERVER_PATH_MSG="$withval" 28478 fi 28479 28480else 28481 if test "x$external_path_file" = "x/etc/login.conf" ; then 28482 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 28483echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} 28484 else 28485 if test ! -z "$external_path_file" ; then 28486 { echo "$as_me:$LINENO: WARNING: 28487If PATH is defined in $external_path_file, ensure the path to scp is included, 28488otherwise scp will not work." >&5 28489echo "$as_me: WARNING: 28490If PATH is defined in $external_path_file, ensure the path to scp is included, 28491otherwise scp will not work." >&2;} 28492 fi 28493 if test "$cross_compiling" = yes; then 28494 user_path="/usr/bin:/bin:/usr/sbin:/sbin" 28495 28496else 28497 cat >conftest.$ac_ext <<_ACEOF 28498/* confdefs.h. */ 28499_ACEOF 28500cat confdefs.h >>conftest.$ac_ext 28501cat >>conftest.$ac_ext <<_ACEOF 28502/* end confdefs.h. */ 28503 28504/* find out what STDPATH is */ 28505#include <stdio.h> 28506#ifdef HAVE_PATHS_H 28507# include <paths.h> 28508#endif 28509#ifndef _PATH_STDPATH 28510# ifdef _PATH_USERPATH /* Irix */ 28511# define _PATH_STDPATH _PATH_USERPATH 28512# else 28513# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" 28514# endif 28515#endif 28516#include <sys/types.h> 28517#include <sys/stat.h> 28518#include <fcntl.h> 28519#define DATA "conftest.stdpath" 28520 28521main() 28522{ 28523 FILE *fd; 28524 int rc; 28525 28526 fd = fopen(DATA,"w"); 28527 if(fd == NULL) 28528 exit(1); 28529 28530 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) 28531 exit(1); 28532 28533 exit(0); 28534} 28535 28536_ACEOF 28537rm -f conftest$ac_exeext 28538if { (ac_try="$ac_link" 28539case "(($ac_try" in 28540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28541 *) ac_try_echo=$ac_try;; 28542esac 28543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28544 (eval "$ac_link") 2>&5 28545 ac_status=$? 28546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 28548 { (case "(($ac_try" in 28549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28550 *) ac_try_echo=$ac_try;; 28551esac 28552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28553 (eval "$ac_try") 2>&5 28554 ac_status=$? 28555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28556 (exit $ac_status); }; }; then 28557 user_path=`cat conftest.stdpath` 28558else 28559 echo "$as_me: program exited with status $ac_status" >&5 28560echo "$as_me: failed program was:" >&5 28561sed 's/^/| /' conftest.$ac_ext >&5 28562 28563( exit $ac_status ) 28564 user_path="/usr/bin:/bin:/usr/sbin:/sbin" 28565fi 28566rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 28567fi 28568 28569 28570# make sure $bindir is in USER_PATH so scp will work 28571 t_bindir=`eval echo ${bindir}` 28572 case $t_bindir in 28573 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; 28574 esac 28575 case $t_bindir in 28576 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; 28577 esac 28578 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 28579 if test $? -ne 0 ; then 28580 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 28581 if test $? -ne 0 ; then 28582 user_path=$user_path:$t_bindir 28583 { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5 28584echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; } 28585 fi 28586 fi 28587 fi 28588 28589fi 28590 28591if test "x$external_path_file" != "x/etc/login.conf" ; then 28592 28593cat >>confdefs.h <<_ACEOF 28594#define USER_PATH "$user_path" 28595_ACEOF 28596 28597 28598fi 28599 28600# Set superuser path separately to user path 28601 28602# Check whether --with-superuser-path was given. 28603if test "${with_superuser_path+set}" = set; then 28604 withval=$with_superuser_path; 28605 if test -n "$withval" && test "x$withval" != "xno" && \ 28606 test "x${withval}" != "xyes"; then 28607 28608cat >>confdefs.h <<_ACEOF 28609#define SUPERUSER_PATH "$withval" 28610_ACEOF 28611 28612 superuser_path=$withval 28613 fi 28614 28615 28616fi 28617 28618 28619 28620{ echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 28621echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; } 28622IPV4_IN6_HACK_MSG="no" 28623 28624# Check whether --with-4in6 was given. 28625if test "${with_4in6+set}" = set; then 28626 withval=$with_4in6; 28627 if test "x$withval" != "xno" ; then 28628 { echo "$as_me:$LINENO: result: yes" >&5 28629echo "${ECHO_T}yes" >&6; } 28630 28631cat >>confdefs.h <<\_ACEOF 28632#define IPV4_IN_IPV6 1 28633_ACEOF 28634 28635 IPV4_IN6_HACK_MSG="yes" 28636 else 28637 { echo "$as_me:$LINENO: result: no" >&5 28638echo "${ECHO_T}no" >&6; } 28639 fi 28640 28641else 28642 28643 if test "x$inet6_default_4in6" = "xyes"; then 28644 { echo "$as_me:$LINENO: result: yes (default)" >&5 28645echo "${ECHO_T}yes (default)" >&6; } 28646 cat >>confdefs.h <<\_ACEOF 28647#define IPV4_IN_IPV6 1 28648_ACEOF 28649 28650 IPV4_IN6_HACK_MSG="yes" 28651 else 28652 { echo "$as_me:$LINENO: result: no (default)" >&5 28653echo "${ECHO_T}no (default)" >&6; } 28654 fi 28655 28656 28657fi 28658 28659 28660# Whether to enable BSD auth support 28661BSD_AUTH_MSG=no 28662 28663# Check whether --with-bsd-auth was given. 28664if test "${with_bsd_auth+set}" = set; then 28665 withval=$with_bsd_auth; 28666 if test "x$withval" != "xno" ; then 28667 28668cat >>confdefs.h <<\_ACEOF 28669#define BSD_AUTH 1 28670_ACEOF 28671 28672 BSD_AUTH_MSG=yes 28673 fi 28674 28675 28676fi 28677 28678 28679# Where to place sshd.pid 28680piddir=/var/run 28681# make sure the directory exists 28682if test ! -d $piddir ; then 28683 piddir=`eval echo ${sysconfdir}` 28684 case $piddir in 28685 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; 28686 esac 28687fi 28688 28689 28690# Check whether --with-pid-dir was given. 28691if test "${with_pid_dir+set}" = set; then 28692 withval=$with_pid_dir; 28693 if test -n "$withval" && test "x$withval" != "xno" && \ 28694 test "x${withval}" != "xyes"; then 28695 piddir=$withval 28696 if test ! -d $piddir ; then 28697 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5 28698echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} 28699 fi 28700 fi 28701 28702 28703fi 28704 28705 28706 28707cat >>confdefs.h <<_ACEOF 28708#define _PATH_SSH_PIDDIR "$piddir" 28709_ACEOF 28710 28711 28712 28713# Check whether --enable-lastlog was given. 28714if test "${enable_lastlog+set}" = set; then 28715 enableval=$enable_lastlog; 28716 if test "x$enableval" = "xno" ; then 28717 cat >>confdefs.h <<\_ACEOF 28718#define DISABLE_LASTLOG 1 28719_ACEOF 28720 28721 fi 28722 28723 28724fi 28725 28726# Check whether --enable-utmp was given. 28727if test "${enable_utmp+set}" = set; then 28728 enableval=$enable_utmp; 28729 if test "x$enableval" = "xno" ; then 28730 cat >>confdefs.h <<\_ACEOF 28731#define DISABLE_UTMP 1 28732_ACEOF 28733 28734 fi 28735 28736 28737fi 28738 28739# Check whether --enable-utmpx was given. 28740if test "${enable_utmpx+set}" = set; then 28741 enableval=$enable_utmpx; 28742 if test "x$enableval" = "xno" ; then 28743 28744cat >>confdefs.h <<\_ACEOF 28745#define DISABLE_UTMPX 1 28746_ACEOF 28747 28748 fi 28749 28750 28751fi 28752 28753# Check whether --enable-wtmp was given. 28754if test "${enable_wtmp+set}" = set; then 28755 enableval=$enable_wtmp; 28756 if test "x$enableval" = "xno" ; then 28757 cat >>confdefs.h <<\_ACEOF 28758#define DISABLE_WTMP 1 28759_ACEOF 28760 28761 fi 28762 28763 28764fi 28765 28766# Check whether --enable-wtmpx was given. 28767if test "${enable_wtmpx+set}" = set; then 28768 enableval=$enable_wtmpx; 28769 if test "x$enableval" = "xno" ; then 28770 28771cat >>confdefs.h <<\_ACEOF 28772#define DISABLE_WTMPX 1 28773_ACEOF 28774 28775 fi 28776 28777 28778fi 28779 28780# Check whether --enable-libutil was given. 28781if test "${enable_libutil+set}" = set; then 28782 enableval=$enable_libutil; 28783 if test "x$enableval" = "xno" ; then 28784 cat >>confdefs.h <<\_ACEOF 28785#define DISABLE_LOGIN 1 28786_ACEOF 28787 28788 fi 28789 28790 28791fi 28792 28793# Check whether --enable-pututline was given. 28794if test "${enable_pututline+set}" = set; then 28795 enableval=$enable_pututline; 28796 if test "x$enableval" = "xno" ; then 28797 28798cat >>confdefs.h <<\_ACEOF 28799#define DISABLE_PUTUTLINE 1 28800_ACEOF 28801 28802 fi 28803 28804 28805fi 28806 28807# Check whether --enable-pututxline was given. 28808if test "${enable_pututxline+set}" = set; then 28809 enableval=$enable_pututxline; 28810 if test "x$enableval" = "xno" ; then 28811 28812cat >>confdefs.h <<\_ACEOF 28813#define DISABLE_PUTUTXLINE 1 28814_ACEOF 28815 28816 fi 28817 28818 28819fi 28820 28821 28822# Check whether --with-lastlog was given. 28823if test "${with_lastlog+set}" = set; then 28824 withval=$with_lastlog; 28825 if test "x$withval" = "xno" ; then 28826 cat >>confdefs.h <<\_ACEOF 28827#define DISABLE_LASTLOG 1 28828_ACEOF 28829 28830 elif test -n "$withval" && test "x${withval}" != "xyes"; then 28831 conf_lastlog_location=$withval 28832 fi 28833 28834 28835fi 28836 28837 28838 28839{ echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5 28840echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; } 28841cat >conftest.$ac_ext <<_ACEOF 28842/* confdefs.h. */ 28843_ACEOF 28844cat confdefs.h >>conftest.$ac_ext 28845cat >>conftest.$ac_ext <<_ACEOF 28846/* end confdefs.h. */ 28847 28848#include <sys/types.h> 28849#include <utmp.h> 28850#ifdef HAVE_LASTLOG_H 28851# include <lastlog.h> 28852#endif 28853#ifdef HAVE_PATHS_H 28854# include <paths.h> 28855#endif 28856#ifdef HAVE_LOGIN_H 28857# include <login.h> 28858#endif 28859 28860int 28861main () 28862{ 28863 char *lastlog = LASTLOG_FILE; 28864 ; 28865 return 0; 28866} 28867_ACEOF 28868rm -f conftest.$ac_objext 28869if { (ac_try="$ac_compile" 28870case "(($ac_try" in 28871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28872 *) ac_try_echo=$ac_try;; 28873esac 28874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28875 (eval "$ac_compile") 2>conftest.er1 28876 ac_status=$? 28877 grep -v '^ *+' conftest.er1 >conftest.err 28878 rm -f conftest.er1 28879 cat conftest.err >&5 28880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28881 (exit $ac_status); } && { 28882 test -z "$ac_c_werror_flag" || 28883 test ! -s conftest.err 28884 } && test -s conftest.$ac_objext; then 28885 { echo "$as_me:$LINENO: result: yes" >&5 28886echo "${ECHO_T}yes" >&6; } 28887else 28888 echo "$as_me: failed program was:" >&5 28889sed 's/^/| /' conftest.$ac_ext >&5 28890 28891 28892 { echo "$as_me:$LINENO: result: no" >&5 28893echo "${ECHO_T}no" >&6; } 28894 { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5 28895echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; } 28896 cat >conftest.$ac_ext <<_ACEOF 28897/* confdefs.h. */ 28898_ACEOF 28899cat confdefs.h >>conftest.$ac_ext 28900cat >>conftest.$ac_ext <<_ACEOF 28901/* end confdefs.h. */ 28902 28903#include <sys/types.h> 28904#include <utmp.h> 28905#ifdef HAVE_LASTLOG_H 28906# include <lastlog.h> 28907#endif 28908#ifdef HAVE_PATHS_H 28909# include <paths.h> 28910#endif 28911 28912int 28913main () 28914{ 28915 char *lastlog = _PATH_LASTLOG; 28916 ; 28917 return 0; 28918} 28919_ACEOF 28920rm -f conftest.$ac_objext 28921if { (ac_try="$ac_compile" 28922case "(($ac_try" in 28923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28924 *) ac_try_echo=$ac_try;; 28925esac 28926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28927 (eval "$ac_compile") 2>conftest.er1 28928 ac_status=$? 28929 grep -v '^ *+' conftest.er1 >conftest.err 28930 rm -f conftest.er1 28931 cat conftest.err >&5 28932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28933 (exit $ac_status); } && { 28934 test -z "$ac_c_werror_flag" || 28935 test ! -s conftest.err 28936 } && test -s conftest.$ac_objext; then 28937 { echo "$as_me:$LINENO: result: yes" >&5 28938echo "${ECHO_T}yes" >&6; } 28939else 28940 echo "$as_me: failed program was:" >&5 28941sed 's/^/| /' conftest.$ac_ext >&5 28942 28943 28944 { echo "$as_me:$LINENO: result: no" >&5 28945echo "${ECHO_T}no" >&6; } 28946 system_lastlog_path=no 28947 28948fi 28949 28950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28951 28952 28953fi 28954 28955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28956 28957if test -z "$conf_lastlog_location"; then 28958 if test x"$system_lastlog_path" = x"no" ; then 28959 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do 28960 if (test -d "$f" || test -f "$f") ; then 28961 conf_lastlog_location=$f 28962 fi 28963 done 28964 if test -z "$conf_lastlog_location"; then 28965 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5 28966echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} 28967 fi 28968 fi 28969fi 28970 28971if test -n "$conf_lastlog_location"; then 28972 28973cat >>confdefs.h <<_ACEOF 28974#define CONF_LASTLOG_FILE "$conf_lastlog_location" 28975_ACEOF 28976 28977fi 28978 28979{ echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5 28980echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; } 28981cat >conftest.$ac_ext <<_ACEOF 28982/* confdefs.h. */ 28983_ACEOF 28984cat confdefs.h >>conftest.$ac_ext 28985cat >>conftest.$ac_ext <<_ACEOF 28986/* end confdefs.h. */ 28987 28988#include <sys/types.h> 28989#include <utmp.h> 28990#ifdef HAVE_PATHS_H 28991# include <paths.h> 28992#endif 28993 28994int 28995main () 28996{ 28997 char *utmp = UTMP_FILE; 28998 ; 28999 return 0; 29000} 29001_ACEOF 29002rm -f conftest.$ac_objext 29003if { (ac_try="$ac_compile" 29004case "(($ac_try" in 29005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29006 *) ac_try_echo=$ac_try;; 29007esac 29008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29009 (eval "$ac_compile") 2>conftest.er1 29010 ac_status=$? 29011 grep -v '^ *+' conftest.er1 >conftest.err 29012 rm -f conftest.er1 29013 cat conftest.err >&5 29014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29015 (exit $ac_status); } && { 29016 test -z "$ac_c_werror_flag" || 29017 test ! -s conftest.err 29018 } && test -s conftest.$ac_objext; then 29019 { echo "$as_me:$LINENO: result: yes" >&5 29020echo "${ECHO_T}yes" >&6; } 29021else 29022 echo "$as_me: failed program was:" >&5 29023sed 's/^/| /' conftest.$ac_ext >&5 29024 29025 { echo "$as_me:$LINENO: result: no" >&5 29026echo "${ECHO_T}no" >&6; } 29027 system_utmp_path=no 29028 29029fi 29030 29031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29032if test -z "$conf_utmp_location"; then 29033 if test x"$system_utmp_path" = x"no" ; then 29034 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do 29035 if test -f $f ; then 29036 conf_utmp_location=$f 29037 fi 29038 done 29039 if test -z "$conf_utmp_location"; then 29040 cat >>confdefs.h <<\_ACEOF 29041#define DISABLE_UTMP 1 29042_ACEOF 29043 29044 fi 29045 fi 29046fi 29047if test -n "$conf_utmp_location"; then 29048 29049cat >>confdefs.h <<_ACEOF 29050#define CONF_UTMP_FILE "$conf_utmp_location" 29051_ACEOF 29052 29053fi 29054 29055{ echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5 29056echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; } 29057cat >conftest.$ac_ext <<_ACEOF 29058/* confdefs.h. */ 29059_ACEOF 29060cat confdefs.h >>conftest.$ac_ext 29061cat >>conftest.$ac_ext <<_ACEOF 29062/* end confdefs.h. */ 29063 29064#include <sys/types.h> 29065#include <utmp.h> 29066#ifdef HAVE_PATHS_H 29067# include <paths.h> 29068#endif 29069 29070int 29071main () 29072{ 29073 char *wtmp = WTMP_FILE; 29074 ; 29075 return 0; 29076} 29077_ACEOF 29078rm -f conftest.$ac_objext 29079if { (ac_try="$ac_compile" 29080case "(($ac_try" in 29081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29082 *) ac_try_echo=$ac_try;; 29083esac 29084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29085 (eval "$ac_compile") 2>conftest.er1 29086 ac_status=$? 29087 grep -v '^ *+' conftest.er1 >conftest.err 29088 rm -f conftest.er1 29089 cat conftest.err >&5 29090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29091 (exit $ac_status); } && { 29092 test -z "$ac_c_werror_flag" || 29093 test ! -s conftest.err 29094 } && test -s conftest.$ac_objext; then 29095 { echo "$as_me:$LINENO: result: yes" >&5 29096echo "${ECHO_T}yes" >&6; } 29097else 29098 echo "$as_me: failed program was:" >&5 29099sed 's/^/| /' conftest.$ac_ext >&5 29100 29101 { echo "$as_me:$LINENO: result: no" >&5 29102echo "${ECHO_T}no" >&6; } 29103 system_wtmp_path=no 29104 29105fi 29106 29107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29108if test -z "$conf_wtmp_location"; then 29109 if test x"$system_wtmp_path" = x"no" ; then 29110 for f in /usr/adm/wtmp /var/log/wtmp; do 29111 if test -f $f ; then 29112 conf_wtmp_location=$f 29113 fi 29114 done 29115 if test -z "$conf_wtmp_location"; then 29116 cat >>confdefs.h <<\_ACEOF 29117#define DISABLE_WTMP 1 29118_ACEOF 29119 29120 fi 29121 fi 29122fi 29123if test -n "$conf_wtmp_location"; then 29124 29125cat >>confdefs.h <<_ACEOF 29126#define CONF_WTMP_FILE "$conf_wtmp_location" 29127_ACEOF 29128 29129fi 29130 29131 29132{ echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5 29133echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6; } 29134cat >conftest.$ac_ext <<_ACEOF 29135/* confdefs.h. */ 29136_ACEOF 29137cat confdefs.h >>conftest.$ac_ext 29138cat >>conftest.$ac_ext <<_ACEOF 29139/* end confdefs.h. */ 29140 29141#include <sys/types.h> 29142#include <utmp.h> 29143#ifdef HAVE_UTMPX_H 29144#include <utmpx.h> 29145#endif 29146#ifdef HAVE_PATHS_H 29147# include <paths.h> 29148#endif 29149 29150int 29151main () 29152{ 29153 char *utmpx = UTMPX_FILE; 29154 ; 29155 return 0; 29156} 29157_ACEOF 29158rm -f conftest.$ac_objext 29159if { (ac_try="$ac_compile" 29160case "(($ac_try" in 29161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29162 *) ac_try_echo=$ac_try;; 29163esac 29164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29165 (eval "$ac_compile") 2>conftest.er1 29166 ac_status=$? 29167 grep -v '^ *+' conftest.er1 >conftest.err 29168 rm -f conftest.er1 29169 cat conftest.err >&5 29170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29171 (exit $ac_status); } && { 29172 test -z "$ac_c_werror_flag" || 29173 test ! -s conftest.err 29174 } && test -s conftest.$ac_objext; then 29175 { echo "$as_me:$LINENO: result: yes" >&5 29176echo "${ECHO_T}yes" >&6; } 29177else 29178 echo "$as_me: failed program was:" >&5 29179sed 's/^/| /' conftest.$ac_ext >&5 29180 29181 { echo "$as_me:$LINENO: result: no" >&5 29182echo "${ECHO_T}no" >&6; } 29183 system_utmpx_path=no 29184 29185fi 29186 29187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29188if test -z "$conf_utmpx_location"; then 29189 if test x"$system_utmpx_path" = x"no" ; then 29190 cat >>confdefs.h <<\_ACEOF 29191#define DISABLE_UTMPX 1 29192_ACEOF 29193 29194 fi 29195else 29196 29197cat >>confdefs.h <<_ACEOF 29198#define CONF_UTMPX_FILE "$conf_utmpx_location" 29199_ACEOF 29200 29201fi 29202 29203{ echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5 29204echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; } 29205cat >conftest.$ac_ext <<_ACEOF 29206/* confdefs.h. */ 29207_ACEOF 29208cat confdefs.h >>conftest.$ac_ext 29209cat >>conftest.$ac_ext <<_ACEOF 29210/* end confdefs.h. */ 29211 29212#include <sys/types.h> 29213#include <utmp.h> 29214#ifdef HAVE_UTMPX_H 29215#include <utmpx.h> 29216#endif 29217#ifdef HAVE_PATHS_H 29218# include <paths.h> 29219#endif 29220 29221int 29222main () 29223{ 29224 char *wtmpx = WTMPX_FILE; 29225 ; 29226 return 0; 29227} 29228_ACEOF 29229rm -f conftest.$ac_objext 29230if { (ac_try="$ac_compile" 29231case "(($ac_try" in 29232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29233 *) ac_try_echo=$ac_try;; 29234esac 29235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29236 (eval "$ac_compile") 2>conftest.er1 29237 ac_status=$? 29238 grep -v '^ *+' conftest.er1 >conftest.err 29239 rm -f conftest.er1 29240 cat conftest.err >&5 29241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29242 (exit $ac_status); } && { 29243 test -z "$ac_c_werror_flag" || 29244 test ! -s conftest.err 29245 } && test -s conftest.$ac_objext; then 29246 { echo "$as_me:$LINENO: result: yes" >&5 29247echo "${ECHO_T}yes" >&6; } 29248else 29249 echo "$as_me: failed program was:" >&5 29250sed 's/^/| /' conftest.$ac_ext >&5 29251 29252 { echo "$as_me:$LINENO: result: no" >&5 29253echo "${ECHO_T}no" >&6; } 29254 system_wtmpx_path=no 29255 29256fi 29257 29258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29259if test -z "$conf_wtmpx_location"; then 29260 if test x"$system_wtmpx_path" = x"no" ; then 29261 cat >>confdefs.h <<\_ACEOF 29262#define DISABLE_WTMPX 1 29263_ACEOF 29264 29265 fi 29266else 29267 29268cat >>confdefs.h <<_ACEOF 29269#define CONF_WTMPX_FILE "$conf_wtmpx_location" 29270_ACEOF 29271 29272fi 29273 29274 29275if test ! -z "$blibpath" ; then 29276 LDFLAGS="$LDFLAGS $blibflags$blibpath" 29277 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 29278echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} 29279fi 29280 29281CFLAGS="$CFLAGS $werror_flags" 29282 29283if grep "#define BROKEN_GETADDRINFO 1" confdefs.h >/dev/null || \ 29284 test "x$ac_cv_func_getaddrinfo" != "xyes" ; then 29285 TEST_SSH_IPV6=no 29286 29287else 29288 TEST_SSH_IPV6=yes 29289 29290fi 29291 29292 29293ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile scard/Makefile ssh_prng_cmds survey.sh" 29294 29295cat >confcache <<\_ACEOF 29296# This file is a shell script that caches the results of configure 29297# tests run on this system so they can be shared between configure 29298# scripts and configure runs, see configure's option --config-cache. 29299# It is not useful on other systems. If it contains results you don't 29300# want to keep, you may remove or edit it. 29301# 29302# config.status only pays attention to the cache file if you give it 29303# the --recheck option to rerun configure. 29304# 29305# `ac_cv_env_foo' variables (set or unset) will be overridden when 29306# loading this file, other *unset* `ac_cv_foo' will be assigned the 29307# following values. 29308 29309_ACEOF 29310 29311# The following way of writing the cache mishandles newlines in values, 29312# but we know of no workaround that is simple, portable, and efficient. 29313# So, we kill variables containing newlines. 29314# Ultrix sh set writes to stderr and can't be redirected directly, 29315# and sets the high bit in the cache file unless we assign to the vars. 29316( 29317 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 29318 eval ac_val=\$$ac_var 29319 case $ac_val in #( 29320 *${as_nl}*) 29321 case $ac_var in #( 29322 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 29323echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 29324 esac 29325 case $ac_var in #( 29326 _ | IFS | as_nl) ;; #( 29327 *) $as_unset $ac_var ;; 29328 esac ;; 29329 esac 29330 done 29331 29332 (set) 2>&1 | 29333 case $as_nl`(ac_space=' '; set) 2>&1` in #( 29334 *${as_nl}ac_space=\ *) 29335 # `set' does not quote correctly, so add quotes (double-quote 29336 # substitution turns \\\\ into \\, and sed turns \\ into \). 29337 sed -n \ 29338 "s/'/'\\\\''/g; 29339 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 29340 ;; #( 29341 *) 29342 # `set' quotes correctly as required by POSIX, so do not add quotes. 29343 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 29344 ;; 29345 esac | 29346 sort 29347) | 29348 sed ' 29349 /^ac_cv_env_/b end 29350 t clear 29351 :clear 29352 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 29353 t end 29354 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 29355 :end' >>confcache 29356if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 29357 if test -w "$cache_file"; then 29358 test "x$cache_file" != "x/dev/null" && 29359 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 29360echo "$as_me: updating cache $cache_file" >&6;} 29361 cat confcache >$cache_file 29362 else 29363 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 29364echo "$as_me: not updating unwritable cache $cache_file" >&6;} 29365 fi 29366fi 29367rm -f confcache 29368 29369test "x$prefix" = xNONE && prefix=$ac_default_prefix 29370# Let make expand exec_prefix. 29371test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 29372 29373DEFS=-DHAVE_CONFIG_H 29374 29375ac_libobjs= 29376ac_ltlibobjs= 29377for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 29378 # 1. Remove the extension, and $U if already installed. 29379 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 29380 ac_i=`echo "$ac_i" | sed "$ac_script"` 29381 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 29382 # will be set to the directory where LIBOBJS objects are built. 29383 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 29384 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 29385done 29386LIBOBJS=$ac_libobjs 29387 29388LTLIBOBJS=$ac_ltlibobjs 29389 29390 29391 29392: ${CONFIG_STATUS=./config.status} 29393ac_clean_files_save=$ac_clean_files 29394ac_clean_files="$ac_clean_files $CONFIG_STATUS" 29395{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 29396echo "$as_me: creating $CONFIG_STATUS" >&6;} 29397cat >$CONFIG_STATUS <<_ACEOF 29398#! $SHELL 29399# Generated by $as_me. 29400# Run this file to recreate the current configuration. 29401# Compiler output produced by configure, useful for debugging 29402# configure, is in config.log if it exists. 29403 29404debug=false 29405ac_cs_recheck=false 29406ac_cs_silent=false 29407SHELL=\${CONFIG_SHELL-$SHELL} 29408_ACEOF 29409 29410cat >>$CONFIG_STATUS <<\_ACEOF 29411## --------------------- ## 29412## M4sh Initialization. ## 29413## --------------------- ## 29414 29415# Be more Bourne compatible 29416DUALCASE=1; export DUALCASE # for MKS sh 29417if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 29418 emulate sh 29419 NULLCMD=: 29420 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 29421 # is contrary to our usage. Disable this feature. 29422 alias -g '${1+"$@"}'='"$@"' 29423 setopt NO_GLOB_SUBST 29424else 29425 case `(set -o) 2>/dev/null` in 29426 *posix*) set -o posix ;; 29427esac 29428 29429fi 29430 29431 29432 29433 29434# PATH needs CR 29435# Avoid depending upon Character Ranges. 29436as_cr_letters='abcdefghijklmnopqrstuvwxyz' 29437as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 29438as_cr_Letters=$as_cr_letters$as_cr_LETTERS 29439as_cr_digits='0123456789' 29440as_cr_alnum=$as_cr_Letters$as_cr_digits 29441 29442# The user is always right. 29443if test "${PATH_SEPARATOR+set}" != set; then 29444 echo "#! /bin/sh" >conf$$.sh 29445 echo "exit 0" >>conf$$.sh 29446 chmod +x conf$$.sh 29447 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 29448 PATH_SEPARATOR=';' 29449 else 29450 PATH_SEPARATOR=: 29451 fi 29452 rm -f conf$$.sh 29453fi 29454 29455# Support unset when possible. 29456if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 29457 as_unset=unset 29458else 29459 as_unset=false 29460fi 29461 29462 29463# IFS 29464# We need space, tab and new line, in precisely that order. Quoting is 29465# there to prevent editors from complaining about space-tab. 29466# (If _AS_PATH_WALK were called with IFS unset, it would disable word 29467# splitting by setting IFS to empty value.) 29468as_nl=' 29469' 29470IFS=" "" $as_nl" 29471 29472# Find who we are. Look in the path if we contain no directory separator. 29473case $0 in 29474 *[\\/]* ) as_myself=$0 ;; 29475 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29476for as_dir in $PATH 29477do 29478 IFS=$as_save_IFS 29479 test -z "$as_dir" && as_dir=. 29480 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 29481done 29482IFS=$as_save_IFS 29483 29484 ;; 29485esac 29486# We did not find ourselves, most probably we were run as `sh COMMAND' 29487# in which case we are not to be found in the path. 29488if test "x$as_myself" = x; then 29489 as_myself=$0 29490fi 29491if test ! -f "$as_myself"; then 29492 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 29493 { (exit 1); exit 1; } 29494fi 29495 29496# Work around bugs in pre-3.0 UWIN ksh. 29497for as_var in ENV MAIL MAILPATH 29498do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 29499done 29500PS1='$ ' 29501PS2='> ' 29502PS4='+ ' 29503 29504# NLS nuisances. 29505for as_var in \ 29506 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 29507 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 29508 LC_TELEPHONE LC_TIME 29509do 29510 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 29511 eval $as_var=C; export $as_var 29512 else 29513 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 29514 fi 29515done 29516 29517# Required to use basename. 29518if expr a : '\(a\)' >/dev/null 2>&1 && 29519 test "X`expr 00001 : '.*\(...\)'`" = X001; then 29520 as_expr=expr 29521else 29522 as_expr=false 29523fi 29524 29525if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 29526 as_basename=basename 29527else 29528 as_basename=false 29529fi 29530 29531 29532# Name of the executable. 29533as_me=`$as_basename -- "$0" || 29534$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 29535 X"$0" : 'X\(//\)$' \| \ 29536 X"$0" : 'X\(/\)' \| . 2>/dev/null || 29537echo X/"$0" | 29538 sed '/^.*\/\([^/][^/]*\)\/*$/{ 29539 s//\1/ 29540 q 29541 } 29542 /^X\/\(\/\/\)$/{ 29543 s//\1/ 29544 q 29545 } 29546 /^X\/\(\/\).*/{ 29547 s//\1/ 29548 q 29549 } 29550 s/.*/./; q'` 29551 29552# CDPATH. 29553$as_unset CDPATH 29554 29555 29556 29557 as_lineno_1=$LINENO 29558 as_lineno_2=$LINENO 29559 test "x$as_lineno_1" != "x$as_lineno_2" && 29560 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 29561 29562 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 29563 # uniformly replaced by the line number. The first 'sed' inserts a 29564 # line-number line after each line using $LINENO; the second 'sed' 29565 # does the real work. The second script uses 'N' to pair each 29566 # line-number line with the line containing $LINENO, and appends 29567 # trailing '-' during substitution so that $LINENO is not a special 29568 # case at line end. 29569 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 29570 # scripts with optimization help from Paolo Bonzini. Blame Lee 29571 # E. McMahon (1931-1989) for sed's syntax. :-) 29572 sed -n ' 29573 p 29574 /[$]LINENO/= 29575 ' <$as_myself | 29576 sed ' 29577 s/[$]LINENO.*/&-/ 29578 t lineno 29579 b 29580 :lineno 29581 N 29582 :loop 29583 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 29584 t loop 29585 s/-\n.*// 29586 ' >$as_me.lineno && 29587 chmod +x "$as_me.lineno" || 29588 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 29589 { (exit 1); exit 1; }; } 29590 29591 # Don't try to exec as it changes $[0], causing all sort of problems 29592 # (the dirname of $[0] is not the place where we might find the 29593 # original and so on. Autoconf is especially sensitive to this). 29594 . "./$as_me.lineno" 29595 # Exit status is that of the last command. 29596 exit 29597} 29598 29599 29600if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 29601 as_dirname=dirname 29602else 29603 as_dirname=false 29604fi 29605 29606ECHO_C= ECHO_N= ECHO_T= 29607case `echo -n x` in 29608-n*) 29609 case `echo 'x\c'` in 29610 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 29611 *) ECHO_C='\c';; 29612 esac;; 29613*) 29614 ECHO_N='-n';; 29615esac 29616 29617if expr a : '\(a\)' >/dev/null 2>&1 && 29618 test "X`expr 00001 : '.*\(...\)'`" = X001; then 29619 as_expr=expr 29620else 29621 as_expr=false 29622fi 29623 29624rm -f conf$$ conf$$.exe conf$$.file 29625if test -d conf$$.dir; then 29626 rm -f conf$$.dir/conf$$.file 29627else 29628 rm -f conf$$.dir 29629 mkdir conf$$.dir 29630fi 29631echo >conf$$.file 29632if ln -s conf$$.file conf$$ 2>/dev/null; then 29633 as_ln_s='ln -s' 29634 # ... but there are two gotchas: 29635 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 29636 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 29637 # In both cases, we have to default to `cp -p'. 29638 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 29639 as_ln_s='cp -p' 29640elif ln conf$$.file conf$$ 2>/dev/null; then 29641 as_ln_s=ln 29642else 29643 as_ln_s='cp -p' 29644fi 29645rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 29646rmdir conf$$.dir 2>/dev/null 29647 29648if mkdir -p . 2>/dev/null; then 29649 as_mkdir_p=: 29650else 29651 test -d ./-p && rmdir ./-p 29652 as_mkdir_p=false 29653fi 29654 29655if test -x / >/dev/null 2>&1; then 29656 as_test_x='test -x' 29657else 29658 if ls -dL / >/dev/null 2>&1; then 29659 as_ls_L_option=L 29660 else 29661 as_ls_L_option= 29662 fi 29663 as_test_x=' 29664 eval sh -c '\'' 29665 if test -d "$1"; then 29666 test -d "$1/."; 29667 else 29668 case $1 in 29669 -*)set "./$1";; 29670 esac; 29671 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 29672 ???[sx]*):;;*)false;;esac;fi 29673 '\'' sh 29674 ' 29675fi 29676as_executable_p=$as_test_x 29677 29678# Sed expression to map a string onto a valid CPP name. 29679as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 29680 29681# Sed expression to map a string onto a valid variable name. 29682as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 29683 29684 29685exec 6>&1 29686 29687# Save the log message, to keep $[0] and so on meaningful, and to 29688# report actual input values of CONFIG_FILES etc. instead of their 29689# values after options handling. 29690ac_log=" 29691This file was extended by OpenSSH $as_me Portable, which was 29692generated by GNU Autoconf 2.61. Invocation command line was 29693 29694 CONFIG_FILES = $CONFIG_FILES 29695 CONFIG_HEADERS = $CONFIG_HEADERS 29696 CONFIG_LINKS = $CONFIG_LINKS 29697 CONFIG_COMMANDS = $CONFIG_COMMANDS 29698 $ $0 $@ 29699 29700on `(hostname || uname -n) 2>/dev/null | sed 1q` 29701" 29702 29703_ACEOF 29704 29705cat >>$CONFIG_STATUS <<_ACEOF 29706# Files that config.status was made for. 29707config_files="$ac_config_files" 29708config_headers="$ac_config_headers" 29709 29710_ACEOF 29711 29712cat >>$CONFIG_STATUS <<\_ACEOF 29713ac_cs_usage="\ 29714\`$as_me' instantiates files from templates according to the 29715current configuration. 29716 29717Usage: $0 [OPTIONS] [FILE]... 29718 29719 -h, --help print this help, then exit 29720 -V, --version print version number and configuration settings, then exit 29721 -q, --quiet do not print progress messages 29722 -d, --debug don't remove temporary files 29723 --recheck update $as_me by reconfiguring in the same conditions 29724 --file=FILE[:TEMPLATE] 29725 instantiate the configuration file FILE 29726 --header=FILE[:TEMPLATE] 29727 instantiate the configuration header FILE 29728 29729Configuration files: 29730$config_files 29731 29732Configuration headers: 29733$config_headers 29734 29735Report bugs to <bug-autoconf@gnu.org>." 29736 29737_ACEOF 29738cat >>$CONFIG_STATUS <<_ACEOF 29739ac_cs_version="\\ 29740OpenSSH config.status Portable 29741configured by $0, generated by GNU Autoconf 2.61, 29742 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 29743 29744Copyright (C) 2006 Free Software Foundation, Inc. 29745This config.status script is free software; the Free Software Foundation 29746gives unlimited permission to copy, distribute and modify it." 29747 29748ac_pwd='$ac_pwd' 29749srcdir='$srcdir' 29750INSTALL='$INSTALL' 29751_ACEOF 29752 29753cat >>$CONFIG_STATUS <<\_ACEOF 29754# If no file are specified by the user, then we need to provide default 29755# value. By we need to know if files were specified by the user. 29756ac_need_defaults=: 29757while test $# != 0 29758do 29759 case $1 in 29760 --*=*) 29761 ac_option=`expr "X$1" : 'X\([^=]*\)='` 29762 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 29763 ac_shift=: 29764 ;; 29765 *) 29766 ac_option=$1 29767 ac_optarg=$2 29768 ac_shift=shift 29769 ;; 29770 esac 29771 29772 case $ac_option in 29773 # Handling of the options. 29774 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 29775 ac_cs_recheck=: ;; 29776 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 29777 echo "$ac_cs_version"; exit ;; 29778 --debug | --debu | --deb | --de | --d | -d ) 29779 debug=: ;; 29780 --file | --fil | --fi | --f ) 29781 $ac_shift 29782 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 29783 ac_need_defaults=false;; 29784 --header | --heade | --head | --hea ) 29785 $ac_shift 29786 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 29787 ac_need_defaults=false;; 29788 --he | --h) 29789 # Conflict between --help and --header 29790 { echo "$as_me: error: ambiguous option: $1 29791Try \`$0 --help' for more information." >&2 29792 { (exit 1); exit 1; }; };; 29793 --help | --hel | -h ) 29794 echo "$ac_cs_usage"; exit ;; 29795 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 29796 | -silent | --silent | --silen | --sile | --sil | --si | --s) 29797 ac_cs_silent=: ;; 29798 29799 # This is an error. 29800 -*) { echo "$as_me: error: unrecognized option: $1 29801Try \`$0 --help' for more information." >&2 29802 { (exit 1); exit 1; }; } ;; 29803 29804 *) ac_config_targets="$ac_config_targets $1" 29805 ac_need_defaults=false ;; 29806 29807 esac 29808 shift 29809done 29810 29811ac_configure_extra_args= 29812 29813if $ac_cs_silent; then 29814 exec 6>/dev/null 29815 ac_configure_extra_args="$ac_configure_extra_args --silent" 29816fi 29817 29818_ACEOF 29819cat >>$CONFIG_STATUS <<_ACEOF 29820if \$ac_cs_recheck; then 29821 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 29822 CONFIG_SHELL=$SHELL 29823 export CONFIG_SHELL 29824 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 29825fi 29826 29827_ACEOF 29828cat >>$CONFIG_STATUS <<\_ACEOF 29829exec 5>>config.log 29830{ 29831 echo 29832 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 29833## Running $as_me. ## 29834_ASBOX 29835 echo "$ac_log" 29836} >&5 29837 29838_ACEOF 29839cat >>$CONFIG_STATUS <<_ACEOF 29840_ACEOF 29841 29842cat >>$CONFIG_STATUS <<\_ACEOF 29843 29844# Handling of arguments. 29845for ac_config_target in $ac_config_targets 29846do 29847 case $ac_config_target in 29848 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 29849 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 29850 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; 29851 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; 29852 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;; 29853 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; 29854 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;; 29855 "scard/Makefile") CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;; 29856 "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;; 29857 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;; 29858 29859 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 29860echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 29861 { (exit 1); exit 1; }; };; 29862 esac 29863done 29864 29865 29866# If the user did not use the arguments to specify the items to instantiate, 29867# then the envvar interface is used. Set only those that are not. 29868# We use the long form for the default assignment because of an extremely 29869# bizarre bug on SunOS 4.1.3. 29870if $ac_need_defaults; then 29871 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 29872 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 29873fi 29874 29875# Have a temporary directory for convenience. Make it in the build tree 29876# simply because there is no reason against having it here, and in addition, 29877# creating and moving files from /tmp can sometimes cause problems. 29878# Hook for its removal unless debugging. 29879# Note that there is a small window in which the directory will not be cleaned: 29880# after its creation but before its name has been assigned to `$tmp'. 29881$debug || 29882{ 29883 tmp= 29884 trap 'exit_status=$? 29885 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 29886' 0 29887 trap '{ (exit 1); exit 1; }' 1 2 13 15 29888} 29889# Create a (secure) tmp directory for tmp files. 29890 29891{ 29892 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 29893 test -n "$tmp" && test -d "$tmp" 29894} || 29895{ 29896 tmp=./conf$$-$RANDOM 29897 (umask 077 && mkdir "$tmp") 29898} || 29899{ 29900 echo "$me: cannot create a temporary directory in ." >&2 29901 { (exit 1); exit 1; } 29902} 29903 29904# 29905# Set up the sed scripts for CONFIG_FILES section. 29906# 29907 29908# No need to generate the scripts if there are no CONFIG_FILES. 29909# This happens for instance when ./config.status config.h 29910if test -n "$CONFIG_FILES"; then 29911 29912_ACEOF 29913 29914 29915 29916ac_delim='%!_!# ' 29917for ac_last_try in false false false false false :; do 29918 cat >conf$$subs.sed <<_ACEOF 29919SHELL!$SHELL$ac_delim 29920PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 29921PACKAGE_NAME!$PACKAGE_NAME$ac_delim 29922PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 29923PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 29924PACKAGE_STRING!$PACKAGE_STRING$ac_delim 29925PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 29926exec_prefix!$exec_prefix$ac_delim 29927prefix!$prefix$ac_delim 29928program_transform_name!$program_transform_name$ac_delim 29929bindir!$bindir$ac_delim 29930sbindir!$sbindir$ac_delim 29931libexecdir!$libexecdir$ac_delim 29932datarootdir!$datarootdir$ac_delim 29933datadir!$datadir$ac_delim 29934sysconfdir!$sysconfdir$ac_delim 29935sharedstatedir!$sharedstatedir$ac_delim 29936localstatedir!$localstatedir$ac_delim 29937includedir!$includedir$ac_delim 29938oldincludedir!$oldincludedir$ac_delim 29939docdir!$docdir$ac_delim 29940infodir!$infodir$ac_delim 29941htmldir!$htmldir$ac_delim 29942dvidir!$dvidir$ac_delim 29943pdfdir!$pdfdir$ac_delim 29944psdir!$psdir$ac_delim 29945libdir!$libdir$ac_delim 29946localedir!$localedir$ac_delim 29947mandir!$mandir$ac_delim 29948DEFS!$DEFS$ac_delim 29949ECHO_C!$ECHO_C$ac_delim 29950ECHO_N!$ECHO_N$ac_delim 29951ECHO_T!$ECHO_T$ac_delim 29952LIBS!$LIBS$ac_delim 29953build_alias!$build_alias$ac_delim 29954host_alias!$host_alias$ac_delim 29955target_alias!$target_alias$ac_delim 29956CC!$CC$ac_delim 29957CFLAGS!$CFLAGS$ac_delim 29958LDFLAGS!$LDFLAGS$ac_delim 29959CPPFLAGS!$CPPFLAGS$ac_delim 29960ac_ct_CC!$ac_ct_CC$ac_delim 29961EXEEXT!$EXEEXT$ac_delim 29962OBJEXT!$OBJEXT$ac_delim 29963build!$build$ac_delim 29964build_cpu!$build_cpu$ac_delim 29965build_vendor!$build_vendor$ac_delim 29966build_os!$build_os$ac_delim 29967host!$host$ac_delim 29968host_cpu!$host_cpu$ac_delim 29969host_vendor!$host_vendor$ac_delim 29970host_os!$host_os$ac_delim 29971CPP!$CPP$ac_delim 29972GREP!$GREP$ac_delim 29973EGREP!$EGREP$ac_delim 29974AWK!$AWK$ac_delim 29975RANLIB!$RANLIB$ac_delim 29976INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 29977INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 29978INSTALL_DATA!$INSTALL_DATA$ac_delim 29979AR!$AR$ac_delim 29980CAT!$CAT$ac_delim 29981KILL!$KILL$ac_delim 29982PERL!$PERL$ac_delim 29983SED!$SED$ac_delim 29984ENT!$ENT$ac_delim 29985TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim 29986SH!$SH$ac_delim 29987TEST_SHELL!$TEST_SHELL$ac_delim 29988PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim 29989PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim 29990MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim 29991STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim 29992LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim 29993PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim 29994LD!$LD$ac_delim 29995SSHDLIBS!$SSHDLIBS$ac_delim 29996LIBEDIT!$LIBEDIT$ac_delim 29997INSTALL_SSH_RAND_HELPER!$INSTALL_SSH_RAND_HELPER$ac_delim 29998SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim 29999PROG_LS!$PROG_LS$ac_delim 30000PROG_NETSTAT!$PROG_NETSTAT$ac_delim 30001PROG_ARP!$PROG_ARP$ac_delim 30002PROG_IFCONFIG!$PROG_IFCONFIG$ac_delim 30003PROG_JSTAT!$PROG_JSTAT$ac_delim 30004PROG_PS!$PROG_PS$ac_delim 30005PROG_SAR!$PROG_SAR$ac_delim 30006PROG_W!$PROG_W$ac_delim 30007PROG_WHO!$PROG_WHO$ac_delim 30008PROG_LAST!$PROG_LAST$ac_delim 30009PROG_LASTLOG!$PROG_LASTLOG$ac_delim 30010PROG_DF!$PROG_DF$ac_delim 30011PROG_VMSTAT!$PROG_VMSTAT$ac_delim 30012PROG_UPTIME!$PROG_UPTIME$ac_delim 30013PROG_IPCS!$PROG_IPCS$ac_delim 30014PROG_TAIL!$PROG_TAIL$ac_delim 30015INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim 30016_ACEOF 30017 30018 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 30019 break 30020 elif $ac_last_try; then 30021 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 30022echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 30023 { (exit 1); exit 1; }; } 30024 else 30025 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 30026 fi 30027done 30028 30029ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 30030if test -n "$ac_eof"; then 30031 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 30032 ac_eof=`expr $ac_eof + 1` 30033fi 30034 30035cat >>$CONFIG_STATUS <<_ACEOF 30036cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 30037/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 30038_ACEOF 30039sed ' 30040s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 30041s/^/s,@/; s/!/@,|#_!!_#|/ 30042:n 30043t n 30044s/'"$ac_delim"'$/,g/; t 30045s/$/\\/; p 30046N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 30047' >>$CONFIG_STATUS <conf$$subs.sed 30048rm -f conf$$subs.sed 30049cat >>$CONFIG_STATUS <<_ACEOF 30050CEOF$ac_eof 30051_ACEOF 30052 30053 30054ac_delim='%!_!# ' 30055for ac_last_try in false false false false false :; do 30056 cat >conf$$subs.sed <<_ACEOF 30057OPENSC_CONFIG!$OPENSC_CONFIG$ac_delim 30058PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim 30059xauth_path!$xauth_path$ac_delim 30060STRIP_OPT!$STRIP_OPT$ac_delim 30061XAUTH_PATH!$XAUTH_PATH$ac_delim 30062NROFF!$NROFF$ac_delim 30063MANTYPE!$MANTYPE$ac_delim 30064mansubdir!$mansubdir$ac_delim 30065user_path!$user_path$ac_delim 30066piddir!$piddir$ac_delim 30067TEST_SSH_IPV6!$TEST_SSH_IPV6$ac_delim 30068LIBOBJS!$LIBOBJS$ac_delim 30069LTLIBOBJS!$LTLIBOBJS$ac_delim 30070_ACEOF 30071 30072 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then 30073 break 30074 elif $ac_last_try; then 30075 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 30076echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 30077 { (exit 1); exit 1; }; } 30078 else 30079 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 30080 fi 30081done 30082 30083ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 30084if test -n "$ac_eof"; then 30085 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 30086 ac_eof=`expr $ac_eof + 1` 30087fi 30088 30089cat >>$CONFIG_STATUS <<_ACEOF 30090cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 30091/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 30092_ACEOF 30093sed ' 30094s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 30095s/^/s,@/; s/!/@,|#_!!_#|/ 30096:n 30097t n 30098s/'"$ac_delim"'$/,g/; t 30099s/$/\\/; p 30100N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 30101' >>$CONFIG_STATUS <conf$$subs.sed 30102rm -f conf$$subs.sed 30103cat >>$CONFIG_STATUS <<_ACEOF 30104:end 30105s/|#_!!_#|//g 30106CEOF$ac_eof 30107_ACEOF 30108 30109 30110# VPATH may cause trouble with some makes, so we remove $(srcdir), 30111# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 30112# trailing colons and then remove the whole line if VPATH becomes empty 30113# (actually we leave an empty line to preserve line numbers). 30114if test "x$srcdir" = x.; then 30115 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 30116s/:*\$(srcdir):*/:/ 30117s/:*\${srcdir}:*/:/ 30118s/:*@srcdir@:*/:/ 30119s/^\([^=]*=[ ]*\):*/\1/ 30120s/:*$// 30121s/^[^=]*=[ ]*$// 30122}' 30123fi 30124 30125cat >>$CONFIG_STATUS <<\_ACEOF 30126fi # test -n "$CONFIG_FILES" 30127 30128 30129for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS 30130do 30131 case $ac_tag in 30132 :[FHLC]) ac_mode=$ac_tag; continue;; 30133 esac 30134 case $ac_mode$ac_tag in 30135 :[FHL]*:*);; 30136 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 30137echo "$as_me: error: Invalid tag $ac_tag." >&2;} 30138 { (exit 1); exit 1; }; };; 30139 :[FH]-) ac_tag=-:-;; 30140 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 30141 esac 30142 ac_save_IFS=$IFS 30143 IFS=: 30144 set x $ac_tag 30145 IFS=$ac_save_IFS 30146 shift 30147 ac_file=$1 30148 shift 30149 30150 case $ac_mode in 30151 :L) ac_source=$1;; 30152 :[FH]) 30153 ac_file_inputs= 30154 for ac_f 30155 do 30156 case $ac_f in 30157 -) ac_f="$tmp/stdin";; 30158 *) # Look for the file first in the build tree, then in the source tree 30159 # (if the path is not absolute). The absolute path cannot be DOS-style, 30160 # because $ac_f cannot contain `:'. 30161 test -f "$ac_f" || 30162 case $ac_f in 30163 [\\/$]*) false;; 30164 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 30165 esac || 30166 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 30167echo "$as_me: error: cannot find input file: $ac_f" >&2;} 30168 { (exit 1); exit 1; }; };; 30169 esac 30170 ac_file_inputs="$ac_file_inputs $ac_f" 30171 done 30172 30173 # Let's still pretend it is `configure' which instantiates (i.e., don't 30174 # use $as_me), people would be surprised to read: 30175 # /* config.h. Generated by config.status. */ 30176 configure_input="Generated from "`IFS=: 30177 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 30178 if test x"$ac_file" != x-; then 30179 configure_input="$ac_file. $configure_input" 30180 { echo "$as_me:$LINENO: creating $ac_file" >&5 30181echo "$as_me: creating $ac_file" >&6;} 30182 fi 30183 30184 case $ac_tag in 30185 *:-:* | *:-) cat >"$tmp/stdin";; 30186 esac 30187 ;; 30188 esac 30189 30190 ac_dir=`$as_dirname -- "$ac_file" || 30191$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30192 X"$ac_file" : 'X\(//\)[^/]' \| \ 30193 X"$ac_file" : 'X\(//\)$' \| \ 30194 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 30195echo X"$ac_file" | 30196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30197 s//\1/ 30198 q 30199 } 30200 /^X\(\/\/\)[^/].*/{ 30201 s//\1/ 30202 q 30203 } 30204 /^X\(\/\/\)$/{ 30205 s//\1/ 30206 q 30207 } 30208 /^X\(\/\).*/{ 30209 s//\1/ 30210 q 30211 } 30212 s/.*/./; q'` 30213 { as_dir="$ac_dir" 30214 case $as_dir in #( 30215 -*) as_dir=./$as_dir;; 30216 esac 30217 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 30218 as_dirs= 30219 while :; do 30220 case $as_dir in #( 30221 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 30222 *) as_qdir=$as_dir;; 30223 esac 30224 as_dirs="'$as_qdir' $as_dirs" 30225 as_dir=`$as_dirname -- "$as_dir" || 30226$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30227 X"$as_dir" : 'X\(//\)[^/]' \| \ 30228 X"$as_dir" : 'X\(//\)$' \| \ 30229 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 30230echo X"$as_dir" | 30231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30232 s//\1/ 30233 q 30234 } 30235 /^X\(\/\/\)[^/].*/{ 30236 s//\1/ 30237 q 30238 } 30239 /^X\(\/\/\)$/{ 30240 s//\1/ 30241 q 30242 } 30243 /^X\(\/\).*/{ 30244 s//\1/ 30245 q 30246 } 30247 s/.*/./; q'` 30248 test -d "$as_dir" && break 30249 done 30250 test -z "$as_dirs" || eval "mkdir $as_dirs" 30251 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 30252echo "$as_me: error: cannot create directory $as_dir" >&2;} 30253 { (exit 1); exit 1; }; }; } 30254 ac_builddir=. 30255 30256case "$ac_dir" in 30257.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 30258*) 30259 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 30260 # A ".." for each directory in $ac_dir_suffix. 30261 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 30262 case $ac_top_builddir_sub in 30263 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 30264 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 30265 esac ;; 30266esac 30267ac_abs_top_builddir=$ac_pwd 30268ac_abs_builddir=$ac_pwd$ac_dir_suffix 30269# for backward compatibility: 30270ac_top_builddir=$ac_top_build_prefix 30271 30272case $srcdir in 30273 .) # We are building in place. 30274 ac_srcdir=. 30275 ac_top_srcdir=$ac_top_builddir_sub 30276 ac_abs_top_srcdir=$ac_pwd ;; 30277 [\\/]* | ?:[\\/]* ) # Absolute name. 30278 ac_srcdir=$srcdir$ac_dir_suffix; 30279 ac_top_srcdir=$srcdir 30280 ac_abs_top_srcdir=$srcdir ;; 30281 *) # Relative name. 30282 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 30283 ac_top_srcdir=$ac_top_build_prefix$srcdir 30284 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 30285esac 30286ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 30287 30288 30289 case $ac_mode in 30290 :F) 30291 # 30292 # CONFIG_FILE 30293 # 30294 30295 case $INSTALL in 30296 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 30297 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 30298 esac 30299_ACEOF 30300 30301cat >>$CONFIG_STATUS <<\_ACEOF 30302# If the template does not know about datarootdir, expand it. 30303# FIXME: This hack should be removed a few years after 2.60. 30304ac_datarootdir_hack=; ac_datarootdir_seen= 30305 30306case `sed -n '/datarootdir/ { 30307 p 30308 q 30309} 30310/@datadir@/p 30311/@docdir@/p 30312/@infodir@/p 30313/@localedir@/p 30314/@mandir@/p 30315' $ac_file_inputs` in 30316*datarootdir*) ac_datarootdir_seen=yes;; 30317*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 30318 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 30319echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 30320_ACEOF 30321cat >>$CONFIG_STATUS <<_ACEOF 30322 ac_datarootdir_hack=' 30323 s&@datadir@&$datadir&g 30324 s&@docdir@&$docdir&g 30325 s&@infodir@&$infodir&g 30326 s&@localedir@&$localedir&g 30327 s&@mandir@&$mandir&g 30328 s&\\\${datarootdir}&$datarootdir&g' ;; 30329esac 30330_ACEOF 30331 30332# Neutralize VPATH when `$srcdir' = `.'. 30333# Shell code in configure.ac might set extrasub. 30334# FIXME: do we really want to maintain this feature? 30335cat >>$CONFIG_STATUS <<_ACEOF 30336 sed "$ac_vpsub 30337$extrasub 30338_ACEOF 30339cat >>$CONFIG_STATUS <<\_ACEOF 30340:t 30341/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 30342s&@configure_input@&$configure_input&;t t 30343s&@top_builddir@&$ac_top_builddir_sub&;t t 30344s&@srcdir@&$ac_srcdir&;t t 30345s&@abs_srcdir@&$ac_abs_srcdir&;t t 30346s&@top_srcdir@&$ac_top_srcdir&;t t 30347s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 30348s&@builddir@&$ac_builddir&;t t 30349s&@abs_builddir@&$ac_abs_builddir&;t t 30350s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 30351s&@INSTALL@&$ac_INSTALL&;t t 30352$ac_datarootdir_hack 30353" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 30354 30355test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 30356 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 30357 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 30358 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 30359which seems to be undefined. Please make sure it is defined." >&5 30360echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 30361which seems to be undefined. Please make sure it is defined." >&2;} 30362 30363 rm -f "$tmp/stdin" 30364 case $ac_file in 30365 -) cat "$tmp/out"; rm -f "$tmp/out";; 30366 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 30367 esac 30368 ;; 30369 :H) 30370 # 30371 # CONFIG_HEADER 30372 # 30373_ACEOF 30374 30375# Transform confdefs.h into a sed script `conftest.defines', that 30376# substitutes the proper values into config.h.in to produce config.h. 30377rm -f conftest.defines conftest.tail 30378# First, append a space to every undef/define line, to ease matching. 30379echo 's/$/ /' >conftest.defines 30380# Then, protect against being on the right side of a sed subst, or in 30381# an unquoted here document, in config.status. If some macros were 30382# called several times there might be several #defines for the same 30383# symbol, which is useless. But do not sort them, since the last 30384# AC_DEFINE must be honored. 30385ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 30386# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 30387# NAME is the cpp macro being defined, VALUE is the value it is being given. 30388# PARAMS is the parameter list in the macro definition--in most cases, it's 30389# just an empty string. 30390ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 30391ac_dB='\\)[ (].*,\\1define\\2' 30392ac_dC=' ' 30393ac_dD=' ,' 30394 30395uniq confdefs.h | 30396 sed -n ' 30397 t rset 30398 :rset 30399 s/^[ ]*#[ ]*define[ ][ ]*// 30400 t ok 30401 d 30402 :ok 30403 s/[\\&,]/\\&/g 30404 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 30405 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 30406 ' >>conftest.defines 30407 30408# Remove the space that was appended to ease matching. 30409# Then replace #undef with comments. This is necessary, for 30410# example, in the case of _POSIX_SOURCE, which is predefined and required 30411# on some systems where configure will not decide to define it. 30412# (The regexp can be short, since the line contains either #define or #undef.) 30413echo 's/ $// 30414s,^[ #]*u.*,/* & */,' >>conftest.defines 30415 30416# Break up conftest.defines: 30417ac_max_sed_lines=50 30418 30419# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 30420# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 30421# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 30422# et cetera. 30423ac_in='$ac_file_inputs' 30424ac_out='"$tmp/out1"' 30425ac_nxt='"$tmp/out2"' 30426 30427while : 30428do 30429 # Write a here document: 30430 cat >>$CONFIG_STATUS <<_ACEOF 30431 # First, check the format of the line: 30432 cat >"\$tmp/defines.sed" <<\\CEOF 30433/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 30434/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 30435b 30436:def 30437_ACEOF 30438 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 30439 echo 'CEOF 30440 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 30441 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 30442 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 30443 grep . conftest.tail >/dev/null || break 30444 rm -f conftest.defines 30445 mv conftest.tail conftest.defines 30446done 30447rm -f conftest.defines conftest.tail 30448 30449echo "ac_result=$ac_in" >>$CONFIG_STATUS 30450cat >>$CONFIG_STATUS <<\_ACEOF 30451 if test x"$ac_file" != x-; then 30452 echo "/* $configure_input */" >"$tmp/config.h" 30453 cat "$ac_result" >>"$tmp/config.h" 30454 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 30455 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 30456echo "$as_me: $ac_file is unchanged" >&6;} 30457 else 30458 rm -f $ac_file 30459 mv "$tmp/config.h" $ac_file 30460 fi 30461 else 30462 echo "/* $configure_input */" 30463 cat "$ac_result" 30464 fi 30465 rm -f "$tmp/out12" 30466 ;; 30467 30468 30469 esac 30470 30471done # for ac_tag 30472 30473 30474{ (exit 0); exit 0; } 30475_ACEOF 30476chmod +x $CONFIG_STATUS 30477ac_clean_files=$ac_clean_files_save 30478 30479 30480# configure is writing to config.log, and then calls config.status. 30481# config.status does its own redirection, appending to config.log. 30482# Unfortunately, on DOS this fails, as config.log is still kept open 30483# by configure, so config.status won't be able to write to it; its 30484# output is simply discarded. So we exec the FD to /dev/null, 30485# effectively closing config.log, so it can be properly (re)opened and 30486# appended to by config.status. When coming back to configure, we 30487# need to make the FD available again. 30488if test "$no_create" != yes; then 30489 ac_cs_success=: 30490 ac_config_status_args= 30491 test "$silent" = yes && 30492 ac_config_status_args="$ac_config_status_args --quiet" 30493 exec 5>/dev/null 30494 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 30495 exec 5>>config.log 30496 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 30497 # would make configure fail if this is the last instruction. 30498 $ac_cs_success || { (exit 1); exit 1; } 30499fi 30500 30501 30502# Print summary of options 30503 30504# Someone please show me a better way :) 30505A=`eval echo ${prefix}` ; A=`eval echo ${A}` 30506B=`eval echo ${bindir}` ; B=`eval echo ${B}` 30507C=`eval echo ${sbindir}` ; C=`eval echo ${C}` 30508D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` 30509E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` 30510F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` 30511G=`eval echo ${piddir}` ; G=`eval echo ${G}` 30512H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` 30513I=`eval echo ${user_path}` ; I=`eval echo ${I}` 30514J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` 30515 30516echo "" 30517echo "OpenSSH has been configured with the following options:" 30518echo " User binaries: $B" 30519echo " System binaries: $C" 30520echo " Configuration files: $D" 30521echo " Askpass program: $E" 30522echo " Manual pages: $F" 30523echo " PID file: $G" 30524echo " Privilege separation chroot path: $H" 30525if test "x$external_path_file" = "x/etc/login.conf" ; then 30526echo " At runtime, sshd will use the path defined in $external_path_file" 30527echo " Make sure the path to scp is present, otherwise scp will not work" 30528else 30529echo " sshd default user PATH: $I" 30530 if test ! -z "$external_path_file"; then 30531echo " (If PATH is set in $external_path_file it will be used instead. If" 30532echo " used, ensure the path to scp is present, otherwise scp will not work.)" 30533 fi 30534fi 30535if test ! -z "$superuser_path" ; then 30536echo " sshd superuser user PATH: $J" 30537fi 30538echo " Manpage format: $MANTYPE" 30539echo " PAM support: $PAM_MSG" 30540echo " OSF SIA support: $SIA_MSG" 30541echo " KerberosV support: $KRB5_MSG" 30542echo " SELinux support: $SELINUX_MSG" 30543echo " Smartcard support: $SCARD_MSG" 30544echo " S/KEY support: $SKEY_MSG" 30545echo " TCP Wrappers support: $TCPW_MSG" 30546echo " MD5 password support: $MD5_MSG" 30547echo " libedit support: $LIBEDIT_MSG" 30548echo " Solaris process contract support: $SPC_MSG" 30549echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" 30550echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" 30551echo " BSD Auth support: $BSD_AUTH_MSG" 30552echo " Random number source: $RAND_MSG" 30553if test ! -z "$USE_RAND_HELPER" ; then 30554echo " ssh-rand-helper collects from: $RAND_HELPER_MSG" 30555fi 30556 30557echo "" 30558 30559echo " Host: ${host}" 30560echo " Compiler: ${CC}" 30561echo " Compiler flags: ${CFLAGS}" 30562echo "Preprocessor flags: ${CPPFLAGS}" 30563echo " Linker flags: ${LDFLAGS}" 30564echo " Libraries: ${LIBS}" 30565if test ! -z "${SSHDLIBS}"; then 30566echo " +for sshd: ${SSHDLIBS}" 30567fi 30568 30569echo "" 30570 30571if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then 30572 echo "SVR4 style packages are supported with \"make package\"" 30573 echo "" 30574fi 30575 30576if test "x$PAM_MSG" = "xyes" ; then 30577 echo "PAM is enabled. You may need to install a PAM control file " 30578 echo "for sshd, otherwise password authentication may fail. " 30579 echo "Example PAM control files can be found in the contrib/ " 30580 echo "subdirectory" 30581 echo "" 30582fi 30583 30584if test ! -z "$RAND_HELPER_CMDHASH" ; then 30585 echo "WARNING: you are using the builtin random number collection " 30586 echo "service. Please read WARNING.RNG and request that your OS " 30587 echo "vendor includes kernel-based random number collection in " 30588 echo "future versions of your OS." 30589 echo "" 30590fi 30591 30592if test ! -z "$NO_PEERCHECK" ; then 30593 echo "WARNING: the operating system that you are using does not" 30594 echo "appear to support getpeereid(), getpeerucred() or the" 30595 echo "SO_PEERCRED getsockopt() option. These facilities are used to" 30596 echo "enforce security checks to prevent unauthorised connections to" 30597 echo "ssh-agent. Their absence increases the risk that a malicious" 30598 echo "user can connect to your agent." 30599 echo "" 30600fi 30601 30602if test "$AUDIT_MODULE" = "bsm" ; then 30603 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." 30604 echo "See the Solaris section in README.platform for details." 30605fi 30606