1#! /bin/sh 2# From configure.ac Revision: 1.583 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.69 for OpenSSH Portable. 5# 6# Report bugs to <openssh-unix-dev@mindrot.org>. 7# 8# 9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21 emulate sh 22 NULLCMD=: 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24 # is contrary to our usage. Disable this feature. 25 alias -g '${1+"$@"}'='"$@"' 26 setopt NO_GLOB_SUBST 27else 28 case `(set -o) 2>/dev/null` in #( 29 *posix*) : 30 set -o posix ;; #( 31 *) : 32 ;; 33esac 34fi 35 36 37as_nl=' 38' 39export as_nl 40# Printing a long string crashes Solaris 7 /usr/bin/printf. 41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 44# Prefer a ksh shell builtin over an external printf program on Solaris, 45# but without wasting forks for bash or zsh. 46if test -z "$BASH_VERSION$ZSH_VERSION" \ 47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='print -r --' 49 as_echo_n='print -rn --' 50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51 as_echo='printf %s\n' 52 as_echo_n='printf %s' 53else 54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 56 as_echo_n='/usr/ucb/echo -n' 57 else 58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 59 as_echo_n_body='eval 60 arg=$1; 61 case $arg in #( 62 *"$as_nl"*) 63 expr "X$arg" : "X\\(.*\\)$as_nl"; 64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 65 esac; 66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 67 ' 68 export as_echo_n_body 69 as_echo_n='sh -c $as_echo_n_body as_echo' 70 fi 71 export as_echo_body 72 as_echo='sh -c $as_echo_body as_echo' 73fi 74 75# The user is always right. 76if test "${PATH_SEPARATOR+set}" != set; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82fi 83 84 85# IFS 86# We need space, tab and new line, in precisely that order. Quoting is 87# there to prevent editors from complaining about space-tab. 88# (If _AS_PATH_WALK were called with IFS unset, it would disable word 89# splitting by setting IFS to empty value.) 90IFS=" "" $as_nl" 91 92# Find who we are. Look in the path if we contain no directory separator. 93as_myself= 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138# Use a proper internal environment variable to ensure we don't fall 139 # into an infinite loop, continuously re-executing ourselves. 140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 141 _as_can_reexec=no; export _as_can_reexec; 142 # We cannot yet assume a decent shell, so we have to provide a 143# neutralization value for shells without unset; and this also 144# works around shells that cannot unset nonexistent variables. 145# Preserve -v and -x to the replacement shell. 146BASH_ENV=/dev/null 147ENV=/dev/null 148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 149case $- in # (((( 150 *v*x* | *x*v* ) as_opts=-vx ;; 151 *v* ) as_opts=-v ;; 152 *x* ) as_opts=-x ;; 153 * ) as_opts= ;; 154esac 155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 156# Admittedly, this is quite paranoid, since all the known shells bail 157# out after a failed `exec'. 158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 159as_fn_exit 255 160 fi 161 # We don't want this to propagate to other subprocesses. 162 { _as_can_reexec=; unset _as_can_reexec;} 163if test "x$CONFIG_SHELL" = x; then 164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 165 emulate sh 166 NULLCMD=: 167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 168 # is contrary to our usage. Disable this feature. 169 alias -g '\${1+\"\$@\"}'='\"\$@\"' 170 setopt NO_GLOB_SUBST 171else 172 case \`(set -o) 2>/dev/null\` in #( 173 *posix*) : 174 set -o posix ;; #( 175 *) : 176 ;; 177esac 178fi 179" 180 as_required="as_fn_return () { (exit \$1); } 181as_fn_success () { as_fn_return 0; } 182as_fn_failure () { as_fn_return 1; } 183as_fn_ret_success () { return 0; } 184as_fn_ret_failure () { return 1; } 185 186exitcode=0 187as_fn_success || { exitcode=1; echo as_fn_success failed.; } 188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 192 193else 194 exitcode=1; echo positional parameters were not saved. 195fi 196test x\$exitcode = x0 || exit 1 197test -x / || exit 1" 198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 202test \$(( 1 + 1 )) = 2 || exit 1" 203 if (eval "$as_required") 2>/dev/null; then : 204 as_have_required=yes 205else 206 as_have_required=no 207fi 208 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 209 210else 211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 212as_found=false 213for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 214do 215 IFS=$as_save_IFS 216 test -z "$as_dir" && as_dir=. 217 as_found=: 218 case $as_dir in #( 219 /*) 220 for as_base in sh bash ksh sh5; do 221 # Try only shells that exist, to save several forks. 222 as_shell=$as_dir/$as_base 223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 224 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 225 CONFIG_SHELL=$as_shell as_have_required=yes 226 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 235 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 236 CONFIG_SHELL=$SHELL as_have_required=yes 237fi; } 238IFS=$as_save_IFS 239 240 241 if test "x$CONFIG_SHELL" != x; then : 242 export CONFIG_SHELL 243 # We cannot yet assume a decent shell, so we have to provide a 244# neutralization value for shells without unset; and this also 245# works around shells that cannot unset nonexistent variables. 246# Preserve -v and -x to the replacement shell. 247BASH_ENV=/dev/null 248ENV=/dev/null 249(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 250case $- in # (((( 251 *v*x* | *x*v* ) as_opts=-vx ;; 252 *v* ) as_opts=-v ;; 253 *x* ) as_opts=-x ;; 254 * ) as_opts= ;; 255esac 256exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 257# Admittedly, this is quite paranoid, since all the known shells bail 258# out after a failed `exec'. 259$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 260exit 255 261fi 262 263 if test x$as_have_required = xno; then : 264 $as_echo "$0: This script requires a shell more modern than all" 265 $as_echo "$0: the shells that I found on your system." 266 if test x${ZSH_VERSION+set} = xset ; then 267 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 269 else 270 $as_echo "$0: Please tell bug-autoconf@gnu.org and 271$0: openssh-unix-dev@mindrot.org about your system, 272$0: including any error possibly output before this 273$0: message. Then install a modern shell, or manually run 274$0: the script under such a shell if you do have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315 316# as_fn_mkdir_p 317# ------------- 318# Create "$as_dir" as a directory, including parents if necessary. 319as_fn_mkdir_p () 320{ 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338$as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362} # as_fn_mkdir_p 363 364# as_fn_executable_p FILE 365# ----------------------- 366# Test if FILE is an executable regular file. 367as_fn_executable_p () 368{ 369 test -f "$1" && test -x "$1" 370} # as_fn_executable_p 371# as_fn_append VAR VALUE 372# ---------------------- 373# Append the text in VALUE to the end of the definition contained in VAR. Take 374# advantage of any shell optimizations that allow amortized linear growth over 375# repeated appends, instead of the typical quadratic growth present in naive 376# implementations. 377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387fi # as_fn_append 388 389# as_fn_arith ARG... 390# ------------------ 391# Perform arithmetic evaluation on the ARGs, and store the result in the 392# global $as_val. Take advantage of shells that can avoid forks. The arguments 393# must be portable across $(()) and expr. 394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404fi # as_fn_arith 405 406 407# as_fn_error STATUS ERROR [LINENO LOG_FD] 408# ---------------------------------------- 409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411# script with STATUS, using 1 if that was 0. 412as_fn_error () 413{ 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421} # as_fn_error 422 423if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426else 427 as_expr=false 428fi 429 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432else 433 as_basename=false 434fi 435 436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438else 439 as_dirname=false 440fi 441 442as_me=`$as_basename -- "$0" || 443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446$as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461# Avoid depending upon Character Ranges. 462as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465as_cr_digits='0123456789' 466as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502} 503 504ECHO_C= ECHO_N= ECHO_T= 505case `echo -n x` in #((((( 506-n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513*) 514 ECHO_N='-n';; 515esac 516 517rm -f conf$$ conf$$.exe conf$$.file 518if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523fi 524if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538else 539 as_ln_s='cp -pR' 540fi 541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542rmdir conf$$.dir 2>/dev/null 543 544if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549fi 550 551as_test_x='test -x' 552as_executable_p=as_fn_executable_p 553 554# Sed expression to map a string onto a valid CPP name. 555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557# Sed expression to map a string onto a valid variable name. 558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561test -n "$DJDIR" || exec 7<&0 </dev/null 562exec 6>&1 563 564# Name of the host. 565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566# so uname gets run too. 567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569# 570# Initializations. 571# 572ac_default_prefix=/usr/local 573ac_clean_files= 574ac_config_libobj_dir=. 575LIBOBJS= 576cross_compiling=no 577subdirs= 578MFLAGS= 579MAKEFLAGS= 580 581# Identity of this package. 582PACKAGE_NAME='OpenSSH' 583PACKAGE_TARNAME='openssh' 584PACKAGE_VERSION='Portable' 585PACKAGE_STRING='OpenSSH Portable' 586PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org' 587PACKAGE_URL='' 588 589ac_unique_file="ssh.c" 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='LTLIBOBJS 627LIBOBJS 628UNSUPPORTED_ALGORITHMS 629TEST_MALLOC_OPTIONS 630TEST_SSH_UTF8 631TEST_SSH_IPV6 632piddir 633user_path 634mansubdir 635MANTYPE 636XAUTH_PATH 637STRIP_OPT 638xauth_path 639PRIVSEP_PATH 640K5LIBS 641GSSLIBS 642KRB5CONF 643SSHDLIBS 644SSHLIBS 645SSH_PRIVSEP_USER 646COMMENT_OUT_ECC 647TEST_SSH_ECC 648LIBEDIT 649PKGCONFIG 650LDNSCONFIG 651COMMENT_OUT_RSA1 652LD 653PATH_PASSWD_PROG 654STARTUP_SCRIPT_SHELL 655MAKE_PACKAGE_SUPPORTED 656PATH_USERADD_PROG 657PATH_GROUPADD_PROG 658MANFMT 659TEST_SHELL 660MANDOC 661NROFF 662GROFF 663SH 664TEST_MINUS_S_SH 665ENT 666SED 667PERL 668KILL 669CAT 670ac_ct_AR 671AR 672INSTALL_DATA 673INSTALL_SCRIPT 674INSTALL_PROGRAM 675RANLIB 676AWK 677EGREP 678GREP 679CPP 680host_os 681host_vendor 682host_cpu 683host 684build_os 685build_vendor 686build_cpu 687build 688OBJEXT 689EXEEXT 690ac_ct_CC 691CPPFLAGS 692LDFLAGS 693CFLAGS 694CC 695target_alias 696host_alias 697build_alias 698LIBS 699ECHO_T 700ECHO_N 701ECHO_C 702DEFS 703mandir 704localedir 705libdir 706psdir 707pdfdir 708dvidir 709htmldir 710infodir 711docdir 712oldincludedir 713includedir 714localstatedir 715sharedstatedir 716sysconfdir 717datadir 718datarootdir 719libexecdir 720sbindir 721bindir 722program_transform_name 723prefix 724exec_prefix 725PACKAGE_URL 726PACKAGE_BUGREPORT 727PACKAGE_STRING 728PACKAGE_VERSION 729PACKAGE_TARNAME 730PACKAGE_NAME 731PATH_SEPARATOR 732SHELL' 733ac_subst_files='' 734ac_user_opts=' 735enable_option_checking 736enable_largefile 737with_openssl 738with_ssh1 739with_stackprotect 740with_hardening 741with_rpath 742with_cflags 743with_cppflags 744with_ldflags 745with_libs 746with_Werror 747with_solaris_contracts 748with_solaris_projects 749with_solaris_privs 750with_osfsia 751with_zlib 752with_zlib_version_check 753with_skey 754with_ldns 755with_libedit 756with_audit 757with_pie 758enable_pkcs11 759with_ssl_dir 760with_openssl_header_check 761with_ssl_engine 762with_prngd_port 763with_prngd_socket 764with_pam 765with_pam_service 766with_privsep_user 767with_sandbox 768with_selinux 769with_kerberos5 770with_privsep_path 771with_xauth 772enable_strip 773with_maildir 774with_mantype 775with_md5_passwords 776with_shadow 777with_ipaddr_display 778enable_etc_default_login 779with_default_path 780with_superuser_path 781with_4in6 782with_bsd_auth 783with_pid_dir 784enable_lastlog 785enable_utmp 786enable_utmpx 787enable_wtmp 788enable_wtmpx 789enable_libutil 790enable_pututline 791enable_pututxline 792with_lastlog 793' 794 ac_precious_vars='build_alias 795host_alias 796target_alias 797CC 798CFLAGS 799LDFLAGS 800LIBS 801CPPFLAGS 802CPP' 803 804 805# Initialize some variables set by options. 806ac_init_help= 807ac_init_version=false 808ac_unrecognized_opts= 809ac_unrecognized_sep= 810# The variables have the same names as the options, with 811# dashes changed to underlines. 812cache_file=/dev/null 813exec_prefix=NONE 814no_create= 815no_recursion= 816prefix=NONE 817program_prefix=NONE 818program_suffix=NONE 819program_transform_name=s,x,x, 820silent= 821site= 822srcdir= 823verbose= 824x_includes=NONE 825x_libraries=NONE 826 827# Installation directory options. 828# These are left unexpanded so users can "make install exec_prefix=/foo" 829# and all the variables that are supposed to be based on exec_prefix 830# by default will actually change. 831# Use braces instead of parens because sh, perl, etc. also accept them. 832# (The list follows the same order as the GNU Coding Standards.) 833bindir='${exec_prefix}/bin' 834sbindir='${exec_prefix}/sbin' 835libexecdir='${exec_prefix}/libexec' 836datarootdir='${prefix}/share' 837datadir='${datarootdir}' 838sysconfdir='${prefix}/etc' 839sharedstatedir='${prefix}/com' 840localstatedir='${prefix}/var' 841includedir='${prefix}/include' 842oldincludedir='/usr/include' 843docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 844infodir='${datarootdir}/info' 845htmldir='${docdir}' 846dvidir='${docdir}' 847pdfdir='${docdir}' 848psdir='${docdir}' 849libdir='${exec_prefix}/lib' 850localedir='${datarootdir}/locale' 851mandir='${datarootdir}/man' 852 853ac_prev= 854ac_dashdash= 855for ac_option 856do 857 # If the previous option needs an argument, assign it. 858 if test -n "$ac_prev"; then 859 eval $ac_prev=\$ac_option 860 ac_prev= 861 continue 862 fi 863 864 case $ac_option in 865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 866 *=) ac_optarg= ;; 867 *) ac_optarg=yes ;; 868 esac 869 870 # Accept the important Cygnus configure options, so we can diagnose typos. 871 872 case $ac_dashdash$ac_option in 873 --) 874 ac_dashdash=yes ;; 875 876 -bindir | --bindir | --bindi | --bind | --bin | --bi) 877 ac_prev=bindir ;; 878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 879 bindir=$ac_optarg ;; 880 881 -build | --build | --buil | --bui | --bu) 882 ac_prev=build_alias ;; 883 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 884 build_alias=$ac_optarg ;; 885 886 -cache-file | --cache-file | --cache-fil | --cache-fi \ 887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 888 ac_prev=cache_file ;; 889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 891 cache_file=$ac_optarg ;; 892 893 --config-cache | -C) 894 cache_file=config.cache ;; 895 896 -datadir | --datadir | --datadi | --datad) 897 ac_prev=datadir ;; 898 -datadir=* | --datadir=* | --datadi=* | --datad=*) 899 datadir=$ac_optarg ;; 900 901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 902 | --dataroo | --dataro | --datar) 903 ac_prev=datarootdir ;; 904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 906 datarootdir=$ac_optarg ;; 907 908 -disable-* | --disable-*) 909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 910 # Reject names that are not valid shell variable names. 911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 912 as_fn_error $? "invalid feature name: $ac_useropt" 913 ac_useropt_orig=$ac_useropt 914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 915 case $ac_user_opts in 916 *" 917"enable_$ac_useropt" 918"*) ;; 919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 920 ac_unrecognized_sep=', ';; 921 esac 922 eval enable_$ac_useropt=no ;; 923 924 -docdir | --docdir | --docdi | --doc | --do) 925 ac_prev=docdir ;; 926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 927 docdir=$ac_optarg ;; 928 929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 930 ac_prev=dvidir ;; 931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 932 dvidir=$ac_optarg ;; 933 934 -enable-* | --enable-*) 935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 936 # Reject names that are not valid shell variable names. 937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 938 as_fn_error $? "invalid feature name: $ac_useropt" 939 ac_useropt_orig=$ac_useropt 940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 941 case $ac_user_opts in 942 *" 943"enable_$ac_useropt" 944"*) ;; 945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 946 ac_unrecognized_sep=', ';; 947 esac 948 eval enable_$ac_useropt=\$ac_optarg ;; 949 950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 952 | --exec | --exe | --ex) 953 ac_prev=exec_prefix ;; 954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 956 | --exec=* | --exe=* | --ex=*) 957 exec_prefix=$ac_optarg ;; 958 959 -gas | --gas | --ga | --g) 960 # Obsolete; use --with-gas. 961 with_gas=yes ;; 962 963 -help | --help | --hel | --he | -h) 964 ac_init_help=long ;; 965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 966 ac_init_help=recursive ;; 967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 968 ac_init_help=short ;; 969 970 -host | --host | --hos | --ho) 971 ac_prev=host_alias ;; 972 -host=* | --host=* | --hos=* | --ho=*) 973 host_alias=$ac_optarg ;; 974 975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 976 ac_prev=htmldir ;; 977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 978 | --ht=*) 979 htmldir=$ac_optarg ;; 980 981 -includedir | --includedir | --includedi | --included | --include \ 982 | --includ | --inclu | --incl | --inc) 983 ac_prev=includedir ;; 984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 985 | --includ=* | --inclu=* | --incl=* | --inc=*) 986 includedir=$ac_optarg ;; 987 988 -infodir | --infodir | --infodi | --infod | --info | --inf) 989 ac_prev=infodir ;; 990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 991 infodir=$ac_optarg ;; 992 993 -libdir | --libdir | --libdi | --libd) 994 ac_prev=libdir ;; 995 -libdir=* | --libdir=* | --libdi=* | --libd=*) 996 libdir=$ac_optarg ;; 997 998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 999 | --libexe | --libex | --libe) 1000 ac_prev=libexecdir ;; 1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1002 | --libexe=* | --libex=* | --libe=*) 1003 libexecdir=$ac_optarg ;; 1004 1005 -localedir | --localedir | --localedi | --localed | --locale) 1006 ac_prev=localedir ;; 1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1008 localedir=$ac_optarg ;; 1009 1010 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1011 | --localstate | --localstat | --localsta | --localst | --locals) 1012 ac_prev=localstatedir ;; 1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1015 localstatedir=$ac_optarg ;; 1016 1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1018 ac_prev=mandir ;; 1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1020 mandir=$ac_optarg ;; 1021 1022 -nfp | --nfp | --nf) 1023 # Obsolete; use --without-fp. 1024 with_fp=no ;; 1025 1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1027 | --no-cr | --no-c | -n) 1028 no_create=yes ;; 1029 1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1032 no_recursion=yes ;; 1033 1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1036 | --oldin | --oldi | --old | --ol | --o) 1037 ac_prev=oldincludedir ;; 1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1041 oldincludedir=$ac_optarg ;; 1042 1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1044 ac_prev=prefix ;; 1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1046 prefix=$ac_optarg ;; 1047 1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1049 | --program-pre | --program-pr | --program-p) 1050 ac_prev=program_prefix ;; 1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1053 program_prefix=$ac_optarg ;; 1054 1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1056 | --program-suf | --program-su | --program-s) 1057 ac_prev=program_suffix ;; 1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1060 program_suffix=$ac_optarg ;; 1061 1062 -program-transform-name | --program-transform-name \ 1063 | --program-transform-nam | --program-transform-na \ 1064 | --program-transform-n | --program-transform- \ 1065 | --program-transform | --program-transfor \ 1066 | --program-transfo | --program-transf \ 1067 | --program-trans | --program-tran \ 1068 | --progr-tra | --program-tr | --program-t) 1069 ac_prev=program_transform_name ;; 1070 -program-transform-name=* | --program-transform-name=* \ 1071 | --program-transform-nam=* | --program-transform-na=* \ 1072 | --program-transform-n=* | --program-transform-=* \ 1073 | --program-transform=* | --program-transfor=* \ 1074 | --program-transfo=* | --program-transf=* \ 1075 | --program-trans=* | --program-tran=* \ 1076 | --progr-tra=* | --program-tr=* | --program-t=*) 1077 program_transform_name=$ac_optarg ;; 1078 1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1080 ac_prev=pdfdir ;; 1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1082 pdfdir=$ac_optarg ;; 1083 1084 -psdir | --psdir | --psdi | --psd | --ps) 1085 ac_prev=psdir ;; 1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1087 psdir=$ac_optarg ;; 1088 1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1090 | -silent | --silent | --silen | --sile | --sil) 1091 silent=yes ;; 1092 1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1094 ac_prev=sbindir ;; 1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1096 | --sbi=* | --sb=*) 1097 sbindir=$ac_optarg ;; 1098 1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1101 | --sharedst | --shareds | --shared | --share | --shar \ 1102 | --sha | --sh) 1103 ac_prev=sharedstatedir ;; 1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1107 | --sha=* | --sh=*) 1108 sharedstatedir=$ac_optarg ;; 1109 1110 -site | --site | --sit) 1111 ac_prev=site ;; 1112 -site=* | --site=* | --sit=*) 1113 site=$ac_optarg ;; 1114 1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1116 ac_prev=srcdir ;; 1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1118 srcdir=$ac_optarg ;; 1119 1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1121 | --syscon | --sysco | --sysc | --sys | --sy) 1122 ac_prev=sysconfdir ;; 1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1125 sysconfdir=$ac_optarg ;; 1126 1127 -target | --target | --targe | --targ | --tar | --ta | --t) 1128 ac_prev=target_alias ;; 1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1130 target_alias=$ac_optarg ;; 1131 1132 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1133 verbose=yes ;; 1134 1135 -version | --version | --versio | --versi | --vers | -V) 1136 ac_init_version=: ;; 1137 1138 -with-* | --with-*) 1139 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1140 # Reject names that are not valid shell variable names. 1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1142 as_fn_error $? "invalid package name: $ac_useropt" 1143 ac_useropt_orig=$ac_useropt 1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1145 case $ac_user_opts in 1146 *" 1147"with_$ac_useropt" 1148"*) ;; 1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1150 ac_unrecognized_sep=', ';; 1151 esac 1152 eval with_$ac_useropt=\$ac_optarg ;; 1153 1154 -without-* | --without-*) 1155 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1156 # Reject names that are not valid shell variable names. 1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1158 as_fn_error $? "invalid package name: $ac_useropt" 1159 ac_useropt_orig=$ac_useropt 1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1161 case $ac_user_opts in 1162 *" 1163"with_$ac_useropt" 1164"*) ;; 1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1166 ac_unrecognized_sep=', ';; 1167 esac 1168 eval with_$ac_useropt=no ;; 1169 1170 --x) 1171 # Obsolete; use --with-x. 1172 with_x=yes ;; 1173 1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1175 | --x-incl | --x-inc | --x-in | --x-i) 1176 ac_prev=x_includes ;; 1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1179 x_includes=$ac_optarg ;; 1180 1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1183 ac_prev=x_libraries ;; 1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1186 x_libraries=$ac_optarg ;; 1187 1188 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1189Try \`$0 --help' for more information" 1190 ;; 1191 1192 *=*) 1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1194 # Reject names that are not valid shell variable names. 1195 case $ac_envvar in #( 1196 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1197 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1198 esac 1199 eval $ac_envvar=\$ac_optarg 1200 export $ac_envvar ;; 1201 1202 *) 1203 # FIXME: should be removed in autoconf 3.0. 1204 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1206 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1208 ;; 1209 1210 esac 1211done 1212 1213if test -n "$ac_prev"; then 1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1215 as_fn_error $? "missing argument to $ac_option" 1216fi 1217 1218if test -n "$ac_unrecognized_opts"; then 1219 case $enable_option_checking in 1220 no) ;; 1221 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1222 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1223 esac 1224fi 1225 1226# Check all directory arguments for consistency. 1227for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1228 datadir sysconfdir sharedstatedir localstatedir includedir \ 1229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1230 libdir localedir mandir 1231do 1232 eval ac_val=\$$ac_var 1233 # Remove trailing slashes. 1234 case $ac_val in 1235 */ ) 1236 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1237 eval $ac_var=\$ac_val;; 1238 esac 1239 # Be sure to have absolute directory names. 1240 case $ac_val in 1241 [\\/$]* | ?:[\\/]* ) continue;; 1242 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1243 esac 1244 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1245done 1246 1247# There might be people who depend on the old broken behavior: `$host' 1248# used to hold the argument of --host etc. 1249# FIXME: To remove some day. 1250build=$build_alias 1251host=$host_alias 1252target=$target_alias 1253 1254# FIXME: To remove some day. 1255if test "x$host_alias" != x; then 1256 if test "x$build_alias" = x; then 1257 cross_compiling=maybe 1258 elif test "x$build_alias" != "x$host_alias"; then 1259 cross_compiling=yes 1260 fi 1261fi 1262 1263ac_tool_prefix= 1264test -n "$host_alias" && ac_tool_prefix=$host_alias- 1265 1266test "$silent" = yes && exec 6>/dev/null 1267 1268 1269ac_pwd=`pwd` && test -n "$ac_pwd" && 1270ac_ls_di=`ls -di .` && 1271ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1272 as_fn_error $? "working directory cannot be determined" 1273test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1274 as_fn_error $? "pwd does not report name of working directory" 1275 1276 1277# Find the source files, if location was not specified. 1278if test -z "$srcdir"; then 1279 ac_srcdir_defaulted=yes 1280 # Try the directory containing this script, then the parent directory. 1281 ac_confdir=`$as_dirname -- "$as_myself" || 1282$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1283 X"$as_myself" : 'X\(//\)[^/]' \| \ 1284 X"$as_myself" : 'X\(//\)$' \| \ 1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1286$as_echo X"$as_myself" | 1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1288 s//\1/ 1289 q 1290 } 1291 /^X\(\/\/\)[^/].*/{ 1292 s//\1/ 1293 q 1294 } 1295 /^X\(\/\/\)$/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\).*/{ 1300 s//\1/ 1301 q 1302 } 1303 s/.*/./; q'` 1304 srcdir=$ac_confdir 1305 if test ! -r "$srcdir/$ac_unique_file"; then 1306 srcdir=.. 1307 fi 1308else 1309 ac_srcdir_defaulted=no 1310fi 1311if test ! -r "$srcdir/$ac_unique_file"; then 1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1313 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1314fi 1315ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1316ac_abs_confdir=`( 1317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1318 pwd)` 1319# When building in place, set srcdir=. 1320if test "$ac_abs_confdir" = "$ac_pwd"; then 1321 srcdir=. 1322fi 1323# Remove unnecessary trailing slashes from srcdir. 1324# Double slashes in file names in object file debugging info 1325# mess up M-x gdb in Emacs. 1326case $srcdir in 1327*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1328esac 1329for ac_var in $ac_precious_vars; do 1330 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1331 eval ac_env_${ac_var}_value=\$${ac_var} 1332 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1333 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1334done 1335 1336# 1337# Report the --help message. 1338# 1339if test "$ac_init_help" = "long"; then 1340 # Omit some internal or obsolete options to make the list less imposing. 1341 # This message is too long to be a string in the A/UX 3.1 sh. 1342 cat <<_ACEOF 1343\`configure' configures OpenSSH Portable to adapt to many kinds of systems. 1344 1345Usage: $0 [OPTION]... [VAR=VALUE]... 1346 1347To assign environment variables (e.g., CC, CFLAGS...), specify them as 1348VAR=VALUE. See below for descriptions of some of the useful variables. 1349 1350Defaults for the options are specified in brackets. 1351 1352Configuration: 1353 -h, --help display this help and exit 1354 --help=short display options specific to this package 1355 --help=recursive display the short help of all the included packages 1356 -V, --version display version information and exit 1357 -q, --quiet, --silent do not print \`checking ...' messages 1358 --cache-file=FILE cache test results in FILE [disabled] 1359 -C, --config-cache alias for \`--cache-file=config.cache' 1360 -n, --no-create do not create output files 1361 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1362 1363Installation directories: 1364 --prefix=PREFIX install architecture-independent files in PREFIX 1365 [$ac_default_prefix] 1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1367 [PREFIX] 1368 1369By default, \`make install' will install all the files in 1370\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1371an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1372for instance \`--prefix=\$HOME'. 1373 1374For better control, use the options below. 1375 1376Fine tuning of the installation directories: 1377 --bindir=DIR user executables [EPREFIX/bin] 1378 --sbindir=DIR system admin executables [EPREFIX/sbin] 1379 --libexecdir=DIR program executables [EPREFIX/libexec] 1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1383 --libdir=DIR object code libraries [EPREFIX/lib] 1384 --includedir=DIR C header files [PREFIX/include] 1385 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1388 --infodir=DIR info documentation [DATAROOTDIR/info] 1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1390 --mandir=DIR man documentation [DATAROOTDIR/man] 1391 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh] 1392 --htmldir=DIR html documentation [DOCDIR] 1393 --dvidir=DIR dvi documentation [DOCDIR] 1394 --pdfdir=DIR pdf documentation [DOCDIR] 1395 --psdir=DIR ps documentation [DOCDIR] 1396_ACEOF 1397 1398 cat <<\_ACEOF 1399 1400System types: 1401 --build=BUILD configure for building on BUILD [guessed] 1402 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1403_ACEOF 1404fi 1405 1406if test -n "$ac_init_help"; then 1407 case $ac_init_help in 1408 short | recursive ) echo "Configuration of OpenSSH Portable:";; 1409 esac 1410 cat <<\_ACEOF 1411 1412Optional Features: 1413 --disable-option-checking ignore unrecognized --enable/--with options 1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1416 --disable-largefile omit support for large files 1417 --disable-pkcs11 disable PKCS#11 support code [no] 1418 --disable-strip Disable calling strip(1) on install 1419 --disable-etc-default-login Disable using PATH from /etc/default/login no 1420 --disable-lastlog disable use of lastlog even if detected no 1421 --disable-utmp disable use of utmp even if detected no 1422 --disable-utmpx disable use of utmpx even if detected no 1423 --disable-wtmp disable use of wtmp even if detected no 1424 --disable-wtmpx disable use of wtmpx even if detected no 1425 --disable-libutil disable use of libutil (login() etc.) no 1426 --disable-pututline disable use of pututline() etc. (uwtmp) no 1427 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no 1428 1429Optional Packages: 1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1432 --without-openssl Disable use of OpenSSL; use only limited internal crypto **EXPERIMENTAL** 1433 --with-ssh1 Enable support for SSH protocol 1 1434 --without-stackprotect Don't use compiler's stack protection 1435 --without-hardening Don't use toolchain hardening flags 1436 --without-rpath Disable auto-added -R linker paths 1437 --with-cflags Specify additional flags to pass to compiler 1438 --with-cppflags Specify additional flags to pass to preprocessor 1439 --with-ldflags Specify additional flags to pass to linker 1440 --with-libs Specify additional libraries to link with 1441 --with-Werror Build main code with -Werror 1442 --with-solaris-contracts Enable Solaris process contracts (experimental) 1443 --with-solaris-projects Enable Solaris projects (experimental) 1444 --with-solaris-privs Enable Solaris/Illumos privileges (experimental) 1445 --with-osfsia Enable Digital Unix SIA 1446 --with-zlib=PATH Use zlib in PATH 1447 --without-zlib-version-check Disable zlib version check 1448 --with-skey[=PATH] Enable S/Key support (optionally in PATH) 1449 --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH) 1450 --with-libedit[=PATH] Enable libedit support for sftp 1451 --with-audit=module Enable audit support (modules=debug,bsm,linux) 1452 --with-pie Build Position Independent Executables if possible 1453 --with-ssl-dir=PATH Specify path to OpenSSL installation 1454 --without-openssl-header-check Disable OpenSSL version consistency check 1455 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support 1456 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT 1457 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) 1458 --with-pam Enable PAM support 1459 --with-pam-service=name Specify PAM service name 1460 --with-privsep-user=user Specify non-privileged user for privilege separation 1461 --with-sandbox=style Specify privilege separation sandbox (no, capsicum, darwin, rlimit, seccomp_filter, systrace, pledge) 1462 --with-selinux Enable SELinux support 1463 --with-kerberos5=PATH Enable Kerberos 5 support 1464 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) 1465 --with-xauth=PATH Specify path to xauth program 1466 --with-maildir=/path/to/mail Specify your system mail directory 1467 --with-mantype=man|cat|doc Set man page type 1468 --with-md5-passwords Enable use of MD5 passwords 1469 --without-shadow Disable shadow password support 1470 --with-ipaddr-display Use ip address instead of hostname in $DISPLAY 1471 --with-default-path= Specify default $PATH environment for server 1472 --with-superuser-path= Specify different path for super-user 1473 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses 1474 --with-bsd-auth Enable BSD auth support 1475 --with-pid-dir=PATH Specify location of ssh.pid file 1476 --with-lastlog=FILE|DIR specify lastlog location common locations 1477 1478Some influential environment variables: 1479 CC C compiler command 1480 CFLAGS C compiler flags 1481 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1482 nonstandard directory <lib dir> 1483 LIBS libraries to pass to the linker, e.g. -l<library> 1484 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1485 you have headers in a nonstandard directory <include dir> 1486 CPP C preprocessor 1487 1488Use these variables to override the choices made by `configure' or to help 1489it to find libraries and programs with nonstandard names/locations. 1490 1491Report bugs to <openssh-unix-dev@mindrot.org>. 1492_ACEOF 1493ac_status=$? 1494fi 1495 1496if test "$ac_init_help" = "recursive"; then 1497 # If there are subdirs, report their specific --help. 1498 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1499 test -d "$ac_dir" || 1500 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1501 continue 1502 ac_builddir=. 1503 1504case "$ac_dir" in 1505.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1506*) 1507 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1508 # A ".." for each directory in $ac_dir_suffix. 1509 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1510 case $ac_top_builddir_sub in 1511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1513 esac ;; 1514esac 1515ac_abs_top_builddir=$ac_pwd 1516ac_abs_builddir=$ac_pwd$ac_dir_suffix 1517# for backward compatibility: 1518ac_top_builddir=$ac_top_build_prefix 1519 1520case $srcdir in 1521 .) # We are building in place. 1522 ac_srcdir=. 1523 ac_top_srcdir=$ac_top_builddir_sub 1524 ac_abs_top_srcdir=$ac_pwd ;; 1525 [\\/]* | ?:[\\/]* ) # Absolute name. 1526 ac_srcdir=$srcdir$ac_dir_suffix; 1527 ac_top_srcdir=$srcdir 1528 ac_abs_top_srcdir=$srcdir ;; 1529 *) # Relative name. 1530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1531 ac_top_srcdir=$ac_top_build_prefix$srcdir 1532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1533esac 1534ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1535 1536 cd "$ac_dir" || { ac_status=$?; continue; } 1537 # Check for guested configure. 1538 if test -f "$ac_srcdir/configure.gnu"; then 1539 echo && 1540 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1541 elif test -f "$ac_srcdir/configure"; then 1542 echo && 1543 $SHELL "$ac_srcdir/configure" --help=recursive 1544 else 1545 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1546 fi || ac_status=$? 1547 cd "$ac_pwd" || { ac_status=$?; break; } 1548 done 1549fi 1550 1551test -n "$ac_init_help" && exit $ac_status 1552if $ac_init_version; then 1553 cat <<\_ACEOF 1554OpenSSH configure Portable 1555generated by GNU Autoconf 2.69 1556 1557Copyright (C) 2012 Free Software Foundation, Inc. 1558This configure script is free software; the Free Software Foundation 1559gives unlimited permission to copy, distribute and modify it. 1560_ACEOF 1561 exit 1562fi 1563 1564## ------------------------ ## 1565## Autoconf initialization. ## 1566## ------------------------ ## 1567 1568# ac_fn_c_try_compile LINENO 1569# -------------------------- 1570# Try to compile conftest.$ac_ext, and return whether this succeeded. 1571ac_fn_c_try_compile () 1572{ 1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1574 rm -f conftest.$ac_objext 1575 if { { ac_try="$ac_compile" 1576case "(($ac_try" in 1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1578 *) ac_try_echo=$ac_try;; 1579esac 1580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1581$as_echo "$ac_try_echo"; } >&5 1582 (eval "$ac_compile") 2>conftest.err 1583 ac_status=$? 1584 if test -s conftest.err; then 1585 grep -v '^ *+' conftest.err >conftest.er1 1586 cat conftest.er1 >&5 1587 mv -f conftest.er1 conftest.err 1588 fi 1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1590 test $ac_status = 0; } && { 1591 test -z "$ac_c_werror_flag" || 1592 test ! -s conftest.err 1593 } && test -s conftest.$ac_objext; then : 1594 ac_retval=0 1595else 1596 $as_echo "$as_me: failed program was:" >&5 1597sed 's/^/| /' conftest.$ac_ext >&5 1598 1599 ac_retval=1 1600fi 1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1602 as_fn_set_status $ac_retval 1603 1604} # ac_fn_c_try_compile 1605 1606# ac_fn_c_try_run LINENO 1607# ---------------------- 1608# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1609# that executables *can* be run. 1610ac_fn_c_try_run () 1611{ 1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1613 if { { ac_try="$ac_link" 1614case "(($ac_try" in 1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1616 *) ac_try_echo=$ac_try;; 1617esac 1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1619$as_echo "$ac_try_echo"; } >&5 1620 (eval "$ac_link") 2>&5 1621 ac_status=$? 1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1623 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1624 { { case "(($ac_try" in 1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1626 *) ac_try_echo=$ac_try;; 1627esac 1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1629$as_echo "$ac_try_echo"; } >&5 1630 (eval "$ac_try") 2>&5 1631 ac_status=$? 1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1633 test $ac_status = 0; }; }; then : 1634 ac_retval=0 1635else 1636 $as_echo "$as_me: program exited with status $ac_status" >&5 1637 $as_echo "$as_me: failed program was:" >&5 1638sed 's/^/| /' conftest.$ac_ext >&5 1639 1640 ac_retval=$ac_status 1641fi 1642 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1644 as_fn_set_status $ac_retval 1645 1646} # ac_fn_c_try_run 1647 1648# ac_fn_c_try_cpp LINENO 1649# ---------------------- 1650# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1651ac_fn_c_try_cpp () 1652{ 1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1654 if { { ac_try="$ac_cpp conftest.$ac_ext" 1655case "(($ac_try" in 1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1657 *) ac_try_echo=$ac_try;; 1658esac 1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1660$as_echo "$ac_try_echo"; } >&5 1661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1662 ac_status=$? 1663 if test -s conftest.err; then 1664 grep -v '^ *+' conftest.err >conftest.er1 1665 cat conftest.er1 >&5 1666 mv -f conftest.er1 conftest.err 1667 fi 1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1669 test $ac_status = 0; } > conftest.i && { 1670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1671 test ! -s conftest.err 1672 }; then : 1673 ac_retval=0 1674else 1675 $as_echo "$as_me: failed program was:" >&5 1676sed 's/^/| /' conftest.$ac_ext >&5 1677 1678 ac_retval=1 1679fi 1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1681 as_fn_set_status $ac_retval 1682 1683} # ac_fn_c_try_cpp 1684 1685# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1686# ------------------------------------------------------- 1687# Tests whether HEADER exists and can be compiled using the include files in 1688# INCLUDES, setting the cache variable VAR accordingly. 1689ac_fn_c_check_header_compile () 1690{ 1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1693$as_echo_n "checking for $2... " >&6; } 1694if eval \${$3+:} false; then : 1695 $as_echo_n "(cached) " >&6 1696else 1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1698/* end confdefs.h. */ 1699$4 1700#include <$2> 1701_ACEOF 1702if ac_fn_c_try_compile "$LINENO"; then : 1703 eval "$3=yes" 1704else 1705 eval "$3=no" 1706fi 1707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1708fi 1709eval ac_res=\$$3 1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1711$as_echo "$ac_res" >&6; } 1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1713 1714} # ac_fn_c_check_header_compile 1715 1716# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1717# --------------------------------------------- 1718# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1719# accordingly. 1720ac_fn_c_check_decl () 1721{ 1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1723 as_decl_name=`echo $2|sed 's/ *(.*//'` 1724 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1726$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1727if eval \${$3+:} false; then : 1728 $as_echo_n "(cached) " >&6 1729else 1730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1731/* end confdefs.h. */ 1732$4 1733int 1734main () 1735{ 1736#ifndef $as_decl_name 1737#ifdef __cplusplus 1738 (void) $as_decl_use; 1739#else 1740 (void) $as_decl_name; 1741#endif 1742#endif 1743 1744 ; 1745 return 0; 1746} 1747_ACEOF 1748if ac_fn_c_try_compile "$LINENO"; then : 1749 eval "$3=yes" 1750else 1751 eval "$3=no" 1752fi 1753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1754fi 1755eval ac_res=\$$3 1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1757$as_echo "$ac_res" >&6; } 1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1759 1760} # ac_fn_c_check_decl 1761 1762# ac_fn_c_try_link LINENO 1763# ----------------------- 1764# Try to link conftest.$ac_ext, and return whether this succeeded. 1765ac_fn_c_try_link () 1766{ 1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1768 rm -f conftest.$ac_objext conftest$ac_exeext 1769 if { { ac_try="$ac_link" 1770case "(($ac_try" in 1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1772 *) ac_try_echo=$ac_try;; 1773esac 1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1775$as_echo "$ac_try_echo"; } >&5 1776 (eval "$ac_link") 2>conftest.err 1777 ac_status=$? 1778 if test -s conftest.err; then 1779 grep -v '^ *+' conftest.err >conftest.er1 1780 cat conftest.er1 >&5 1781 mv -f conftest.er1 conftest.err 1782 fi 1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1784 test $ac_status = 0; } && { 1785 test -z "$ac_c_werror_flag" || 1786 test ! -s conftest.err 1787 } && test -s conftest$ac_exeext && { 1788 test "$cross_compiling" = yes || 1789 test -x conftest$ac_exeext 1790 }; then : 1791 ac_retval=0 1792else 1793 $as_echo "$as_me: failed program was:" >&5 1794sed 's/^/| /' conftest.$ac_ext >&5 1795 1796 ac_retval=1 1797fi 1798 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1799 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1800 # interfere with the next link command; also delete a directory that is 1801 # left behind by Apple's compiler. We do this before executing the actions. 1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1804 as_fn_set_status $ac_retval 1805 1806} # ac_fn_c_try_link 1807 1808# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1809# ------------------------------------------------------- 1810# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1811# the include files in INCLUDES and setting the cache variable VAR 1812# accordingly. 1813ac_fn_c_check_header_mongrel () 1814{ 1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1816 if eval \${$3+:} false; then : 1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1818$as_echo_n "checking for $2... " >&6; } 1819if eval \${$3+:} false; then : 1820 $as_echo_n "(cached) " >&6 1821fi 1822eval ac_res=\$$3 1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1824$as_echo "$ac_res" >&6; } 1825else 1826 # Is the header compilable? 1827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1828$as_echo_n "checking $2 usability... " >&6; } 1829cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1830/* end confdefs.h. */ 1831$4 1832#include <$2> 1833_ACEOF 1834if ac_fn_c_try_compile "$LINENO"; then : 1835 ac_header_compiler=yes 1836else 1837 ac_header_compiler=no 1838fi 1839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1841$as_echo "$ac_header_compiler" >&6; } 1842 1843# Is the header present? 1844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1845$as_echo_n "checking $2 presence... " >&6; } 1846cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1847/* end confdefs.h. */ 1848#include <$2> 1849_ACEOF 1850if ac_fn_c_try_cpp "$LINENO"; then : 1851 ac_header_preproc=yes 1852else 1853 ac_header_preproc=no 1854fi 1855rm -f conftest.err conftest.i conftest.$ac_ext 1856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1857$as_echo "$ac_header_preproc" >&6; } 1858 1859# So? What about this header? 1860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1861 yes:no: ) 1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1863$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1865$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1866 ;; 1867 no:yes:* ) 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1869$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1871$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1873$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1875$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1877$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1878( $as_echo "## ------------------------------------------- ## 1879## Report this to openssh-unix-dev@mindrot.org ## 1880## ------------------------------------------- ##" 1881 ) | sed "s/^/$as_me: WARNING: /" >&2 1882 ;; 1883esac 1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1885$as_echo_n "checking for $2... " >&6; } 1886if eval \${$3+:} false; then : 1887 $as_echo_n "(cached) " >&6 1888else 1889 eval "$3=\$ac_header_compiler" 1890fi 1891eval ac_res=\$$3 1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1893$as_echo "$ac_res" >&6; } 1894fi 1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1896 1897} # ac_fn_c_check_header_mongrel 1898 1899# ac_fn_c_check_func LINENO FUNC VAR 1900# ---------------------------------- 1901# Tests whether FUNC exists, setting the cache variable VAR accordingly 1902ac_fn_c_check_func () 1903{ 1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1906$as_echo_n "checking for $2... " >&6; } 1907if eval \${$3+:} false; then : 1908 $as_echo_n "(cached) " >&6 1909else 1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1911/* end confdefs.h. */ 1912/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1913 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1914#define $2 innocuous_$2 1915 1916/* System header to define __stub macros and hopefully few prototypes, 1917 which can conflict with char $2 (); below. 1918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1919 <limits.h> exists even on freestanding compilers. */ 1920 1921#ifdef __STDC__ 1922# include <limits.h> 1923#else 1924# include <assert.h> 1925#endif 1926 1927#undef $2 1928 1929/* Override any GCC internal prototype to avoid an error. 1930 Use char because int might match the return type of a GCC 1931 builtin and then its argument prototype would still apply. */ 1932#ifdef __cplusplus 1933extern "C" 1934#endif 1935char $2 (); 1936/* The GNU C library defines this for functions which it implements 1937 to always fail with ENOSYS. Some functions are actually named 1938 something starting with __ and the normal name is an alias. */ 1939#if defined __stub_$2 || defined __stub___$2 1940choke me 1941#endif 1942 1943int 1944main () 1945{ 1946return $2 (); 1947 ; 1948 return 0; 1949} 1950_ACEOF 1951if ac_fn_c_try_link "$LINENO"; then : 1952 eval "$3=yes" 1953else 1954 eval "$3=no" 1955fi 1956rm -f core conftest.err conftest.$ac_objext \ 1957 conftest$ac_exeext conftest.$ac_ext 1958fi 1959eval ac_res=\$$3 1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1961$as_echo "$ac_res" >&6; } 1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1963 1964} # ac_fn_c_check_func 1965 1966# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1967# ------------------------------------------- 1968# Tests whether TYPE exists after having included INCLUDES, setting cache 1969# variable VAR accordingly. 1970ac_fn_c_check_type () 1971{ 1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1974$as_echo_n "checking for $2... " >&6; } 1975if eval \${$3+:} false; then : 1976 $as_echo_n "(cached) " >&6 1977else 1978 eval "$3=no" 1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1980/* end confdefs.h. */ 1981$4 1982int 1983main () 1984{ 1985if (sizeof ($2)) 1986 return 0; 1987 ; 1988 return 0; 1989} 1990_ACEOF 1991if ac_fn_c_try_compile "$LINENO"; then : 1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1993/* end confdefs.h. */ 1994$4 1995int 1996main () 1997{ 1998if (sizeof (($2))) 1999 return 0; 2000 ; 2001 return 0; 2002} 2003_ACEOF 2004if ac_fn_c_try_compile "$LINENO"; then : 2005 2006else 2007 eval "$3=yes" 2008fi 2009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2010fi 2011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2012fi 2013eval ac_res=\$$3 2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2015$as_echo "$ac_res" >&6; } 2016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2017 2018} # ac_fn_c_check_type 2019 2020# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2021# -------------------------------------------- 2022# Tries to find the compile-time value of EXPR in a program that includes 2023# INCLUDES, setting VAR accordingly. Returns whether the value could be 2024# computed 2025ac_fn_c_compute_int () 2026{ 2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2028 if test "$cross_compiling" = yes; then 2029 # Depending upon the size, compute the lo and hi bounds. 2030cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2031/* end confdefs.h. */ 2032$4 2033int 2034main () 2035{ 2036static int test_array [1 - 2 * !(($2) >= 0)]; 2037test_array [0] = 0; 2038return test_array [0]; 2039 2040 ; 2041 return 0; 2042} 2043_ACEOF 2044if ac_fn_c_try_compile "$LINENO"; then : 2045 ac_lo=0 ac_mid=0 2046 while :; do 2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2048/* end confdefs.h. */ 2049$4 2050int 2051main () 2052{ 2053static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2054test_array [0] = 0; 2055return test_array [0]; 2056 2057 ; 2058 return 0; 2059} 2060_ACEOF 2061if ac_fn_c_try_compile "$LINENO"; then : 2062 ac_hi=$ac_mid; break 2063else 2064 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2065 if test $ac_lo -le $ac_mid; then 2066 ac_lo= ac_hi= 2067 break 2068 fi 2069 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2070fi 2071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2072 done 2073else 2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2075/* end confdefs.h. */ 2076$4 2077int 2078main () 2079{ 2080static int test_array [1 - 2 * !(($2) < 0)]; 2081test_array [0] = 0; 2082return test_array [0]; 2083 2084 ; 2085 return 0; 2086} 2087_ACEOF 2088if ac_fn_c_try_compile "$LINENO"; then : 2089 ac_hi=-1 ac_mid=-1 2090 while :; do 2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2092/* end confdefs.h. */ 2093$4 2094int 2095main () 2096{ 2097static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2098test_array [0] = 0; 2099return test_array [0]; 2100 2101 ; 2102 return 0; 2103} 2104_ACEOF 2105if ac_fn_c_try_compile "$LINENO"; then : 2106 ac_lo=$ac_mid; break 2107else 2108 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2109 if test $ac_mid -le $ac_hi; then 2110 ac_lo= ac_hi= 2111 break 2112 fi 2113 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2114fi 2115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2116 done 2117else 2118 ac_lo= ac_hi= 2119fi 2120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2121fi 2122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2123# Binary search between lo and hi bounds. 2124while test "x$ac_lo" != "x$ac_hi"; do 2125 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2127/* end confdefs.h. */ 2128$4 2129int 2130main () 2131{ 2132static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2133test_array [0] = 0; 2134return test_array [0]; 2135 2136 ; 2137 return 0; 2138} 2139_ACEOF 2140if ac_fn_c_try_compile "$LINENO"; then : 2141 ac_hi=$ac_mid 2142else 2143 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2144fi 2145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2146done 2147case $ac_lo in #(( 2148?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2149'') ac_retval=1 ;; 2150esac 2151 else 2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2153/* end confdefs.h. */ 2154$4 2155static long int longval () { return $2; } 2156static unsigned long int ulongval () { return $2; } 2157#include <stdio.h> 2158#include <stdlib.h> 2159int 2160main () 2161{ 2162 2163 FILE *f = fopen ("conftest.val", "w"); 2164 if (! f) 2165 return 1; 2166 if (($2) < 0) 2167 { 2168 long int i = longval (); 2169 if (i != ($2)) 2170 return 1; 2171 fprintf (f, "%ld", i); 2172 } 2173 else 2174 { 2175 unsigned long int i = ulongval (); 2176 if (i != ($2)) 2177 return 1; 2178 fprintf (f, "%lu", i); 2179 } 2180 /* Do not output a trailing newline, as this causes \r\n confusion 2181 on some platforms. */ 2182 return ferror (f) || fclose (f) != 0; 2183 2184 ; 2185 return 0; 2186} 2187_ACEOF 2188if ac_fn_c_try_run "$LINENO"; then : 2189 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2190else 2191 ac_retval=1 2192fi 2193rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2194 conftest.$ac_objext conftest.beam conftest.$ac_ext 2195rm -f conftest.val 2196 2197 fi 2198 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2199 as_fn_set_status $ac_retval 2200 2201} # ac_fn_c_compute_int 2202 2203# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2204# ---------------------------------------------------- 2205# Tries to find if the field MEMBER exists in type AGGR, after including 2206# INCLUDES, setting cache variable VAR accordingly. 2207ac_fn_c_check_member () 2208{ 2209 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2211$as_echo_n "checking for $2.$3... " >&6; } 2212if eval \${$4+:} false; then : 2213 $as_echo_n "(cached) " >&6 2214else 2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2216/* end confdefs.h. */ 2217$5 2218int 2219main () 2220{ 2221static $2 ac_aggr; 2222if (ac_aggr.$3) 2223return 0; 2224 ; 2225 return 0; 2226} 2227_ACEOF 2228if ac_fn_c_try_compile "$LINENO"; then : 2229 eval "$4=yes" 2230else 2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2232/* end confdefs.h. */ 2233$5 2234int 2235main () 2236{ 2237static $2 ac_aggr; 2238if (sizeof ac_aggr.$3) 2239return 0; 2240 ; 2241 return 0; 2242} 2243_ACEOF 2244if ac_fn_c_try_compile "$LINENO"; then : 2245 eval "$4=yes" 2246else 2247 eval "$4=no" 2248fi 2249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2250fi 2251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2252fi 2253eval ac_res=\$$4 2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2255$as_echo "$ac_res" >&6; } 2256 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2257 2258} # ac_fn_c_check_member 2259cat >config.log <<_ACEOF 2260This file contains any messages produced by compilers while 2261running configure, to aid debugging if configure makes a mistake. 2262 2263It was created by OpenSSH $as_me Portable, which was 2264generated by GNU Autoconf 2.69. Invocation command line was 2265 2266 $ $0 $@ 2267 2268_ACEOF 2269exec 5>>config.log 2270{ 2271cat <<_ASUNAME 2272## --------- ## 2273## Platform. ## 2274## --------- ## 2275 2276hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2277uname -m = `(uname -m) 2>/dev/null || echo unknown` 2278uname -r = `(uname -r) 2>/dev/null || echo unknown` 2279uname -s = `(uname -s) 2>/dev/null || echo unknown` 2280uname -v = `(uname -v) 2>/dev/null || echo unknown` 2281 2282/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2283/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2284 2285/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2286/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2287/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2288/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2289/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2290/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2291/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2292 2293_ASUNAME 2294 2295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2296for as_dir in $PATH 2297do 2298 IFS=$as_save_IFS 2299 test -z "$as_dir" && as_dir=. 2300 $as_echo "PATH: $as_dir" 2301 done 2302IFS=$as_save_IFS 2303 2304} >&5 2305 2306cat >&5 <<_ACEOF 2307 2308 2309## ----------- ## 2310## Core tests. ## 2311## ----------- ## 2312 2313_ACEOF 2314 2315 2316# Keep a trace of the command line. 2317# Strip out --no-create and --no-recursion so they do not pile up. 2318# Strip out --silent because we don't want to record it for future runs. 2319# Also quote any args containing shell meta-characters. 2320# Make two passes to allow for proper duplicate-argument suppression. 2321ac_configure_args= 2322ac_configure_args0= 2323ac_configure_args1= 2324ac_must_keep_next=false 2325for ac_pass in 1 2 2326do 2327 for ac_arg 2328 do 2329 case $ac_arg in 2330 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2332 | -silent | --silent | --silen | --sile | --sil) 2333 continue ;; 2334 *\'*) 2335 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2336 esac 2337 case $ac_pass in 2338 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2339 2) 2340 as_fn_append ac_configure_args1 " '$ac_arg'" 2341 if test $ac_must_keep_next = true; then 2342 ac_must_keep_next=false # Got value, back to normal. 2343 else 2344 case $ac_arg in 2345 *=* | --config-cache | -C | -disable-* | --disable-* \ 2346 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2347 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2348 | -with-* | --with-* | -without-* | --without-* | --x) 2349 case "$ac_configure_args0 " in 2350 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2351 esac 2352 ;; 2353 -* ) ac_must_keep_next=true ;; 2354 esac 2355 fi 2356 as_fn_append ac_configure_args " '$ac_arg'" 2357 ;; 2358 esac 2359 done 2360done 2361{ ac_configure_args0=; unset ac_configure_args0;} 2362{ ac_configure_args1=; unset ac_configure_args1;} 2363 2364# When interrupted or exit'd, cleanup temporary files, and complete 2365# config.log. We remove comments because anyway the quotes in there 2366# would cause problems or look ugly. 2367# WARNING: Use '\'' to represent an apostrophe within the trap. 2368# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2369trap 'exit_status=$? 2370 # Save into config.log some information that might help in debugging. 2371 { 2372 echo 2373 2374 $as_echo "## ---------------- ## 2375## Cache variables. ## 2376## ---------------- ##" 2377 echo 2378 # The following way of writing the cache mishandles newlines in values, 2379( 2380 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2381 eval ac_val=\$$ac_var 2382 case $ac_val in #( 2383 *${as_nl}*) 2384 case $ac_var in #( 2385 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2386$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2387 esac 2388 case $ac_var in #( 2389 _ | IFS | as_nl) ;; #( 2390 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2391 *) { eval $ac_var=; unset $ac_var;} ;; 2392 esac ;; 2393 esac 2394 done 2395 (set) 2>&1 | 2396 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2397 *${as_nl}ac_space=\ *) 2398 sed -n \ 2399 "s/'\''/'\''\\\\'\'''\''/g; 2400 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2401 ;; #( 2402 *) 2403 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2404 ;; 2405 esac | 2406 sort 2407) 2408 echo 2409 2410 $as_echo "## ----------------- ## 2411## Output variables. ## 2412## ----------------- ##" 2413 echo 2414 for ac_var in $ac_subst_vars 2415 do 2416 eval ac_val=\$$ac_var 2417 case $ac_val in 2418 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2419 esac 2420 $as_echo "$ac_var='\''$ac_val'\''" 2421 done | sort 2422 echo 2423 2424 if test -n "$ac_subst_files"; then 2425 $as_echo "## ------------------- ## 2426## File substitutions. ## 2427## ------------------- ##" 2428 echo 2429 for ac_var in $ac_subst_files 2430 do 2431 eval ac_val=\$$ac_var 2432 case $ac_val in 2433 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2434 esac 2435 $as_echo "$ac_var='\''$ac_val'\''" 2436 done | sort 2437 echo 2438 fi 2439 2440 if test -s confdefs.h; then 2441 $as_echo "## ----------- ## 2442## confdefs.h. ## 2443## ----------- ##" 2444 echo 2445 cat confdefs.h 2446 echo 2447 fi 2448 test "$ac_signal" != 0 && 2449 $as_echo "$as_me: caught signal $ac_signal" 2450 $as_echo "$as_me: exit $exit_status" 2451 } >&5 2452 rm -f core *.core core.conftest.* && 2453 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2454 exit $exit_status 2455' 0 2456for ac_signal in 1 2 13 15; do 2457 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2458done 2459ac_signal=0 2460 2461# confdefs.h avoids OS command line length limits that DEFS can exceed. 2462rm -f -r conftest* confdefs.h 2463 2464$as_echo "/* confdefs.h */" > confdefs.h 2465 2466# Predefined preprocessor variables. 2467 2468cat >>confdefs.h <<_ACEOF 2469#define PACKAGE_NAME "$PACKAGE_NAME" 2470_ACEOF 2471 2472cat >>confdefs.h <<_ACEOF 2473#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2474_ACEOF 2475 2476cat >>confdefs.h <<_ACEOF 2477#define PACKAGE_VERSION "$PACKAGE_VERSION" 2478_ACEOF 2479 2480cat >>confdefs.h <<_ACEOF 2481#define PACKAGE_STRING "$PACKAGE_STRING" 2482_ACEOF 2483 2484cat >>confdefs.h <<_ACEOF 2485#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2486_ACEOF 2487 2488cat >>confdefs.h <<_ACEOF 2489#define PACKAGE_URL "$PACKAGE_URL" 2490_ACEOF 2491 2492 2493# Let the site file select an alternate cache file if it wants to. 2494# Prefer an explicitly selected file to automatically selected ones. 2495ac_site_file1=NONE 2496ac_site_file2=NONE 2497if test -n "$CONFIG_SITE"; then 2498 # We do not want a PATH search for config.site. 2499 case $CONFIG_SITE in #(( 2500 -*) ac_site_file1=./$CONFIG_SITE;; 2501 */*) ac_site_file1=$CONFIG_SITE;; 2502 *) ac_site_file1=./$CONFIG_SITE;; 2503 esac 2504elif test "x$prefix" != xNONE; then 2505 ac_site_file1=$prefix/share/config.site 2506 ac_site_file2=$prefix/etc/config.site 2507else 2508 ac_site_file1=$ac_default_prefix/share/config.site 2509 ac_site_file2=$ac_default_prefix/etc/config.site 2510fi 2511for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2512do 2513 test "x$ac_site_file" = xNONE && continue 2514 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2515 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2516$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2517 sed 's/^/| /' "$ac_site_file" >&5 2518 . "$ac_site_file" \ 2519 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2521as_fn_error $? "failed to load site script $ac_site_file 2522See \`config.log' for more details" "$LINENO" 5; } 2523 fi 2524done 2525 2526if test -r "$cache_file"; then 2527 # Some versions of bash will fail to source /dev/null (special files 2528 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2529 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2530 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2531$as_echo "$as_me: loading cache $cache_file" >&6;} 2532 case $cache_file in 2533 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2534 *) . "./$cache_file";; 2535 esac 2536 fi 2537else 2538 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2539$as_echo "$as_me: creating cache $cache_file" >&6;} 2540 >$cache_file 2541fi 2542 2543# Check that the precious variables saved in the cache have kept the same 2544# value. 2545ac_cache_corrupted=false 2546for ac_var in $ac_precious_vars; do 2547 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2548 eval ac_new_set=\$ac_env_${ac_var}_set 2549 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2550 eval ac_new_val=\$ac_env_${ac_var}_value 2551 case $ac_old_set,$ac_new_set in 2552 set,) 2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2554$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2555 ac_cache_corrupted=: ;; 2556 ,set) 2557 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2558$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2559 ac_cache_corrupted=: ;; 2560 ,);; 2561 *) 2562 if test "x$ac_old_val" != "x$ac_new_val"; then 2563 # differences in whitespace do not lead to failure. 2564 ac_old_val_w=`echo x $ac_old_val` 2565 ac_new_val_w=`echo x $ac_new_val` 2566 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2568$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2569 ac_cache_corrupted=: 2570 else 2571 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2572$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2573 eval $ac_var=\$ac_old_val 2574 fi 2575 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2576$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2578$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2579 fi;; 2580 esac 2581 # Pass precious variables to config.status. 2582 if test "$ac_new_set" = set; then 2583 case $ac_new_val in 2584 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2585 *) ac_arg=$ac_var=$ac_new_val ;; 2586 esac 2587 case " $ac_configure_args " in 2588 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2589 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2590 esac 2591 fi 2592done 2593if $ac_cache_corrupted; then 2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2596 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2597$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2598 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2599fi 2600## -------------------- ## 2601## Main body of script. ## 2602## -------------------- ## 2603 2604ac_ext=c 2605ac_cpp='$CPP $CPPFLAGS' 2606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2608ac_compiler_gnu=$ac_cv_c_compiler_gnu 2609 2610 2611 2612 2613ac_ext=c 2614ac_cpp='$CPP $CPPFLAGS' 2615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2617ac_compiler_gnu=$ac_cv_c_compiler_gnu 2618 2619 2620ac_config_headers="$ac_config_headers config.h" 2621 2622ac_ext=c 2623ac_cpp='$CPP $CPPFLAGS' 2624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2626ac_compiler_gnu=$ac_cv_c_compiler_gnu 2627if test -n "$ac_tool_prefix"; then 2628 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2629set dummy ${ac_tool_prefix}gcc; ac_word=$2 2630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2631$as_echo_n "checking for $ac_word... " >&6; } 2632if ${ac_cv_prog_CC+:} false; then : 2633 $as_echo_n "(cached) " >&6 2634else 2635 if test -n "$CC"; then 2636 ac_cv_prog_CC="$CC" # Let the user override the test. 2637else 2638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2639for as_dir in $PATH 2640do 2641 IFS=$as_save_IFS 2642 test -z "$as_dir" && as_dir=. 2643 for ac_exec_ext in '' $ac_executable_extensions; do 2644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2645 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2647 break 2 2648 fi 2649done 2650 done 2651IFS=$as_save_IFS 2652 2653fi 2654fi 2655CC=$ac_cv_prog_CC 2656if test -n "$CC"; then 2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2658$as_echo "$CC" >&6; } 2659else 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2661$as_echo "no" >&6; } 2662fi 2663 2664 2665fi 2666if test -z "$ac_cv_prog_CC"; then 2667 ac_ct_CC=$CC 2668 # Extract the first word of "gcc", so it can be a program name with args. 2669set dummy gcc; ac_word=$2 2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2671$as_echo_n "checking for $ac_word... " >&6; } 2672if ${ac_cv_prog_ac_ct_CC+:} false; then : 2673 $as_echo_n "(cached) " >&6 2674else 2675 if test -n "$ac_ct_CC"; then 2676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2677else 2678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2679for as_dir in $PATH 2680do 2681 IFS=$as_save_IFS 2682 test -z "$as_dir" && as_dir=. 2683 for ac_exec_ext in '' $ac_executable_extensions; do 2684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2685 ac_cv_prog_ac_ct_CC="gcc" 2686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2687 break 2 2688 fi 2689done 2690 done 2691IFS=$as_save_IFS 2692 2693fi 2694fi 2695ac_ct_CC=$ac_cv_prog_ac_ct_CC 2696if test -n "$ac_ct_CC"; then 2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2698$as_echo "$ac_ct_CC" >&6; } 2699else 2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2701$as_echo "no" >&6; } 2702fi 2703 2704 if test "x$ac_ct_CC" = x; then 2705 CC="" 2706 else 2707 case $cross_compiling:$ac_tool_warned in 2708yes:) 2709{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2710$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2711ac_tool_warned=yes ;; 2712esac 2713 CC=$ac_ct_CC 2714 fi 2715else 2716 CC="$ac_cv_prog_CC" 2717fi 2718 2719if test -z "$CC"; then 2720 if test -n "$ac_tool_prefix"; then 2721 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2722set dummy ${ac_tool_prefix}cc; ac_word=$2 2723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2724$as_echo_n "checking for $ac_word... " >&6; } 2725if ${ac_cv_prog_CC+:} false; then : 2726 $as_echo_n "(cached) " >&6 2727else 2728 if test -n "$CC"; then 2729 ac_cv_prog_CC="$CC" # Let the user override the test. 2730else 2731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2732for as_dir in $PATH 2733do 2734 IFS=$as_save_IFS 2735 test -z "$as_dir" && as_dir=. 2736 for ac_exec_ext in '' $ac_executable_extensions; do 2737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2738 ac_cv_prog_CC="${ac_tool_prefix}cc" 2739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2740 break 2 2741 fi 2742done 2743 done 2744IFS=$as_save_IFS 2745 2746fi 2747fi 2748CC=$ac_cv_prog_CC 2749if test -n "$CC"; then 2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2751$as_echo "$CC" >&6; } 2752else 2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2754$as_echo "no" >&6; } 2755fi 2756 2757 2758 fi 2759fi 2760if test -z "$CC"; then 2761 # Extract the first word of "cc", so it can be a program name with args. 2762set dummy cc; ac_word=$2 2763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2764$as_echo_n "checking for $ac_word... " >&6; } 2765if ${ac_cv_prog_CC+:} false; then : 2766 $as_echo_n "(cached) " >&6 2767else 2768 if test -n "$CC"; then 2769 ac_cv_prog_CC="$CC" # Let the user override the test. 2770else 2771 ac_prog_rejected=no 2772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2773for as_dir in $PATH 2774do 2775 IFS=$as_save_IFS 2776 test -z "$as_dir" && as_dir=. 2777 for ac_exec_ext in '' $ac_executable_extensions; do 2778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2779 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2780 ac_prog_rejected=yes 2781 continue 2782 fi 2783 ac_cv_prog_CC="cc" 2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2785 break 2 2786 fi 2787done 2788 done 2789IFS=$as_save_IFS 2790 2791if test $ac_prog_rejected = yes; then 2792 # We found a bogon in the path, so make sure we never use it. 2793 set dummy $ac_cv_prog_CC 2794 shift 2795 if test $# != 0; then 2796 # We chose a different compiler from the bogus one. 2797 # However, it has the same basename, so the bogon will be chosen 2798 # first if we set CC to just the basename; use the full file name. 2799 shift 2800 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2801 fi 2802fi 2803fi 2804fi 2805CC=$ac_cv_prog_CC 2806if test -n "$CC"; then 2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2808$as_echo "$CC" >&6; } 2809else 2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2811$as_echo "no" >&6; } 2812fi 2813 2814 2815fi 2816if test -z "$CC"; then 2817 if test -n "$ac_tool_prefix"; then 2818 for ac_prog in cl.exe 2819 do 2820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2821set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2823$as_echo_n "checking for $ac_word... " >&6; } 2824if ${ac_cv_prog_CC+:} false; then : 2825 $as_echo_n "(cached) " >&6 2826else 2827 if test -n "$CC"; then 2828 ac_cv_prog_CC="$CC" # Let the user override the test. 2829else 2830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2831for as_dir in $PATH 2832do 2833 IFS=$as_save_IFS 2834 test -z "$as_dir" && as_dir=. 2835 for ac_exec_ext in '' $ac_executable_extensions; do 2836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2837 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2839 break 2 2840 fi 2841done 2842 done 2843IFS=$as_save_IFS 2844 2845fi 2846fi 2847CC=$ac_cv_prog_CC 2848if test -n "$CC"; then 2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2850$as_echo "$CC" >&6; } 2851else 2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2853$as_echo "no" >&6; } 2854fi 2855 2856 2857 test -n "$CC" && break 2858 done 2859fi 2860if test -z "$CC"; then 2861 ac_ct_CC=$CC 2862 for ac_prog in cl.exe 2863do 2864 # Extract the first word of "$ac_prog", so it can be a program name with args. 2865set dummy $ac_prog; ac_word=$2 2866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2867$as_echo_n "checking for $ac_word... " >&6; } 2868if ${ac_cv_prog_ac_ct_CC+:} false; then : 2869 $as_echo_n "(cached) " >&6 2870else 2871 if test -n "$ac_ct_CC"; then 2872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2873else 2874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2875for as_dir in $PATH 2876do 2877 IFS=$as_save_IFS 2878 test -z "$as_dir" && as_dir=. 2879 for ac_exec_ext in '' $ac_executable_extensions; do 2880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2881 ac_cv_prog_ac_ct_CC="$ac_prog" 2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2883 break 2 2884 fi 2885done 2886 done 2887IFS=$as_save_IFS 2888 2889fi 2890fi 2891ac_ct_CC=$ac_cv_prog_ac_ct_CC 2892if test -n "$ac_ct_CC"; then 2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2894$as_echo "$ac_ct_CC" >&6; } 2895else 2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2897$as_echo "no" >&6; } 2898fi 2899 2900 2901 test -n "$ac_ct_CC" && break 2902done 2903 2904 if test "x$ac_ct_CC" = x; then 2905 CC="" 2906 else 2907 case $cross_compiling:$ac_tool_warned in 2908yes:) 2909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2911ac_tool_warned=yes ;; 2912esac 2913 CC=$ac_ct_CC 2914 fi 2915fi 2916 2917fi 2918 2919 2920test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2921$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2922as_fn_error $? "no acceptable C compiler found in \$PATH 2923See \`config.log' for more details" "$LINENO" 5; } 2924 2925# Provide some information about the compiler. 2926$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2927set X $ac_compile 2928ac_compiler=$2 2929for ac_option in --version -v -V -qversion; do 2930 { { ac_try="$ac_compiler $ac_option >&5" 2931case "(($ac_try" in 2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2933 *) ac_try_echo=$ac_try;; 2934esac 2935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2936$as_echo "$ac_try_echo"; } >&5 2937 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2938 ac_status=$? 2939 if test -s conftest.err; then 2940 sed '10a\ 2941... rest of stderr output deleted ... 2942 10q' conftest.err >conftest.er1 2943 cat conftest.er1 >&5 2944 fi 2945 rm -f conftest.er1 conftest.err 2946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2947 test $ac_status = 0; } 2948done 2949 2950cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2951/* end confdefs.h. */ 2952 2953int 2954main () 2955{ 2956 2957 ; 2958 return 0; 2959} 2960_ACEOF 2961ac_clean_files_save=$ac_clean_files 2962ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2963# Try to create an executable without -o first, disregard a.out. 2964# It will help us diagnose broken compilers, and finding out an intuition 2965# of exeext. 2966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2967$as_echo_n "checking whether the C compiler works... " >&6; } 2968ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2969 2970# The possible output files: 2971ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2972 2973ac_rmfiles= 2974for ac_file in $ac_files 2975do 2976 case $ac_file in 2977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2978 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2979 esac 2980done 2981rm -f $ac_rmfiles 2982 2983if { { ac_try="$ac_link_default" 2984case "(($ac_try" in 2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2986 *) ac_try_echo=$ac_try;; 2987esac 2988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2989$as_echo "$ac_try_echo"; } >&5 2990 (eval "$ac_link_default") 2>&5 2991 ac_status=$? 2992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2993 test $ac_status = 0; }; then : 2994 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2995# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2996# in a Makefile. We should not override ac_cv_exeext if it was cached, 2997# so that the user can short-circuit this test for compilers unknown to 2998# Autoconf. 2999for ac_file in $ac_files '' 3000do 3001 test -f "$ac_file" || continue 3002 case $ac_file in 3003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3004 ;; 3005 [ab].out ) 3006 # We found the default executable, but exeext='' is most 3007 # certainly right. 3008 break;; 3009 *.* ) 3010 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3011 then :; else 3012 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3013 fi 3014 # We set ac_cv_exeext here because the later test for it is not 3015 # safe: cross compilers may not add the suffix if given an `-o' 3016 # argument, so we may need to know it at that point already. 3017 # Even if this section looks crufty: it has the advantage of 3018 # actually working. 3019 break;; 3020 * ) 3021 break;; 3022 esac 3023done 3024test "$ac_cv_exeext" = no && ac_cv_exeext= 3025 3026else 3027 ac_file='' 3028fi 3029if test -z "$ac_file"; then : 3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3031$as_echo "no" >&6; } 3032$as_echo "$as_me: failed program was:" >&5 3033sed 's/^/| /' conftest.$ac_ext >&5 3034 3035{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3037as_fn_error 77 "C compiler cannot create executables 3038See \`config.log' for more details" "$LINENO" 5; } 3039else 3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3041$as_echo "yes" >&6; } 3042fi 3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3044$as_echo_n "checking for C compiler default output file name... " >&6; } 3045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3046$as_echo "$ac_file" >&6; } 3047ac_exeext=$ac_cv_exeext 3048 3049rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3050ac_clean_files=$ac_clean_files_save 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3052$as_echo_n "checking for suffix of executables... " >&6; } 3053if { { ac_try="$ac_link" 3054case "(($ac_try" in 3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3056 *) ac_try_echo=$ac_try;; 3057esac 3058eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3059$as_echo "$ac_try_echo"; } >&5 3060 (eval "$ac_link") 2>&5 3061 ac_status=$? 3062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3063 test $ac_status = 0; }; then : 3064 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3065# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3066# work properly (i.e., refer to `conftest.exe'), while it won't with 3067# `rm'. 3068for ac_file in conftest.exe conftest conftest.*; do 3069 test -f "$ac_file" || continue 3070 case $ac_file in 3071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3072 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3073 break;; 3074 * ) break;; 3075 esac 3076done 3077else 3078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3080as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3081See \`config.log' for more details" "$LINENO" 5; } 3082fi 3083rm -f conftest conftest$ac_cv_exeext 3084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3085$as_echo "$ac_cv_exeext" >&6; } 3086 3087rm -f conftest.$ac_ext 3088EXEEXT=$ac_cv_exeext 3089ac_exeext=$EXEEXT 3090cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3091/* end confdefs.h. */ 3092#include <stdio.h> 3093int 3094main () 3095{ 3096FILE *f = fopen ("conftest.out", "w"); 3097 return ferror (f) || fclose (f) != 0; 3098 3099 ; 3100 return 0; 3101} 3102_ACEOF 3103ac_clean_files="$ac_clean_files conftest.out" 3104# Check that the compiler produces executables we can run. If not, either 3105# the compiler is broken, or we cross compile. 3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3107$as_echo_n "checking whether we are cross compiling... " >&6; } 3108if test "$cross_compiling" != yes; then 3109 { { ac_try="$ac_link" 3110case "(($ac_try" in 3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3112 *) ac_try_echo=$ac_try;; 3113esac 3114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3115$as_echo "$ac_try_echo"; } >&5 3116 (eval "$ac_link") 2>&5 3117 ac_status=$? 3118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3119 test $ac_status = 0; } 3120 if { ac_try='./conftest$ac_cv_exeext' 3121 { { case "(($ac_try" in 3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3123 *) ac_try_echo=$ac_try;; 3124esac 3125eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3126$as_echo "$ac_try_echo"; } >&5 3127 (eval "$ac_try") 2>&5 3128 ac_status=$? 3129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3130 test $ac_status = 0; }; }; then 3131 cross_compiling=no 3132 else 3133 if test "$cross_compiling" = maybe; then 3134 cross_compiling=yes 3135 else 3136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3138as_fn_error $? "cannot run C compiled programs. 3139If you meant to cross compile, use \`--host'. 3140See \`config.log' for more details" "$LINENO" 5; } 3141 fi 3142 fi 3143fi 3144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3145$as_echo "$cross_compiling" >&6; } 3146 3147rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3148ac_clean_files=$ac_clean_files_save 3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3150$as_echo_n "checking for suffix of object files... " >&6; } 3151if ${ac_cv_objext+:} false; then : 3152 $as_echo_n "(cached) " >&6 3153else 3154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3155/* end confdefs.h. */ 3156 3157int 3158main () 3159{ 3160 3161 ; 3162 return 0; 3163} 3164_ACEOF 3165rm -f conftest.o conftest.obj 3166if { { ac_try="$ac_compile" 3167case "(($ac_try" in 3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3169 *) ac_try_echo=$ac_try;; 3170esac 3171eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3172$as_echo "$ac_try_echo"; } >&5 3173 (eval "$ac_compile") 2>&5 3174 ac_status=$? 3175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3176 test $ac_status = 0; }; then : 3177 for ac_file in conftest.o conftest.obj conftest.*; do 3178 test -f "$ac_file" || continue; 3179 case $ac_file in 3180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3181 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3182 break;; 3183 esac 3184done 3185else 3186 $as_echo "$as_me: failed program was:" >&5 3187sed 's/^/| /' conftest.$ac_ext >&5 3188 3189{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3191as_fn_error $? "cannot compute suffix of object files: cannot compile 3192See \`config.log' for more details" "$LINENO" 5; } 3193fi 3194rm -f conftest.$ac_cv_objext conftest.$ac_ext 3195fi 3196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3197$as_echo "$ac_cv_objext" >&6; } 3198OBJEXT=$ac_cv_objext 3199ac_objext=$OBJEXT 3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3201$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3202if ${ac_cv_c_compiler_gnu+:} false; then : 3203 $as_echo_n "(cached) " >&6 3204else 3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3206/* end confdefs.h. */ 3207 3208int 3209main () 3210{ 3211#ifndef __GNUC__ 3212 choke me 3213#endif 3214 3215 ; 3216 return 0; 3217} 3218_ACEOF 3219if ac_fn_c_try_compile "$LINENO"; then : 3220 ac_compiler_gnu=yes 3221else 3222 ac_compiler_gnu=no 3223fi 3224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3225ac_cv_c_compiler_gnu=$ac_compiler_gnu 3226 3227fi 3228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3229$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3230if test $ac_compiler_gnu = yes; then 3231 GCC=yes 3232else 3233 GCC= 3234fi 3235ac_test_CFLAGS=${CFLAGS+set} 3236ac_save_CFLAGS=$CFLAGS 3237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3238$as_echo_n "checking whether $CC accepts -g... " >&6; } 3239if ${ac_cv_prog_cc_g+:} false; then : 3240 $as_echo_n "(cached) " >&6 3241else 3242 ac_save_c_werror_flag=$ac_c_werror_flag 3243 ac_c_werror_flag=yes 3244 ac_cv_prog_cc_g=no 3245 CFLAGS="-g" 3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3247/* end confdefs.h. */ 3248 3249int 3250main () 3251{ 3252 3253 ; 3254 return 0; 3255} 3256_ACEOF 3257if ac_fn_c_try_compile "$LINENO"; then : 3258 ac_cv_prog_cc_g=yes 3259else 3260 CFLAGS="" 3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3262/* end confdefs.h. */ 3263 3264int 3265main () 3266{ 3267 3268 ; 3269 return 0; 3270} 3271_ACEOF 3272if ac_fn_c_try_compile "$LINENO"; then : 3273 3274else 3275 ac_c_werror_flag=$ac_save_c_werror_flag 3276 CFLAGS="-g" 3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3278/* end confdefs.h. */ 3279 3280int 3281main () 3282{ 3283 3284 ; 3285 return 0; 3286} 3287_ACEOF 3288if ac_fn_c_try_compile "$LINENO"; then : 3289 ac_cv_prog_cc_g=yes 3290fi 3291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3292fi 3293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3294fi 3295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3296 ac_c_werror_flag=$ac_save_c_werror_flag 3297fi 3298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3299$as_echo "$ac_cv_prog_cc_g" >&6; } 3300if test "$ac_test_CFLAGS" = set; then 3301 CFLAGS=$ac_save_CFLAGS 3302elif test $ac_cv_prog_cc_g = yes; then 3303 if test "$GCC" = yes; then 3304 CFLAGS="-g -O2" 3305 else 3306 CFLAGS="-g" 3307 fi 3308else 3309 if test "$GCC" = yes; then 3310 CFLAGS="-O2" 3311 else 3312 CFLAGS= 3313 fi 3314fi 3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3316$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3317if ${ac_cv_prog_cc_c89+:} false; then : 3318 $as_echo_n "(cached) " >&6 3319else 3320 ac_cv_prog_cc_c89=no 3321ac_save_CC=$CC 3322cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3323/* end confdefs.h. */ 3324#include <stdarg.h> 3325#include <stdio.h> 3326struct stat; 3327/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3328struct buf { int x; }; 3329FILE * (*rcsopen) (struct buf *, struct stat *, int); 3330static char *e (p, i) 3331 char **p; 3332 int i; 3333{ 3334 return p[i]; 3335} 3336static char *f (char * (*g) (char **, int), char **p, ...) 3337{ 3338 char *s; 3339 va_list v; 3340 va_start (v,p); 3341 s = g (p, va_arg (v,int)); 3342 va_end (v); 3343 return s; 3344} 3345 3346/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3347 function prototypes and stuff, but not '\xHH' hex character constants. 3348 These don't provoke an error unfortunately, instead are silently treated 3349 as 'x'. The following induces an error, until -std is added to get 3350 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3351 array size at least. It's necessary to write '\x00'==0 to get something 3352 that's true only with -std. */ 3353int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3354 3355/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3356 inside strings and character constants. */ 3357#define FOO(x) 'x' 3358int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3359 3360int test (int i, double x); 3361struct s1 {int (*f) (int a);}; 3362struct s2 {int (*f) (double a);}; 3363int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3364int argc; 3365char **argv; 3366int 3367main () 3368{ 3369return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3370 ; 3371 return 0; 3372} 3373_ACEOF 3374for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3375 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3376do 3377 CC="$ac_save_CC $ac_arg" 3378 if ac_fn_c_try_compile "$LINENO"; then : 3379 ac_cv_prog_cc_c89=$ac_arg 3380fi 3381rm -f core conftest.err conftest.$ac_objext 3382 test "x$ac_cv_prog_cc_c89" != "xno" && break 3383done 3384rm -f conftest.$ac_ext 3385CC=$ac_save_CC 3386 3387fi 3388# AC_CACHE_VAL 3389case "x$ac_cv_prog_cc_c89" in 3390 x) 3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3392$as_echo "none needed" >&6; } ;; 3393 xno) 3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3395$as_echo "unsupported" >&6; } ;; 3396 *) 3397 CC="$CC $ac_cv_prog_cc_c89" 3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3399$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3400esac 3401if test "x$ac_cv_prog_cc_c89" != xno; then : 3402 3403fi 3404 3405ac_ext=c 3406ac_cpp='$CPP $CPPFLAGS' 3407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3409ac_compiler_gnu=$ac_cv_c_compiler_gnu 3410 3411ac_aux_dir= 3412for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3413 if test -f "$ac_dir/install-sh"; then 3414 ac_aux_dir=$ac_dir 3415 ac_install_sh="$ac_aux_dir/install-sh -c" 3416 break 3417 elif test -f "$ac_dir/install.sh"; then 3418 ac_aux_dir=$ac_dir 3419 ac_install_sh="$ac_aux_dir/install.sh -c" 3420 break 3421 elif test -f "$ac_dir/shtool"; then 3422 ac_aux_dir=$ac_dir 3423 ac_install_sh="$ac_aux_dir/shtool install -c" 3424 break 3425 fi 3426done 3427if test -z "$ac_aux_dir"; then 3428 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3429fi 3430 3431# These three variables are undocumented and unsupported, 3432# and are intended to be withdrawn in a future Autoconf release. 3433# They can cause serious problems if a builder's source tree is in a directory 3434# whose full name contains unusual characters. 3435ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3436ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3437ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3438 3439 3440# Make sure we can run config.sub. 3441$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3442 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3443 3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3445$as_echo_n "checking build system type... " >&6; } 3446if ${ac_cv_build+:} false; then : 3447 $as_echo_n "(cached) " >&6 3448else 3449 ac_build_alias=$build_alias 3450test "x$ac_build_alias" = x && 3451 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3452test "x$ac_build_alias" = x && 3453 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3454ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3455 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3456 3457fi 3458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3459$as_echo "$ac_cv_build" >&6; } 3460case $ac_cv_build in 3461*-*-*) ;; 3462*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3463esac 3464build=$ac_cv_build 3465ac_save_IFS=$IFS; IFS='-' 3466set x $ac_cv_build 3467shift 3468build_cpu=$1 3469build_vendor=$2 3470shift; shift 3471# Remember, the first character of IFS is used to create $*, 3472# except with old shells: 3473build_os=$* 3474IFS=$ac_save_IFS 3475case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3476 3477 3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3479$as_echo_n "checking host system type... " >&6; } 3480if ${ac_cv_host+:} false; then : 3481 $as_echo_n "(cached) " >&6 3482else 3483 if test "x$host_alias" = x; then 3484 ac_cv_host=$ac_cv_build 3485else 3486 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3487 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3488fi 3489 3490fi 3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3492$as_echo "$ac_cv_host" >&6; } 3493case $ac_cv_host in 3494*-*-*) ;; 3495*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3496esac 3497host=$ac_cv_host 3498ac_save_IFS=$IFS; IFS='-' 3499set x $ac_cv_host 3500shift 3501host_cpu=$1 3502host_vendor=$2 3503shift; shift 3504# Remember, the first character of IFS is used to create $*, 3505# except with old shells: 3506host_os=$* 3507IFS=$ac_save_IFS 3508case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3509 3510 3511 3512ac_ext=c 3513ac_cpp='$CPP $CPPFLAGS' 3514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3516ac_compiler_gnu=$ac_cv_c_compiler_gnu 3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3518$as_echo_n "checking how to run the C preprocessor... " >&6; } 3519# On Suns, sometimes $CPP names a directory. 3520if test -n "$CPP" && test -d "$CPP"; then 3521 CPP= 3522fi 3523if test -z "$CPP"; then 3524 if ${ac_cv_prog_CPP+:} false; then : 3525 $as_echo_n "(cached) " >&6 3526else 3527 # Double quotes because CPP needs to be expanded 3528 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3529 do 3530 ac_preproc_ok=false 3531for ac_c_preproc_warn_flag in '' yes 3532do 3533 # Use a header file that comes with gcc, so configuring glibc 3534 # with a fresh cross-compiler works. 3535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3536 # <limits.h> exists even on freestanding compilers. 3537 # On the NeXT, cc -E runs the code through the compiler's parser, 3538 # not just through cpp. "Syntax error" is here to catch this case. 3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3540/* end confdefs.h. */ 3541#ifdef __STDC__ 3542# include <limits.h> 3543#else 3544# include <assert.h> 3545#endif 3546 Syntax error 3547_ACEOF 3548if ac_fn_c_try_cpp "$LINENO"; then : 3549 3550else 3551 # Broken: fails on valid input. 3552continue 3553fi 3554rm -f conftest.err conftest.i conftest.$ac_ext 3555 3556 # OK, works on sane cases. Now check whether nonexistent headers 3557 # can be detected and how. 3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3559/* end confdefs.h. */ 3560#include <ac_nonexistent.h> 3561_ACEOF 3562if ac_fn_c_try_cpp "$LINENO"; then : 3563 # Broken: success on invalid input. 3564continue 3565else 3566 # Passes both tests. 3567ac_preproc_ok=: 3568break 3569fi 3570rm -f conftest.err conftest.i conftest.$ac_ext 3571 3572done 3573# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3574rm -f conftest.i conftest.err conftest.$ac_ext 3575if $ac_preproc_ok; then : 3576 break 3577fi 3578 3579 done 3580 ac_cv_prog_CPP=$CPP 3581 3582fi 3583 CPP=$ac_cv_prog_CPP 3584else 3585 ac_cv_prog_CPP=$CPP 3586fi 3587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3588$as_echo "$CPP" >&6; } 3589ac_preproc_ok=false 3590for ac_c_preproc_warn_flag in '' yes 3591do 3592 # Use a header file that comes with gcc, so configuring glibc 3593 # with a fresh cross-compiler works. 3594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3595 # <limits.h> exists even on freestanding compilers. 3596 # On the NeXT, cc -E runs the code through the compiler's parser, 3597 # not just through cpp. "Syntax error" is here to catch this case. 3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3599/* end confdefs.h. */ 3600#ifdef __STDC__ 3601# include <limits.h> 3602#else 3603# include <assert.h> 3604#endif 3605 Syntax error 3606_ACEOF 3607if ac_fn_c_try_cpp "$LINENO"; then : 3608 3609else 3610 # Broken: fails on valid input. 3611continue 3612fi 3613rm -f conftest.err conftest.i conftest.$ac_ext 3614 3615 # OK, works on sane cases. Now check whether nonexistent headers 3616 # can be detected and how. 3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3618/* end confdefs.h. */ 3619#include <ac_nonexistent.h> 3620_ACEOF 3621if ac_fn_c_try_cpp "$LINENO"; then : 3622 # Broken: success on invalid input. 3623continue 3624else 3625 # Passes both tests. 3626ac_preproc_ok=: 3627break 3628fi 3629rm -f conftest.err conftest.i conftest.$ac_ext 3630 3631done 3632# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3633rm -f conftest.i conftest.err conftest.$ac_ext 3634if $ac_preproc_ok; then : 3635 3636else 3637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3639as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3640See \`config.log' for more details" "$LINENO" 5; } 3641fi 3642 3643ac_ext=c 3644ac_cpp='$CPP $CPPFLAGS' 3645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3647ac_compiler_gnu=$ac_cv_c_compiler_gnu 3648 3649 3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3651$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3652if ${ac_cv_path_GREP+:} false; then : 3653 $as_echo_n "(cached) " >&6 3654else 3655 if test -z "$GREP"; then 3656 ac_path_GREP_found=false 3657 # Loop through the user's path and test for each of PROGNAME-LIST 3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3659for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3660do 3661 IFS=$as_save_IFS 3662 test -z "$as_dir" && as_dir=. 3663 for ac_prog in grep ggrep; do 3664 for ac_exec_ext in '' $ac_executable_extensions; do 3665 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3666 as_fn_executable_p "$ac_path_GREP" || continue 3667# Check for GNU ac_path_GREP and select it if it is found. 3668 # Check for GNU $ac_path_GREP 3669case `"$ac_path_GREP" --version 2>&1` in 3670*GNU*) 3671 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3672*) 3673 ac_count=0 3674 $as_echo_n 0123456789 >"conftest.in" 3675 while : 3676 do 3677 cat "conftest.in" "conftest.in" >"conftest.tmp" 3678 mv "conftest.tmp" "conftest.in" 3679 cp "conftest.in" "conftest.nl" 3680 $as_echo 'GREP' >> "conftest.nl" 3681 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3682 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3683 as_fn_arith $ac_count + 1 && ac_count=$as_val 3684 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3685 # Best one so far, save it but keep looking for a better one 3686 ac_cv_path_GREP="$ac_path_GREP" 3687 ac_path_GREP_max=$ac_count 3688 fi 3689 # 10*(2^10) chars as input seems more than enough 3690 test $ac_count -gt 10 && break 3691 done 3692 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3693esac 3694 3695 $ac_path_GREP_found && break 3 3696 done 3697 done 3698 done 3699IFS=$as_save_IFS 3700 if test -z "$ac_cv_path_GREP"; then 3701 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3702 fi 3703else 3704 ac_cv_path_GREP=$GREP 3705fi 3706 3707fi 3708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3709$as_echo "$ac_cv_path_GREP" >&6; } 3710 GREP="$ac_cv_path_GREP" 3711 3712 3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3714$as_echo_n "checking for egrep... " >&6; } 3715if ${ac_cv_path_EGREP+:} false; then : 3716 $as_echo_n "(cached) " >&6 3717else 3718 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3719 then ac_cv_path_EGREP="$GREP -E" 3720 else 3721 if test -z "$EGREP"; then 3722 ac_path_EGREP_found=false 3723 # Loop through the user's path and test for each of PROGNAME-LIST 3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3725for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3726do 3727 IFS=$as_save_IFS 3728 test -z "$as_dir" && as_dir=. 3729 for ac_prog in egrep; do 3730 for ac_exec_ext in '' $ac_executable_extensions; do 3731 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3732 as_fn_executable_p "$ac_path_EGREP" || continue 3733# Check for GNU ac_path_EGREP and select it if it is found. 3734 # Check for GNU $ac_path_EGREP 3735case `"$ac_path_EGREP" --version 2>&1` in 3736*GNU*) 3737 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3738*) 3739 ac_count=0 3740 $as_echo_n 0123456789 >"conftest.in" 3741 while : 3742 do 3743 cat "conftest.in" "conftest.in" >"conftest.tmp" 3744 mv "conftest.tmp" "conftest.in" 3745 cp "conftest.in" "conftest.nl" 3746 $as_echo 'EGREP' >> "conftest.nl" 3747 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3748 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3749 as_fn_arith $ac_count + 1 && ac_count=$as_val 3750 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3751 # Best one so far, save it but keep looking for a better one 3752 ac_cv_path_EGREP="$ac_path_EGREP" 3753 ac_path_EGREP_max=$ac_count 3754 fi 3755 # 10*(2^10) chars as input seems more than enough 3756 test $ac_count -gt 10 && break 3757 done 3758 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3759esac 3760 3761 $ac_path_EGREP_found && break 3 3762 done 3763 done 3764 done 3765IFS=$as_save_IFS 3766 if test -z "$ac_cv_path_EGREP"; then 3767 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3768 fi 3769else 3770 ac_cv_path_EGREP=$EGREP 3771fi 3772 3773 fi 3774fi 3775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3776$as_echo "$ac_cv_path_EGREP" >&6; } 3777 EGREP="$ac_cv_path_EGREP" 3778 3779 3780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3781$as_echo_n "checking for ANSI C header files... " >&6; } 3782if ${ac_cv_header_stdc+:} false; then : 3783 $as_echo_n "(cached) " >&6 3784else 3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3786/* end confdefs.h. */ 3787#include <stdlib.h> 3788#include <stdarg.h> 3789#include <string.h> 3790#include <float.h> 3791 3792int 3793main () 3794{ 3795 3796 ; 3797 return 0; 3798} 3799_ACEOF 3800if ac_fn_c_try_compile "$LINENO"; then : 3801 ac_cv_header_stdc=yes 3802else 3803 ac_cv_header_stdc=no 3804fi 3805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3806 3807if test $ac_cv_header_stdc = yes; then 3808 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3810/* end confdefs.h. */ 3811#include <string.h> 3812 3813_ACEOF 3814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3815 $EGREP "memchr" >/dev/null 2>&1; then : 3816 3817else 3818 ac_cv_header_stdc=no 3819fi 3820rm -f conftest* 3821 3822fi 3823 3824if test $ac_cv_header_stdc = yes; then 3825 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3827/* end confdefs.h. */ 3828#include <stdlib.h> 3829 3830_ACEOF 3831if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3832 $EGREP "free" >/dev/null 2>&1; then : 3833 3834else 3835 ac_cv_header_stdc=no 3836fi 3837rm -f conftest* 3838 3839fi 3840 3841if test $ac_cv_header_stdc = yes; then 3842 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3843 if test "$cross_compiling" = yes; then : 3844 : 3845else 3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3847/* end confdefs.h. */ 3848#include <ctype.h> 3849#include <stdlib.h> 3850#if ((' ' & 0x0FF) == 0x020) 3851# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3852# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3853#else 3854# define ISLOWER(c) \ 3855 (('a' <= (c) && (c) <= 'i') \ 3856 || ('j' <= (c) && (c) <= 'r') \ 3857 || ('s' <= (c) && (c) <= 'z')) 3858# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3859#endif 3860 3861#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3862int 3863main () 3864{ 3865 int i; 3866 for (i = 0; i < 256; i++) 3867 if (XOR (islower (i), ISLOWER (i)) 3868 || toupper (i) != TOUPPER (i)) 3869 return 2; 3870 return 0; 3871} 3872_ACEOF 3873if ac_fn_c_try_run "$LINENO"; then : 3874 3875else 3876 ac_cv_header_stdc=no 3877fi 3878rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3879 conftest.$ac_objext conftest.beam conftest.$ac_ext 3880fi 3881 3882fi 3883fi 3884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3885$as_echo "$ac_cv_header_stdc" >&6; } 3886if test $ac_cv_header_stdc = yes; then 3887 3888$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3889 3890fi 3891 3892# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3893for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3894 inttypes.h stdint.h unistd.h 3895do : 3896 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3897ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3898" 3899if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3900 cat >>confdefs.h <<_ACEOF 3901#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3902_ACEOF 3903 3904fi 3905 3906done 3907 3908 3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 3910$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 3911if ${ac_cv_c_bigendian+:} false; then : 3912 $as_echo_n "(cached) " >&6 3913else 3914 ac_cv_c_bigendian=unknown 3915 # See if we're dealing with a universal compiler. 3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3917/* end confdefs.h. */ 3918#ifndef __APPLE_CC__ 3919 not a universal capable compiler 3920 #endif 3921 typedef int dummy; 3922 3923_ACEOF 3924if ac_fn_c_try_compile "$LINENO"; then : 3925 3926 # Check for potential -arch flags. It is not universal unless 3927 # there are at least two -arch flags with different values. 3928 ac_arch= 3929 ac_prev= 3930 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 3931 if test -n "$ac_prev"; then 3932 case $ac_word in 3933 i?86 | x86_64 | ppc | ppc64) 3934 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 3935 ac_arch=$ac_word 3936 else 3937 ac_cv_c_bigendian=universal 3938 break 3939 fi 3940 ;; 3941 esac 3942 ac_prev= 3943 elif test "x$ac_word" = "x-arch"; then 3944 ac_prev=arch 3945 fi 3946 done 3947fi 3948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3949 if test $ac_cv_c_bigendian = unknown; then 3950 # See if sys/param.h defines the BYTE_ORDER macro. 3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3952/* end confdefs.h. */ 3953#include <sys/types.h> 3954 #include <sys/param.h> 3955 3956int 3957main () 3958{ 3959#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 3960 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 3961 && LITTLE_ENDIAN) 3962 bogus endian macros 3963 #endif 3964 3965 ; 3966 return 0; 3967} 3968_ACEOF 3969if ac_fn_c_try_compile "$LINENO"; then : 3970 # It does; now see whether it defined to BIG_ENDIAN or not. 3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3972/* end confdefs.h. */ 3973#include <sys/types.h> 3974 #include <sys/param.h> 3975 3976int 3977main () 3978{ 3979#if BYTE_ORDER != BIG_ENDIAN 3980 not big endian 3981 #endif 3982 3983 ; 3984 return 0; 3985} 3986_ACEOF 3987if ac_fn_c_try_compile "$LINENO"; then : 3988 ac_cv_c_bigendian=yes 3989else 3990 ac_cv_c_bigendian=no 3991fi 3992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3993fi 3994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3995 fi 3996 if test $ac_cv_c_bigendian = unknown; then 3997 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3999/* end confdefs.h. */ 4000#include <limits.h> 4001 4002int 4003main () 4004{ 4005#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 4006 bogus endian macros 4007 #endif 4008 4009 ; 4010 return 0; 4011} 4012_ACEOF 4013if ac_fn_c_try_compile "$LINENO"; then : 4014 # It does; now see whether it defined to _BIG_ENDIAN or not. 4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4016/* end confdefs.h. */ 4017#include <limits.h> 4018 4019int 4020main () 4021{ 4022#ifndef _BIG_ENDIAN 4023 not big endian 4024 #endif 4025 4026 ; 4027 return 0; 4028} 4029_ACEOF 4030if ac_fn_c_try_compile "$LINENO"; then : 4031 ac_cv_c_bigendian=yes 4032else 4033 ac_cv_c_bigendian=no 4034fi 4035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4036fi 4037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4038 fi 4039 if test $ac_cv_c_bigendian = unknown; then 4040 # Compile a test program. 4041 if test "$cross_compiling" = yes; then : 4042 # Try to guess by grepping values from an object file. 4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4044/* end confdefs.h. */ 4045short int ascii_mm[] = 4046 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4047 short int ascii_ii[] = 4048 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4049 int use_ascii (int i) { 4050 return ascii_mm[i] + ascii_ii[i]; 4051 } 4052 short int ebcdic_ii[] = 4053 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4054 short int ebcdic_mm[] = 4055 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4056 int use_ebcdic (int i) { 4057 return ebcdic_mm[i] + ebcdic_ii[i]; 4058 } 4059 extern int foo; 4060 4061int 4062main () 4063{ 4064return use_ascii (foo) == use_ebcdic (foo); 4065 ; 4066 return 0; 4067} 4068_ACEOF 4069if ac_fn_c_try_compile "$LINENO"; then : 4070 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 4071 ac_cv_c_bigendian=yes 4072 fi 4073 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4074 if test "$ac_cv_c_bigendian" = unknown; then 4075 ac_cv_c_bigendian=no 4076 else 4077 # finding both strings is unlikely to happen, but who knows? 4078 ac_cv_c_bigendian=unknown 4079 fi 4080 fi 4081fi 4082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4083else 4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4085/* end confdefs.h. */ 4086$ac_includes_default 4087int 4088main () 4089{ 4090 4091 /* Are we little or big endian? From Harbison&Steele. */ 4092 union 4093 { 4094 long int l; 4095 char c[sizeof (long int)]; 4096 } u; 4097 u.l = 1; 4098 return u.c[sizeof (long int) - 1] == 1; 4099 4100 ; 4101 return 0; 4102} 4103_ACEOF 4104if ac_fn_c_try_run "$LINENO"; then : 4105 ac_cv_c_bigendian=no 4106else 4107 ac_cv_c_bigendian=yes 4108fi 4109rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4110 conftest.$ac_objext conftest.beam conftest.$ac_ext 4111fi 4112 4113 fi 4114fi 4115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 4116$as_echo "$ac_cv_c_bigendian" >&6; } 4117 case $ac_cv_c_bigendian in #( 4118 yes) 4119 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 4120;; #( 4121 no) 4122 ;; #( 4123 universal) 4124 4125$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 4126 4127 ;; #( 4128 *) 4129 as_fn_error $? "unknown endianness 4130 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 4131 esac 4132 4133 4134# Checks for programs. 4135for ac_prog in gawk mawk nawk awk 4136do 4137 # Extract the first word of "$ac_prog", so it can be a program name with args. 4138set dummy $ac_prog; ac_word=$2 4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4140$as_echo_n "checking for $ac_word... " >&6; } 4141if ${ac_cv_prog_AWK+:} false; then : 4142 $as_echo_n "(cached) " >&6 4143else 4144 if test -n "$AWK"; then 4145 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4146else 4147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4148for as_dir in $PATH 4149do 4150 IFS=$as_save_IFS 4151 test -z "$as_dir" && as_dir=. 4152 for ac_exec_ext in '' $ac_executable_extensions; do 4153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4154 ac_cv_prog_AWK="$ac_prog" 4155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4156 break 2 4157 fi 4158done 4159 done 4160IFS=$as_save_IFS 4161 4162fi 4163fi 4164AWK=$ac_cv_prog_AWK 4165if test -n "$AWK"; then 4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4167$as_echo "$AWK" >&6; } 4168else 4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4170$as_echo "no" >&6; } 4171fi 4172 4173 4174 test -n "$AWK" && break 4175done 4176 4177ac_ext=c 4178ac_cpp='$CPP $CPPFLAGS' 4179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4181ac_compiler_gnu=$ac_cv_c_compiler_gnu 4182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4183$as_echo_n "checking how to run the C preprocessor... " >&6; } 4184# On Suns, sometimes $CPP names a directory. 4185if test -n "$CPP" && test -d "$CPP"; then 4186 CPP= 4187fi 4188if test -z "$CPP"; then 4189 if ${ac_cv_prog_CPP+:} false; then : 4190 $as_echo_n "(cached) " >&6 4191else 4192 # Double quotes because CPP needs to be expanded 4193 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4194 do 4195 ac_preproc_ok=false 4196for ac_c_preproc_warn_flag in '' yes 4197do 4198 # Use a header file that comes with gcc, so configuring glibc 4199 # with a fresh cross-compiler works. 4200 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4201 # <limits.h> exists even on freestanding compilers. 4202 # On the NeXT, cc -E runs the code through the compiler's parser, 4203 # not just through cpp. "Syntax error" is here to catch this case. 4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4205/* end confdefs.h. */ 4206#ifdef __STDC__ 4207# include <limits.h> 4208#else 4209# include <assert.h> 4210#endif 4211 Syntax error 4212_ACEOF 4213if ac_fn_c_try_cpp "$LINENO"; then : 4214 4215else 4216 # Broken: fails on valid input. 4217continue 4218fi 4219rm -f conftest.err conftest.i conftest.$ac_ext 4220 4221 # OK, works on sane cases. Now check whether nonexistent headers 4222 # can be detected and how. 4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4224/* end confdefs.h. */ 4225#include <ac_nonexistent.h> 4226_ACEOF 4227if ac_fn_c_try_cpp "$LINENO"; then : 4228 # Broken: success on invalid input. 4229continue 4230else 4231 # Passes both tests. 4232ac_preproc_ok=: 4233break 4234fi 4235rm -f conftest.err conftest.i conftest.$ac_ext 4236 4237done 4238# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4239rm -f conftest.i conftest.err conftest.$ac_ext 4240if $ac_preproc_ok; then : 4241 break 4242fi 4243 4244 done 4245 ac_cv_prog_CPP=$CPP 4246 4247fi 4248 CPP=$ac_cv_prog_CPP 4249else 4250 ac_cv_prog_CPP=$CPP 4251fi 4252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4253$as_echo "$CPP" >&6; } 4254ac_preproc_ok=false 4255for ac_c_preproc_warn_flag in '' yes 4256do 4257 # Use a header file that comes with gcc, so configuring glibc 4258 # with a fresh cross-compiler works. 4259 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4260 # <limits.h> exists even on freestanding compilers. 4261 # On the NeXT, cc -E runs the code through the compiler's parser, 4262 # not just through cpp. "Syntax error" is here to catch this case. 4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4264/* end confdefs.h. */ 4265#ifdef __STDC__ 4266# include <limits.h> 4267#else 4268# include <assert.h> 4269#endif 4270 Syntax error 4271_ACEOF 4272if ac_fn_c_try_cpp "$LINENO"; then : 4273 4274else 4275 # Broken: fails on valid input. 4276continue 4277fi 4278rm -f conftest.err conftest.i conftest.$ac_ext 4279 4280 # OK, works on sane cases. Now check whether nonexistent headers 4281 # can be detected and how. 4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4283/* end confdefs.h. */ 4284#include <ac_nonexistent.h> 4285_ACEOF 4286if ac_fn_c_try_cpp "$LINENO"; then : 4287 # Broken: success on invalid input. 4288continue 4289else 4290 # Passes both tests. 4291ac_preproc_ok=: 4292break 4293fi 4294rm -f conftest.err conftest.i conftest.$ac_ext 4295 4296done 4297# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4298rm -f conftest.i conftest.err conftest.$ac_ext 4299if $ac_preproc_ok; then : 4300 4301else 4302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4304as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4305See \`config.log' for more details" "$LINENO" 5; } 4306fi 4307 4308ac_ext=c 4309ac_cpp='$CPP $CPPFLAGS' 4310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4312ac_compiler_gnu=$ac_cv_c_compiler_gnu 4313 4314if test -n "$ac_tool_prefix"; then 4315 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4316set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4318$as_echo_n "checking for $ac_word... " >&6; } 4319if ${ac_cv_prog_RANLIB+:} false; then : 4320 $as_echo_n "(cached) " >&6 4321else 4322 if test -n "$RANLIB"; then 4323 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4324else 4325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4326for as_dir in $PATH 4327do 4328 IFS=$as_save_IFS 4329 test -z "$as_dir" && as_dir=. 4330 for ac_exec_ext in '' $ac_executable_extensions; do 4331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4332 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4334 break 2 4335 fi 4336done 4337 done 4338IFS=$as_save_IFS 4339 4340fi 4341fi 4342RANLIB=$ac_cv_prog_RANLIB 4343if test -n "$RANLIB"; then 4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4345$as_echo "$RANLIB" >&6; } 4346else 4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4348$as_echo "no" >&6; } 4349fi 4350 4351 4352fi 4353if test -z "$ac_cv_prog_RANLIB"; then 4354 ac_ct_RANLIB=$RANLIB 4355 # Extract the first word of "ranlib", so it can be a program name with args. 4356set dummy ranlib; ac_word=$2 4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4358$as_echo_n "checking for $ac_word... " >&6; } 4359if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4360 $as_echo_n "(cached) " >&6 4361else 4362 if test -n "$ac_ct_RANLIB"; then 4363 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4364else 4365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4366for as_dir in $PATH 4367do 4368 IFS=$as_save_IFS 4369 test -z "$as_dir" && as_dir=. 4370 for ac_exec_ext in '' $ac_executable_extensions; do 4371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4372 ac_cv_prog_ac_ct_RANLIB="ranlib" 4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4374 break 2 4375 fi 4376done 4377 done 4378IFS=$as_save_IFS 4379 4380fi 4381fi 4382ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4383if test -n "$ac_ct_RANLIB"; then 4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4385$as_echo "$ac_ct_RANLIB" >&6; } 4386else 4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4388$as_echo "no" >&6; } 4389fi 4390 4391 if test "x$ac_ct_RANLIB" = x; then 4392 RANLIB=":" 4393 else 4394 case $cross_compiling:$ac_tool_warned in 4395yes:) 4396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4398ac_tool_warned=yes ;; 4399esac 4400 RANLIB=$ac_ct_RANLIB 4401 fi 4402else 4403 RANLIB="$ac_cv_prog_RANLIB" 4404fi 4405 4406# Find a good install program. We prefer a C program (faster), 4407# so one script is as good as another. But avoid the broken or 4408# incompatible versions: 4409# SysV /etc/install, /usr/sbin/install 4410# SunOS /usr/etc/install 4411# IRIX /sbin/install 4412# AIX /bin/install 4413# AmigaOS /C/install, which installs bootblocks on floppy discs 4414# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4415# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4416# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4417# OS/2's system install, which has a completely different semantic 4418# ./install, which can be erroneously created by make from ./install.sh. 4419# Reject install programs that cannot install multiple files. 4420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4421$as_echo_n "checking for a BSD-compatible install... " >&6; } 4422if test -z "$INSTALL"; then 4423if ${ac_cv_path_install+:} false; then : 4424 $as_echo_n "(cached) " >&6 4425else 4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4427for as_dir in $PATH 4428do 4429 IFS=$as_save_IFS 4430 test -z "$as_dir" && as_dir=. 4431 # Account for people who put trailing slashes in PATH elements. 4432case $as_dir/ in #(( 4433 ./ | .// | /[cC]/* | \ 4434 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4435 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4436 /usr/ucb/* ) ;; 4437 *) 4438 # OSF1 and SCO ODT 3.0 have their own names for install. 4439 # Don't use installbsd from OSF since it installs stuff as root 4440 # by default. 4441 for ac_prog in ginstall scoinst install; do 4442 for ac_exec_ext in '' $ac_executable_extensions; do 4443 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4444 if test $ac_prog = install && 4445 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4446 # AIX install. It has an incompatible calling convention. 4447 : 4448 elif test $ac_prog = install && 4449 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4450 # program-specific install script used by HP pwplus--don't use. 4451 : 4452 else 4453 rm -rf conftest.one conftest.two conftest.dir 4454 echo one > conftest.one 4455 echo two > conftest.two 4456 mkdir conftest.dir 4457 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4458 test -s conftest.one && test -s conftest.two && 4459 test -s conftest.dir/conftest.one && 4460 test -s conftest.dir/conftest.two 4461 then 4462 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4463 break 3 4464 fi 4465 fi 4466 fi 4467 done 4468 done 4469 ;; 4470esac 4471 4472 done 4473IFS=$as_save_IFS 4474 4475rm -rf conftest.one conftest.two conftest.dir 4476 4477fi 4478 if test "${ac_cv_path_install+set}" = set; then 4479 INSTALL=$ac_cv_path_install 4480 else 4481 # As a last resort, use the slow shell script. Don't cache a 4482 # value for INSTALL within a source directory, because that will 4483 # break other packages using the cache if that directory is 4484 # removed, or if the value is a relative name. 4485 INSTALL=$ac_install_sh 4486 fi 4487fi 4488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4489$as_echo "$INSTALL" >&6; } 4490 4491# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4492# It thinks the first close brace ends the variable substitution. 4493test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4494 4495test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4496 4497test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4498 4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4500$as_echo_n "checking for egrep... " >&6; } 4501if ${ac_cv_path_EGREP+:} false; then : 4502 $as_echo_n "(cached) " >&6 4503else 4504 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4505 then ac_cv_path_EGREP="$GREP -E" 4506 else 4507 if test -z "$EGREP"; then 4508 ac_path_EGREP_found=false 4509 # Loop through the user's path and test for each of PROGNAME-LIST 4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4511for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4512do 4513 IFS=$as_save_IFS 4514 test -z "$as_dir" && as_dir=. 4515 for ac_prog in egrep; do 4516 for ac_exec_ext in '' $ac_executable_extensions; do 4517 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4518 as_fn_executable_p "$ac_path_EGREP" || continue 4519# Check for GNU ac_path_EGREP and select it if it is found. 4520 # Check for GNU $ac_path_EGREP 4521case `"$ac_path_EGREP" --version 2>&1` in 4522*GNU*) 4523 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4524*) 4525 ac_count=0 4526 $as_echo_n 0123456789 >"conftest.in" 4527 while : 4528 do 4529 cat "conftest.in" "conftest.in" >"conftest.tmp" 4530 mv "conftest.tmp" "conftest.in" 4531 cp "conftest.in" "conftest.nl" 4532 $as_echo 'EGREP' >> "conftest.nl" 4533 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4534 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4535 as_fn_arith $ac_count + 1 && ac_count=$as_val 4536 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4537 # Best one so far, save it but keep looking for a better one 4538 ac_cv_path_EGREP="$ac_path_EGREP" 4539 ac_path_EGREP_max=$ac_count 4540 fi 4541 # 10*(2^10) chars as input seems more than enough 4542 test $ac_count -gt 10 && break 4543 done 4544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4545esac 4546 4547 $ac_path_EGREP_found && break 3 4548 done 4549 done 4550 done 4551IFS=$as_save_IFS 4552 if test -z "$ac_cv_path_EGREP"; then 4553 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4554 fi 4555else 4556 ac_cv_path_EGREP=$EGREP 4557fi 4558 4559 fi 4560fi 4561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4562$as_echo "$ac_cv_path_EGREP" >&6; } 4563 EGREP="$ac_cv_path_EGREP" 4564 4565 4566if test -n "$ac_tool_prefix"; then 4567 for ac_prog in ar 4568 do 4569 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4570set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4572$as_echo_n "checking for $ac_word... " >&6; } 4573if ${ac_cv_prog_AR+:} false; then : 4574 $as_echo_n "(cached) " >&6 4575else 4576 if test -n "$AR"; then 4577 ac_cv_prog_AR="$AR" # Let the user override the test. 4578else 4579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4580for as_dir in $PATH 4581do 4582 IFS=$as_save_IFS 4583 test -z "$as_dir" && as_dir=. 4584 for ac_exec_ext in '' $ac_executable_extensions; do 4585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4586 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4588 break 2 4589 fi 4590done 4591 done 4592IFS=$as_save_IFS 4593 4594fi 4595fi 4596AR=$ac_cv_prog_AR 4597if test -n "$AR"; then 4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4599$as_echo "$AR" >&6; } 4600else 4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4602$as_echo "no" >&6; } 4603fi 4604 4605 4606 test -n "$AR" && break 4607 done 4608fi 4609if test -z "$AR"; then 4610 ac_ct_AR=$AR 4611 for ac_prog in ar 4612do 4613 # Extract the first word of "$ac_prog", so it can be a program name with args. 4614set dummy $ac_prog; ac_word=$2 4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4616$as_echo_n "checking for $ac_word... " >&6; } 4617if ${ac_cv_prog_ac_ct_AR+:} false; then : 4618 $as_echo_n "(cached) " >&6 4619else 4620 if test -n "$ac_ct_AR"; then 4621 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4622else 4623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4624for as_dir in $PATH 4625do 4626 IFS=$as_save_IFS 4627 test -z "$as_dir" && as_dir=. 4628 for ac_exec_ext in '' $ac_executable_extensions; do 4629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4630 ac_cv_prog_ac_ct_AR="$ac_prog" 4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4632 break 2 4633 fi 4634done 4635 done 4636IFS=$as_save_IFS 4637 4638fi 4639fi 4640ac_ct_AR=$ac_cv_prog_ac_ct_AR 4641if test -n "$ac_ct_AR"; then 4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4643$as_echo "$ac_ct_AR" >&6; } 4644else 4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4646$as_echo "no" >&6; } 4647fi 4648 4649 4650 test -n "$ac_ct_AR" && break 4651done 4652 4653 if test "x$ac_ct_AR" = x; then 4654 AR="" 4655 else 4656 case $cross_compiling:$ac_tool_warned in 4657yes:) 4658{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4660ac_tool_warned=yes ;; 4661esac 4662 AR=$ac_ct_AR 4663 fi 4664fi 4665 4666# Extract the first word of "cat", so it can be a program name with args. 4667set dummy cat; ac_word=$2 4668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4669$as_echo_n "checking for $ac_word... " >&6; } 4670if ${ac_cv_path_CAT+:} false; then : 4671 $as_echo_n "(cached) " >&6 4672else 4673 case $CAT in 4674 [\\/]* | ?:[\\/]*) 4675 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4676 ;; 4677 *) 4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4679for as_dir in $PATH 4680do 4681 IFS=$as_save_IFS 4682 test -z "$as_dir" && as_dir=. 4683 for ac_exec_ext in '' $ac_executable_extensions; do 4684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4685 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4687 break 2 4688 fi 4689done 4690 done 4691IFS=$as_save_IFS 4692 4693 ;; 4694esac 4695fi 4696CAT=$ac_cv_path_CAT 4697if test -n "$CAT"; then 4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4699$as_echo "$CAT" >&6; } 4700else 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4702$as_echo "no" >&6; } 4703fi 4704 4705 4706# Extract the first word of "kill", so it can be a program name with args. 4707set dummy kill; ac_word=$2 4708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4709$as_echo_n "checking for $ac_word... " >&6; } 4710if ${ac_cv_path_KILL+:} false; then : 4711 $as_echo_n "(cached) " >&6 4712else 4713 case $KILL in 4714 [\\/]* | ?:[\\/]*) 4715 ac_cv_path_KILL="$KILL" # Let the user override the test with a path. 4716 ;; 4717 *) 4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4719for as_dir in $PATH 4720do 4721 IFS=$as_save_IFS 4722 test -z "$as_dir" && as_dir=. 4723 for ac_exec_ext in '' $ac_executable_extensions; do 4724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4725 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" 4726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4727 break 2 4728 fi 4729done 4730 done 4731IFS=$as_save_IFS 4732 4733 ;; 4734esac 4735fi 4736KILL=$ac_cv_path_KILL 4737if test -n "$KILL"; then 4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5 4739$as_echo "$KILL" >&6; } 4740else 4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4742$as_echo "no" >&6; } 4743fi 4744 4745 4746for ac_prog in perl5 perl 4747do 4748 # Extract the first word of "$ac_prog", so it can be a program name with args. 4749set dummy $ac_prog; ac_word=$2 4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4751$as_echo_n "checking for $ac_word... " >&6; } 4752if ${ac_cv_path_PERL+:} false; then : 4753 $as_echo_n "(cached) " >&6 4754else 4755 case $PERL in 4756 [\\/]* | ?:[\\/]*) 4757 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 4758 ;; 4759 *) 4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4761for as_dir in $PATH 4762do 4763 IFS=$as_save_IFS 4764 test -z "$as_dir" && as_dir=. 4765 for ac_exec_ext in '' $ac_executable_extensions; do 4766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4767 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4769 break 2 4770 fi 4771done 4772 done 4773IFS=$as_save_IFS 4774 4775 ;; 4776esac 4777fi 4778PERL=$ac_cv_path_PERL 4779if test -n "$PERL"; then 4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 4781$as_echo "$PERL" >&6; } 4782else 4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4784$as_echo "no" >&6; } 4785fi 4786 4787 4788 test -n "$PERL" && break 4789done 4790 4791# Extract the first word of "sed", so it can be a program name with args. 4792set dummy sed; ac_word=$2 4793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4794$as_echo_n "checking for $ac_word... " >&6; } 4795if ${ac_cv_path_SED+:} false; then : 4796 $as_echo_n "(cached) " >&6 4797else 4798 case $SED in 4799 [\\/]* | ?:[\\/]*) 4800 ac_cv_path_SED="$SED" # Let the user override the test with a path. 4801 ;; 4802 *) 4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4804for as_dir in $PATH 4805do 4806 IFS=$as_save_IFS 4807 test -z "$as_dir" && as_dir=. 4808 for ac_exec_ext in '' $ac_executable_extensions; do 4809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4810 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 4811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4812 break 2 4813 fi 4814done 4815 done 4816IFS=$as_save_IFS 4817 4818 ;; 4819esac 4820fi 4821SED=$ac_cv_path_SED 4822if test -n "$SED"; then 4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 4824$as_echo "$SED" >&6; } 4825else 4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4827$as_echo "no" >&6; } 4828fi 4829 4830 4831 4832# Extract the first word of "ent", so it can be a program name with args. 4833set dummy ent; ac_word=$2 4834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4835$as_echo_n "checking for $ac_word... " >&6; } 4836if ${ac_cv_path_ENT+:} false; then : 4837 $as_echo_n "(cached) " >&6 4838else 4839 case $ENT in 4840 [\\/]* | ?:[\\/]*) 4841 ac_cv_path_ENT="$ENT" # Let the user override the test with a path. 4842 ;; 4843 *) 4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4845for as_dir in $PATH 4846do 4847 IFS=$as_save_IFS 4848 test -z "$as_dir" && as_dir=. 4849 for ac_exec_ext in '' $ac_executable_extensions; do 4850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4851 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" 4852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4853 break 2 4854 fi 4855done 4856 done 4857IFS=$as_save_IFS 4858 4859 ;; 4860esac 4861fi 4862ENT=$ac_cv_path_ENT 4863if test -n "$ENT"; then 4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5 4865$as_echo "$ENT" >&6; } 4866else 4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4868$as_echo "no" >&6; } 4869fi 4870 4871 4872 4873# Extract the first word of "bash", so it can be a program name with args. 4874set dummy bash; ac_word=$2 4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4876$as_echo_n "checking for $ac_word... " >&6; } 4877if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : 4878 $as_echo_n "(cached) " >&6 4879else 4880 case $TEST_MINUS_S_SH in 4881 [\\/]* | ?:[\\/]*) 4882 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. 4883 ;; 4884 *) 4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4886for as_dir in $PATH 4887do 4888 IFS=$as_save_IFS 4889 test -z "$as_dir" && as_dir=. 4890 for ac_exec_ext in '' $ac_executable_extensions; do 4891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4892 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" 4893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4894 break 2 4895 fi 4896done 4897 done 4898IFS=$as_save_IFS 4899 4900 ;; 4901esac 4902fi 4903TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH 4904if test -n "$TEST_MINUS_S_SH"; then 4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 4906$as_echo "$TEST_MINUS_S_SH" >&6; } 4907else 4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4909$as_echo "no" >&6; } 4910fi 4911 4912 4913# Extract the first word of "ksh", so it can be a program name with args. 4914set dummy ksh; ac_word=$2 4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4916$as_echo_n "checking for $ac_word... " >&6; } 4917if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : 4918 $as_echo_n "(cached) " >&6 4919else 4920 case $TEST_MINUS_S_SH in 4921 [\\/]* | ?:[\\/]*) 4922 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. 4923 ;; 4924 *) 4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4926for as_dir in $PATH 4927do 4928 IFS=$as_save_IFS 4929 test -z "$as_dir" && as_dir=. 4930 for ac_exec_ext in '' $ac_executable_extensions; do 4931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4932 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" 4933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4934 break 2 4935 fi 4936done 4937 done 4938IFS=$as_save_IFS 4939 4940 ;; 4941esac 4942fi 4943TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH 4944if test -n "$TEST_MINUS_S_SH"; then 4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 4946$as_echo "$TEST_MINUS_S_SH" >&6; } 4947else 4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4949$as_echo "no" >&6; } 4950fi 4951 4952 4953# Extract the first word of "sh", so it can be a program name with args. 4954set dummy sh; ac_word=$2 4955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4956$as_echo_n "checking for $ac_word... " >&6; } 4957if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : 4958 $as_echo_n "(cached) " >&6 4959else 4960 case $TEST_MINUS_S_SH in 4961 [\\/]* | ?:[\\/]*) 4962 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. 4963 ;; 4964 *) 4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4966for as_dir in $PATH 4967do 4968 IFS=$as_save_IFS 4969 test -z "$as_dir" && as_dir=. 4970 for ac_exec_ext in '' $ac_executable_extensions; do 4971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4972 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" 4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4974 break 2 4975 fi 4976done 4977 done 4978IFS=$as_save_IFS 4979 4980 ;; 4981esac 4982fi 4983TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH 4984if test -n "$TEST_MINUS_S_SH"; then 4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 4986$as_echo "$TEST_MINUS_S_SH" >&6; } 4987else 4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4989$as_echo "no" >&6; } 4990fi 4991 4992 4993# Extract the first word of "sh", so it can be a program name with args. 4994set dummy sh; ac_word=$2 4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4996$as_echo_n "checking for $ac_word... " >&6; } 4997if ${ac_cv_path_SH+:} false; then : 4998 $as_echo_n "(cached) " >&6 4999else 5000 case $SH in 5001 [\\/]* | ?:[\\/]*) 5002 ac_cv_path_SH="$SH" # Let the user override the test with a path. 5003 ;; 5004 *) 5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5006for as_dir in $PATH 5007do 5008 IFS=$as_save_IFS 5009 test -z "$as_dir" && as_dir=. 5010 for ac_exec_ext in '' $ac_executable_extensions; do 5011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5012 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5014 break 2 5015 fi 5016done 5017 done 5018IFS=$as_save_IFS 5019 5020 ;; 5021esac 5022fi 5023SH=$ac_cv_path_SH 5024if test -n "$SH"; then 5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 5026$as_echo "$SH" >&6; } 5027else 5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5029$as_echo "no" >&6; } 5030fi 5031 5032 5033# Extract the first word of "groff", so it can be a program name with args. 5034set dummy groff; ac_word=$2 5035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5036$as_echo_n "checking for $ac_word... " >&6; } 5037if ${ac_cv_path_GROFF+:} false; then : 5038 $as_echo_n "(cached) " >&6 5039else 5040 case $GROFF in 5041 [\\/]* | ?:[\\/]*) 5042 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 5043 ;; 5044 *) 5045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5046for as_dir in $PATH 5047do 5048 IFS=$as_save_IFS 5049 test -z "$as_dir" && as_dir=. 5050 for ac_exec_ext in '' $ac_executable_extensions; do 5051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5052 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 5053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5054 break 2 5055 fi 5056done 5057 done 5058IFS=$as_save_IFS 5059 5060 ;; 5061esac 5062fi 5063GROFF=$ac_cv_path_GROFF 5064if test -n "$GROFF"; then 5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 5066$as_echo "$GROFF" >&6; } 5067else 5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5069$as_echo "no" >&6; } 5070fi 5071 5072 5073# Extract the first word of "nroff", so it can be a program name with args. 5074set dummy nroff; ac_word=$2 5075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5076$as_echo_n "checking for $ac_word... " >&6; } 5077if ${ac_cv_path_NROFF+:} false; then : 5078 $as_echo_n "(cached) " >&6 5079else 5080 case $NROFF in 5081 [\\/]* | ?:[\\/]*) 5082 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. 5083 ;; 5084 *) 5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5086for as_dir in $PATH 5087do 5088 IFS=$as_save_IFS 5089 test -z "$as_dir" && as_dir=. 5090 for ac_exec_ext in '' $ac_executable_extensions; do 5091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5092 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" 5093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5094 break 2 5095 fi 5096done 5097 done 5098IFS=$as_save_IFS 5099 5100 ;; 5101esac 5102fi 5103NROFF=$ac_cv_path_NROFF 5104if test -n "$NROFF"; then 5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 5106$as_echo "$NROFF" >&6; } 5107else 5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5109$as_echo "no" >&6; } 5110fi 5111 5112 5113# Extract the first word of "mandoc", so it can be a program name with args. 5114set dummy mandoc; ac_word=$2 5115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5116$as_echo_n "checking for $ac_word... " >&6; } 5117if ${ac_cv_path_MANDOC+:} false; then : 5118 $as_echo_n "(cached) " >&6 5119else 5120 case $MANDOC in 5121 [\\/]* | ?:[\\/]*) 5122 ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path. 5123 ;; 5124 *) 5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5126for as_dir in $PATH 5127do 5128 IFS=$as_save_IFS 5129 test -z "$as_dir" && as_dir=. 5130 for ac_exec_ext in '' $ac_executable_extensions; do 5131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5132 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext" 5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5134 break 2 5135 fi 5136done 5137 done 5138IFS=$as_save_IFS 5139 5140 ;; 5141esac 5142fi 5143MANDOC=$ac_cv_path_MANDOC 5144if test -n "$MANDOC"; then 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5 5146$as_echo "$MANDOC" >&6; } 5147else 5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5149$as_echo "no" >&6; } 5150fi 5151 5152 5153TEST_SHELL=sh 5154 5155 5156if test "x$MANDOC" != "x" ; then 5157 MANFMT="$MANDOC" 5158elif test "x$NROFF" != "x" ; then 5159 MANFMT="$NROFF -mandoc" 5160elif test "x$GROFF" != "x" ; then 5161 MANFMT="$GROFF -mandoc -Tascii" 5162else 5163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5 5164$as_echo "$as_me: WARNING: no manpage formatted found" >&2;} 5165 MANFMT="false" 5166fi 5167 5168 5169# Extract the first word of "groupadd", so it can be a program name with args. 5170set dummy groupadd; ac_word=$2 5171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5172$as_echo_n "checking for $ac_word... " >&6; } 5173if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then : 5174 $as_echo_n "(cached) " >&6 5175else 5176 case $PATH_GROUPADD_PROG in 5177 [\\/]* | ?:[\\/]*) 5178 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. 5179 ;; 5180 *) 5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5182for as_dir in /usr/sbin${PATH_SEPARATOR}/etc 5183do 5184 IFS=$as_save_IFS 5185 test -z "$as_dir" && as_dir=. 5186 for ac_exec_ext in '' $ac_executable_extensions; do 5187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5188 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" 5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5190 break 2 5191 fi 5192done 5193 done 5194IFS=$as_save_IFS 5195 5196 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" 5197 ;; 5198esac 5199fi 5200PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG 5201if test -n "$PATH_GROUPADD_PROG"; then 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5 5203$as_echo "$PATH_GROUPADD_PROG" >&6; } 5204else 5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5206$as_echo "no" >&6; } 5207fi 5208 5209 5210# Extract the first word of "useradd", so it can be a program name with args. 5211set dummy useradd; ac_word=$2 5212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5213$as_echo_n "checking for $ac_word... " >&6; } 5214if ${ac_cv_path_PATH_USERADD_PROG+:} false; then : 5215 $as_echo_n "(cached) " >&6 5216else 5217 case $PATH_USERADD_PROG in 5218 [\\/]* | ?:[\\/]*) 5219 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. 5220 ;; 5221 *) 5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5223for as_dir in /usr/sbin${PATH_SEPARATOR}/etc 5224do 5225 IFS=$as_save_IFS 5226 test -z "$as_dir" && as_dir=. 5227 for ac_exec_ext in '' $ac_executable_extensions; do 5228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5229 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" 5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5231 break 2 5232 fi 5233done 5234 done 5235IFS=$as_save_IFS 5236 5237 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" 5238 ;; 5239esac 5240fi 5241PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG 5242if test -n "$PATH_USERADD_PROG"; then 5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5 5244$as_echo "$PATH_USERADD_PROG" >&6; } 5245else 5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5247$as_echo "no" >&6; } 5248fi 5249 5250 5251# Extract the first word of "pkgmk", so it can be a program name with args. 5252set dummy pkgmk; ac_word=$2 5253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5254$as_echo_n "checking for $ac_word... " >&6; } 5255if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then : 5256 $as_echo_n "(cached) " >&6 5257else 5258 if test -n "$MAKE_PACKAGE_SUPPORTED"; then 5259 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. 5260else 5261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5262for as_dir in $PATH 5263do 5264 IFS=$as_save_IFS 5265 test -z "$as_dir" && as_dir=. 5266 for ac_exec_ext in '' $ac_executable_extensions; do 5267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5268 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" 5269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5270 break 2 5271 fi 5272done 5273 done 5274IFS=$as_save_IFS 5275 5276 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" 5277fi 5278fi 5279MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED 5280if test -n "$MAKE_PACKAGE_SUPPORTED"; then 5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5 5282$as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; } 5283else 5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5285$as_echo "no" >&6; } 5286fi 5287 5288 5289if test -x /sbin/sh; then 5290 STARTUP_SCRIPT_SHELL=/sbin/sh 5291 5292else 5293 STARTUP_SCRIPT_SHELL=/bin/sh 5294 5295fi 5296 5297# System features 5298# Check whether --enable-largefile was given. 5299if test "${enable_largefile+set}" = set; then : 5300 enableval=$enable_largefile; 5301fi 5302 5303if test "$enable_largefile" != no; then 5304 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 5306$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 5307if ${ac_cv_sys_largefile_CC+:} false; then : 5308 $as_echo_n "(cached) " >&6 5309else 5310 ac_cv_sys_largefile_CC=no 5311 if test "$GCC" != yes; then 5312 ac_save_CC=$CC 5313 while :; do 5314 # IRIX 6.2 and later do not support large files by default, 5315 # so use the C compiler's -n32 option if that helps. 5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5317/* end confdefs.h. */ 5318#include <sys/types.h> 5319 /* Check that off_t can represent 2**63 - 1 correctly. 5320 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5321 since some C++ compilers masquerading as C compilers 5322 incorrectly reject 9223372036854775807. */ 5323#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5324 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5325 && LARGE_OFF_T % 2147483647 == 1) 5326 ? 1 : -1]; 5327int 5328main () 5329{ 5330 5331 ; 5332 return 0; 5333} 5334_ACEOF 5335 if ac_fn_c_try_compile "$LINENO"; then : 5336 break 5337fi 5338rm -f core conftest.err conftest.$ac_objext 5339 CC="$CC -n32" 5340 if ac_fn_c_try_compile "$LINENO"; then : 5341 ac_cv_sys_largefile_CC=' -n32'; break 5342fi 5343rm -f core conftest.err conftest.$ac_objext 5344 break 5345 done 5346 CC=$ac_save_CC 5347 rm -f conftest.$ac_ext 5348 fi 5349fi 5350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 5351$as_echo "$ac_cv_sys_largefile_CC" >&6; } 5352 if test "$ac_cv_sys_largefile_CC" != no; then 5353 CC=$CC$ac_cv_sys_largefile_CC 5354 fi 5355 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 5357$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 5358if ${ac_cv_sys_file_offset_bits+:} false; then : 5359 $as_echo_n "(cached) " >&6 5360else 5361 while :; do 5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5363/* end confdefs.h. */ 5364#include <sys/types.h> 5365 /* Check that off_t can represent 2**63 - 1 correctly. 5366 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5367 since some C++ compilers masquerading as C compilers 5368 incorrectly reject 9223372036854775807. */ 5369#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5370 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5371 && LARGE_OFF_T % 2147483647 == 1) 5372 ? 1 : -1]; 5373int 5374main () 5375{ 5376 5377 ; 5378 return 0; 5379} 5380_ACEOF 5381if ac_fn_c_try_compile "$LINENO"; then : 5382 ac_cv_sys_file_offset_bits=no; break 5383fi 5384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5386/* end confdefs.h. */ 5387#define _FILE_OFFSET_BITS 64 5388#include <sys/types.h> 5389 /* Check that off_t can represent 2**63 - 1 correctly. 5390 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5391 since some C++ compilers masquerading as C compilers 5392 incorrectly reject 9223372036854775807. */ 5393#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5394 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5395 && LARGE_OFF_T % 2147483647 == 1) 5396 ? 1 : -1]; 5397int 5398main () 5399{ 5400 5401 ; 5402 return 0; 5403} 5404_ACEOF 5405if ac_fn_c_try_compile "$LINENO"; then : 5406 ac_cv_sys_file_offset_bits=64; break 5407fi 5408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5409 ac_cv_sys_file_offset_bits=unknown 5410 break 5411done 5412fi 5413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 5414$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 5415case $ac_cv_sys_file_offset_bits in #( 5416 no | unknown) ;; 5417 *) 5418cat >>confdefs.h <<_ACEOF 5419#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 5420_ACEOF 5421;; 5422esac 5423rm -rf conftest* 5424 if test $ac_cv_sys_file_offset_bits = unknown; then 5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 5426$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 5427if ${ac_cv_sys_large_files+:} false; then : 5428 $as_echo_n "(cached) " >&6 5429else 5430 while :; do 5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5432/* end confdefs.h. */ 5433#include <sys/types.h> 5434 /* Check that off_t can represent 2**63 - 1 correctly. 5435 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5436 since some C++ compilers masquerading as C compilers 5437 incorrectly reject 9223372036854775807. */ 5438#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5439 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5440 && LARGE_OFF_T % 2147483647 == 1) 5441 ? 1 : -1]; 5442int 5443main () 5444{ 5445 5446 ; 5447 return 0; 5448} 5449_ACEOF 5450if ac_fn_c_try_compile "$LINENO"; then : 5451 ac_cv_sys_large_files=no; break 5452fi 5453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5455/* end confdefs.h. */ 5456#define _LARGE_FILES 1 5457#include <sys/types.h> 5458 /* Check that off_t can represent 2**63 - 1 correctly. 5459 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5460 since some C++ compilers masquerading as C compilers 5461 incorrectly reject 9223372036854775807. */ 5462#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5463 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5464 && LARGE_OFF_T % 2147483647 == 1) 5465 ? 1 : -1]; 5466int 5467main () 5468{ 5469 5470 ; 5471 return 0; 5472} 5473_ACEOF 5474if ac_fn_c_try_compile "$LINENO"; then : 5475 ac_cv_sys_large_files=1; break 5476fi 5477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5478 ac_cv_sys_large_files=unknown 5479 break 5480done 5481fi 5482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 5483$as_echo "$ac_cv_sys_large_files" >&6; } 5484case $ac_cv_sys_large_files in #( 5485 no | unknown) ;; 5486 *) 5487cat >>confdefs.h <<_ACEOF 5488#define _LARGE_FILES $ac_cv_sys_large_files 5489_ACEOF 5490;; 5491esac 5492rm -rf conftest* 5493 fi 5494 5495 5496fi 5497 5498 5499if test -z "$AR" ; then 5500 as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5 5501fi 5502 5503# Extract the first word of "passwd", so it can be a program name with args. 5504set dummy passwd; ac_word=$2 5505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5506$as_echo_n "checking for $ac_word... " >&6; } 5507if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then : 5508 $as_echo_n "(cached) " >&6 5509else 5510 case $PATH_PASSWD_PROG in 5511 [\\/]* | ?:[\\/]*) 5512 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. 5513 ;; 5514 *) 5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5516for as_dir in $PATH 5517do 5518 IFS=$as_save_IFS 5519 test -z "$as_dir" && as_dir=. 5520 for ac_exec_ext in '' $ac_executable_extensions; do 5521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5522 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" 5523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5524 break 2 5525 fi 5526done 5527 done 5528IFS=$as_save_IFS 5529 5530 ;; 5531esac 5532fi 5533PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG 5534if test -n "$PATH_PASSWD_PROG"; then 5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5 5536$as_echo "$PATH_PASSWD_PROG" >&6; } 5537else 5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5539$as_echo "no" >&6; } 5540fi 5541 5542 5543if test ! -z "$PATH_PASSWD_PROG" ; then 5544 5545cat >>confdefs.h <<_ACEOF 5546#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" 5547_ACEOF 5548 5549fi 5550 5551if test -z "$LD" ; then 5552 LD=$CC 5553fi 5554 5555 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 5557$as_echo_n "checking for inline... " >&6; } 5558if ${ac_cv_c_inline+:} false; then : 5559 $as_echo_n "(cached) " >&6 5560else 5561 ac_cv_c_inline=no 5562for ac_kw in inline __inline__ __inline; do 5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5564/* end confdefs.h. */ 5565#ifndef __cplusplus 5566typedef int foo_t; 5567static $ac_kw foo_t static_foo () {return 0; } 5568$ac_kw foo_t foo () {return 0; } 5569#endif 5570 5571_ACEOF 5572if ac_fn_c_try_compile "$LINENO"; then : 5573 ac_cv_c_inline=$ac_kw 5574fi 5575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5576 test "$ac_cv_c_inline" != no && break 5577done 5578 5579fi 5580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 5581$as_echo "$ac_cv_c_inline" >&6; } 5582 5583case $ac_cv_c_inline in 5584 inline | yes) ;; 5585 *) 5586 case $ac_cv_c_inline in 5587 no) ac_val=;; 5588 *) ac_val=$ac_cv_c_inline;; 5589 esac 5590 cat >>confdefs.h <<_ACEOF 5591#ifndef __cplusplus 5592#define inline $ac_val 5593#endif 5594_ACEOF 5595 ;; 5596esac 5597 5598 5599ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> 5600" 5601if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : 5602 have_llong_max=1 5603fi 5604 5605ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" " 5606 #include <sys/types.h> 5607 #include <sys/param.h> 5608 #include <dev/systrace.h> 5609 5610" 5611if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then : 5612 have_systr_policy_kill=1 5613fi 5614 5615ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" " 5616 #include <sys/types.h> 5617 #include <sys/resource.h> 5618 5619" 5620if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then : 5621 5622$as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h 5623 5624fi 5625 5626ac_fn_c_check_decl "$LINENO" "PR_SET_NO_NEW_PRIVS" "ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" " 5627 #include <sys/types.h> 5628 #include <linux/prctl.h> 5629 5630" 5631if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then : 5632 have_linux_no_new_privs=1 5633fi 5634 5635 5636openssl=yes 5637ssh1=no 5638COMMENT_OUT_RSA1="#no ssh1#" 5639 5640# Check whether --with-openssl was given. 5641if test "${with_openssl+set}" = set; then : 5642 withval=$with_openssl; if test "x$withval" = "xno" ; then 5643 openssl=no 5644 ssh1=no 5645 fi 5646 5647 5648fi 5649 5650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL will be used for cryptography" >&5 5651$as_echo_n "checking whether OpenSSL will be used for cryptography... " >&6; } 5652if test "x$openssl" = "xyes" ; then 5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5654$as_echo "yes" >&6; } 5655 5656cat >>confdefs.h <<_ACEOF 5657#define WITH_OPENSSL 1 5658_ACEOF 5659 5660else 5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5662$as_echo "no" >&6; } 5663fi 5664 5665 5666# Check whether --with-ssh1 was given. 5667if test "${with_ssh1+set}" = set; then : 5668 withval=$with_ssh1; 5669 if test "x$withval" = "xyes" ; then 5670 if test "x$openssl" = "xno" ; then 5671 as_fn_error $? "Cannot enable SSH protocol 1 with OpenSSL disabled" "$LINENO" 5 5672 fi 5673 ssh1=yes 5674 COMMENT_OUT_RSA1="" 5675 elif test "x$withval" = "xno" ; then 5676 ssh1=no 5677 else 5678 as_fn_error $? "unknown --with-ssh1 argument" "$LINENO" 5 5679 fi 5680 5681 5682fi 5683 5684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SSH protocol 1 support is enabled" >&5 5685$as_echo_n "checking whether SSH protocol 1 support is enabled... " >&6; } 5686if test "x$ssh1" = "xyes" ; then 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5688$as_echo "yes" >&6; } 5689 5690cat >>confdefs.h <<_ACEOF 5691#define WITH_SSH1 1 5692_ACEOF 5693 5694 5695else 5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5697$as_echo "no" >&6; } 5698fi 5699 5700use_stack_protector=1 5701use_toolchain_hardening=1 5702 5703# Check whether --with-stackprotect was given. 5704if test "${with_stackprotect+set}" = set; then : 5705 withval=$with_stackprotect; 5706 if test "x$withval" = "xno"; then 5707 use_stack_protector=0 5708 fi 5709fi 5710 5711 5712# Check whether --with-hardening was given. 5713if test "${with_hardening+set}" = set; then : 5714 withval=$with_hardening; 5715 if test "x$withval" = "xno"; then 5716 use_toolchain_hardening=0 5717 fi 5718fi 5719 5720 5721# We use -Werror for the tests only so that we catch warnings like "this is 5722# on by default" for things like -fPIE. 5723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 5724$as_echo_n "checking if $CC supports -Werror... " >&6; } 5725saved_CFLAGS="$CFLAGS" 5726CFLAGS="$CFLAGS -Werror" 5727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5728/* end confdefs.h. */ 5729int main(void) { return 0; } 5730_ACEOF 5731if ac_fn_c_try_compile "$LINENO"; then : 5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5733$as_echo "yes" >&6; } 5734 WERROR="-Werror" 5735else 5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5737$as_echo "no" >&6; } 5738 WERROR="" 5739 5740fi 5741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5742CFLAGS="$saved_CFLAGS" 5743 5744if test "$GCC" = "yes" || test "$GCC" = "egcs"; then 5745 { 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Qunused-arguments" >&5 5747$as_echo_n "checking if $CC supports compile flag -Qunused-arguments... " >&6; } 5748 saved_CFLAGS="$CFLAGS" 5749 CFLAGS="$CFLAGS $WERROR -Qunused-arguments" 5750 _define_flag="" 5751 test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments" 5752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5753/* end confdefs.h. */ 5754 5755#include <stdlib.h> 5756#include <stdio.h> 5757int main(int argc, char **argv) { 5758 /* Some math to catch -ftrapv problems in the toolchain */ 5759 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 5760 float l = i * 2.1; 5761 double m = l / 0.5; 5762 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 5763 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 5764 exit(0); 5765} 5766 5767_ACEOF 5768if ac_fn_c_try_compile "$LINENO"; then : 5769 5770if `grep -i "unrecognized option" conftest.err >/dev/null` 5771then 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5773$as_echo "no" >&6; } 5774 CFLAGS="$saved_CFLAGS" 5775else 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5777$as_echo "yes" >&6; } 5778 CFLAGS="$saved_CFLAGS $_define_flag" 5779fi 5780else 5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5782$as_echo "no" >&6; } 5783 CFLAGS="$saved_CFLAGS" 5784 5785fi 5786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5787} 5788 { 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunknown-warning-option" >&5 5790$as_echo_n "checking if $CC supports compile flag -Wunknown-warning-option... " >&6; } 5791 saved_CFLAGS="$CFLAGS" 5792 CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option" 5793 _define_flag="" 5794 test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option" 5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5796/* end confdefs.h. */ 5797 5798#include <stdlib.h> 5799#include <stdio.h> 5800int main(int argc, char **argv) { 5801 /* Some math to catch -ftrapv problems in the toolchain */ 5802 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 5803 float l = i * 2.1; 5804 double m = l / 0.5; 5805 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 5806 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 5807 exit(0); 5808} 5809 5810_ACEOF 5811if ac_fn_c_try_compile "$LINENO"; then : 5812 5813if `grep -i "unrecognized option" conftest.err >/dev/null` 5814then 5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5816$as_echo "no" >&6; } 5817 CFLAGS="$saved_CFLAGS" 5818else 5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5820$as_echo "yes" >&6; } 5821 CFLAGS="$saved_CFLAGS $_define_flag" 5822fi 5823else 5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5825$as_echo "no" >&6; } 5826 CFLAGS="$saved_CFLAGS" 5827 5828fi 5829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5830} 5831 { 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wall" >&5 5833$as_echo_n "checking if $CC supports compile flag -Wall... " >&6; } 5834 saved_CFLAGS="$CFLAGS" 5835 CFLAGS="$CFLAGS $WERROR -Wall" 5836 _define_flag="" 5837 test "x$_define_flag" = "x" && _define_flag="-Wall" 5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5839/* end confdefs.h. */ 5840 5841#include <stdlib.h> 5842#include <stdio.h> 5843int main(int argc, char **argv) { 5844 /* Some math to catch -ftrapv problems in the toolchain */ 5845 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 5846 float l = i * 2.1; 5847 double m = l / 0.5; 5848 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 5849 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 5850 exit(0); 5851} 5852 5853_ACEOF 5854if ac_fn_c_try_compile "$LINENO"; then : 5855 5856if `grep -i "unrecognized option" conftest.err >/dev/null` 5857then 5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5859$as_echo "no" >&6; } 5860 CFLAGS="$saved_CFLAGS" 5861else 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5863$as_echo "yes" >&6; } 5864 CFLAGS="$saved_CFLAGS $_define_flag" 5865fi 5866else 5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5868$as_echo "no" >&6; } 5869 CFLAGS="$saved_CFLAGS" 5870 5871fi 5872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5873} 5874 { 5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-arith" >&5 5876$as_echo_n "checking if $CC supports compile flag -Wpointer-arith... " >&6; } 5877 saved_CFLAGS="$CFLAGS" 5878 CFLAGS="$CFLAGS $WERROR -Wpointer-arith" 5879 _define_flag="" 5880 test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith" 5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5882/* end confdefs.h. */ 5883 5884#include <stdlib.h> 5885#include <stdio.h> 5886int main(int argc, char **argv) { 5887 /* Some math to catch -ftrapv problems in the toolchain */ 5888 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 5889 float l = i * 2.1; 5890 double m = l / 0.5; 5891 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 5892 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 5893 exit(0); 5894} 5895 5896_ACEOF 5897if ac_fn_c_try_compile "$LINENO"; then : 5898 5899if `grep -i "unrecognized option" conftest.err >/dev/null` 5900then 5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5902$as_echo "no" >&6; } 5903 CFLAGS="$saved_CFLAGS" 5904else 5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5906$as_echo "yes" >&6; } 5907 CFLAGS="$saved_CFLAGS $_define_flag" 5908fi 5909else 5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5911$as_echo "no" >&6; } 5912 CFLAGS="$saved_CFLAGS" 5913 5914fi 5915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5916} 5917 { 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wuninitialized" >&5 5919$as_echo_n "checking if $CC supports compile flag -Wuninitialized... " >&6; } 5920 saved_CFLAGS="$CFLAGS" 5921 CFLAGS="$CFLAGS $WERROR -Wuninitialized" 5922 _define_flag="" 5923 test "x$_define_flag" = "x" && _define_flag="-Wuninitialized" 5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5925/* end confdefs.h. */ 5926 5927#include <stdlib.h> 5928#include <stdio.h> 5929int main(int argc, char **argv) { 5930 /* Some math to catch -ftrapv problems in the toolchain */ 5931 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 5932 float l = i * 2.1; 5933 double m = l / 0.5; 5934 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 5935 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 5936 exit(0); 5937} 5938 5939_ACEOF 5940if ac_fn_c_try_compile "$LINENO"; then : 5941 5942if `grep -i "unrecognized option" conftest.err >/dev/null` 5943then 5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5945$as_echo "no" >&6; } 5946 CFLAGS="$saved_CFLAGS" 5947else 5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5949$as_echo "yes" >&6; } 5950 CFLAGS="$saved_CFLAGS $_define_flag" 5951fi 5952else 5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5954$as_echo "no" >&6; } 5955 CFLAGS="$saved_CFLAGS" 5956 5957fi 5958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5959} 5960 { 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsign-compare" >&5 5962$as_echo_n "checking if $CC supports compile flag -Wsign-compare... " >&6; } 5963 saved_CFLAGS="$CFLAGS" 5964 CFLAGS="$CFLAGS $WERROR -Wsign-compare" 5965 _define_flag="" 5966 test "x$_define_flag" = "x" && _define_flag="-Wsign-compare" 5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5968/* end confdefs.h. */ 5969 5970#include <stdlib.h> 5971#include <stdio.h> 5972int main(int argc, char **argv) { 5973 /* Some math to catch -ftrapv problems in the toolchain */ 5974 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 5975 float l = i * 2.1; 5976 double m = l / 0.5; 5977 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 5978 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 5979 exit(0); 5980} 5981 5982_ACEOF 5983if ac_fn_c_try_compile "$LINENO"; then : 5984 5985if `grep -i "unrecognized option" conftest.err >/dev/null` 5986then 5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5988$as_echo "no" >&6; } 5989 CFLAGS="$saved_CFLAGS" 5990else 5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5992$as_echo "yes" >&6; } 5993 CFLAGS="$saved_CFLAGS $_define_flag" 5994fi 5995else 5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5997$as_echo "no" >&6; } 5998 CFLAGS="$saved_CFLAGS" 5999 6000fi 6001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6002} 6003 { 6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wformat-security" >&5 6005$as_echo_n "checking if $CC supports compile flag -Wformat-security... " >&6; } 6006 saved_CFLAGS="$CFLAGS" 6007 CFLAGS="$CFLAGS $WERROR -Wformat-security" 6008 _define_flag="" 6009 test "x$_define_flag" = "x" && _define_flag="-Wformat-security" 6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6011/* end confdefs.h. */ 6012 6013#include <stdlib.h> 6014#include <stdio.h> 6015int main(int argc, char **argv) { 6016 /* Some math to catch -ftrapv problems in the toolchain */ 6017 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 6018 float l = i * 2.1; 6019 double m = l / 0.5; 6020 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 6021 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 6022 exit(0); 6023} 6024 6025_ACEOF 6026if ac_fn_c_try_compile "$LINENO"; then : 6027 6028if `grep -i "unrecognized option" conftest.err >/dev/null` 6029then 6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6031$as_echo "no" >&6; } 6032 CFLAGS="$saved_CFLAGS" 6033else 6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6035$as_echo "yes" >&6; } 6036 CFLAGS="$saved_CFLAGS $_define_flag" 6037fi 6038else 6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6040$as_echo "no" >&6; } 6041 CFLAGS="$saved_CFLAGS" 6042 6043fi 6044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6045} 6046 { 6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5 6048$as_echo_n "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... " >&6; } 6049 saved_CFLAGS="$CFLAGS" 6050 CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess" 6051 _define_flag="" 6052 test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess" 6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6054/* end confdefs.h. */ 6055 6056#include <stdlib.h> 6057#include <stdio.h> 6058int main(int argc, char **argv) { 6059 /* Some math to catch -ftrapv problems in the toolchain */ 6060 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 6061 float l = i * 2.1; 6062 double m = l / 0.5; 6063 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 6064 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 6065 exit(0); 6066} 6067 6068_ACEOF 6069if ac_fn_c_try_compile "$LINENO"; then : 6070 6071if `grep -i "unrecognized option" conftest.err >/dev/null` 6072then 6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6074$as_echo "no" >&6; } 6075 CFLAGS="$saved_CFLAGS" 6076else 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6078$as_echo "yes" >&6; } 6079 CFLAGS="$saved_CFLAGS $_define_flag" 6080fi 6081else 6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6083$as_echo "no" >&6; } 6084 CFLAGS="$saved_CFLAGS" 6085 6086fi 6087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6088} 6089 { 6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-sign" >&5 6091$as_echo_n "checking if $CC supports compile flag -Wpointer-sign... " >&6; } 6092 saved_CFLAGS="$CFLAGS" 6093 CFLAGS="$CFLAGS $WERROR -Wpointer-sign" 6094 _define_flag="-Wno-pointer-sign" 6095 test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign" 6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6097/* end confdefs.h. */ 6098 6099#include <stdlib.h> 6100#include <stdio.h> 6101int main(int argc, char **argv) { 6102 /* Some math to catch -ftrapv problems in the toolchain */ 6103 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 6104 float l = i * 2.1; 6105 double m = l / 0.5; 6106 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 6107 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 6108 exit(0); 6109} 6110 6111_ACEOF 6112if ac_fn_c_try_compile "$LINENO"; then : 6113 6114if `grep -i "unrecognized option" conftest.err >/dev/null` 6115then 6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6117$as_echo "no" >&6; } 6118 CFLAGS="$saved_CFLAGS" 6119else 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6121$as_echo "yes" >&6; } 6122 CFLAGS="$saved_CFLAGS $_define_flag" 6123fi 6124else 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6126$as_echo "no" >&6; } 6127 CFLAGS="$saved_CFLAGS" 6128 6129fi 6130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6131} 6132 { 6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunused-result" >&5 6134$as_echo_n "checking if $CC supports compile flag -Wunused-result... " >&6; } 6135 saved_CFLAGS="$CFLAGS" 6136 CFLAGS="$CFLAGS $WERROR -Wunused-result" 6137 _define_flag="-Wno-unused-result" 6138 test "x$_define_flag" = "x" && _define_flag="-Wunused-result" 6139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6140/* end confdefs.h. */ 6141 6142#include <stdlib.h> 6143#include <stdio.h> 6144int main(int argc, char **argv) { 6145 /* Some math to catch -ftrapv problems in the toolchain */ 6146 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 6147 float l = i * 2.1; 6148 double m = l / 0.5; 6149 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 6150 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 6151 exit(0); 6152} 6153 6154_ACEOF 6155if ac_fn_c_try_compile "$LINENO"; then : 6156 6157if `grep -i "unrecognized option" conftest.err >/dev/null` 6158then 6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6160$as_echo "no" >&6; } 6161 CFLAGS="$saved_CFLAGS" 6162else 6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6164$as_echo "yes" >&6; } 6165 CFLAGS="$saved_CFLAGS $_define_flag" 6166fi 6167else 6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6169$as_echo "no" >&6; } 6170 CFLAGS="$saved_CFLAGS" 6171 6172fi 6173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6174} 6175 { 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fno-strict-aliasing" >&5 6177$as_echo_n "checking if $CC supports compile flag -fno-strict-aliasing... " >&6; } 6178 saved_CFLAGS="$CFLAGS" 6179 CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing" 6180 _define_flag="" 6181 test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing" 6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6183/* end confdefs.h. */ 6184 6185#include <stdlib.h> 6186#include <stdio.h> 6187int main(int argc, char **argv) { 6188 /* Some math to catch -ftrapv problems in the toolchain */ 6189 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 6190 float l = i * 2.1; 6191 double m = l / 0.5; 6192 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 6193 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 6194 exit(0); 6195} 6196 6197_ACEOF 6198if ac_fn_c_try_compile "$LINENO"; then : 6199 6200if `grep -i "unrecognized option" conftest.err >/dev/null` 6201then 6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6203$as_echo "no" >&6; } 6204 CFLAGS="$saved_CFLAGS" 6205else 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6207$as_echo "yes" >&6; } 6208 CFLAGS="$saved_CFLAGS $_define_flag" 6209fi 6210else 6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6212$as_echo "no" >&6; } 6213 CFLAGS="$saved_CFLAGS" 6214 6215fi 6216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6217} 6218 { 6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5 6220$as_echo_n "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... " >&6; } 6221 saved_CFLAGS="$CFLAGS" 6222 CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2" 6223 _define_flag="" 6224 test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2" 6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6226/* end confdefs.h. */ 6227 6228#include <stdlib.h> 6229#include <stdio.h> 6230int main(int argc, char **argv) { 6231 /* Some math to catch -ftrapv problems in the toolchain */ 6232 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 6233 float l = i * 2.1; 6234 double m = l / 0.5; 6235 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 6236 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 6237 exit(0); 6238} 6239 6240_ACEOF 6241if ac_fn_c_try_compile "$LINENO"; then : 6242 6243if `grep -i "unrecognized option" conftest.err >/dev/null` 6244then 6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6246$as_echo "no" >&6; } 6247 CFLAGS="$saved_CFLAGS" 6248else 6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6250$as_echo "yes" >&6; } 6251 CFLAGS="$saved_CFLAGS $_define_flag" 6252fi 6253else 6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6255$as_echo "no" >&6; } 6256 CFLAGS="$saved_CFLAGS" 6257 6258fi 6259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6260} 6261 if test "x$use_toolchain_hardening" = "x1"; then 6262 { 6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,relro" >&5 6264$as_echo_n "checking if $LD supports link flag -Wl,-z,relro... " >&6; } 6265 saved_LDFLAGS="$LDFLAGS" 6266 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro" 6267 _define_flag="" 6268 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro" 6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6270/* end confdefs.h. */ 6271 6272#include <stdlib.h> 6273#include <stdio.h> 6274int main(int argc, char **argv) { 6275 /* Some math to catch -ftrapv problems in the toolchain */ 6276 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 6277 float l = i * 2.1; 6278 double m = l / 0.5; 6279 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 6280 long long p = n * o; 6281 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); 6282 exit(0); 6283} 6284 6285_ACEOF 6286if ac_fn_c_try_link "$LINENO"; then : 6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6288$as_echo "yes" >&6; } 6289 LDFLAGS="$saved_LDFLAGS $_define_flag" 6290else 6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6292$as_echo "no" >&6; } 6293 LDFLAGS="$saved_LDFLAGS" 6294 6295fi 6296rm -f core conftest.err conftest.$ac_objext \ 6297 conftest$ac_exeext conftest.$ac_ext 6298} 6299 { 6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,now" >&5 6301$as_echo_n "checking if $LD supports link flag -Wl,-z,now... " >&6; } 6302 saved_LDFLAGS="$LDFLAGS" 6303 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now" 6304 _define_flag="" 6305 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now" 6306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6307/* end confdefs.h. */ 6308 6309#include <stdlib.h> 6310#include <stdio.h> 6311int main(int argc, char **argv) { 6312 /* Some math to catch -ftrapv problems in the toolchain */ 6313 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 6314 float l = i * 2.1; 6315 double m = l / 0.5; 6316 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 6317 long long p = n * o; 6318 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); 6319 exit(0); 6320} 6321 6322_ACEOF 6323if ac_fn_c_try_link "$LINENO"; then : 6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6325$as_echo "yes" >&6; } 6326 LDFLAGS="$saved_LDFLAGS $_define_flag" 6327else 6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6329$as_echo "no" >&6; } 6330 LDFLAGS="$saved_LDFLAGS" 6331 6332fi 6333rm -f core conftest.err conftest.$ac_objext \ 6334 conftest$ac_exeext conftest.$ac_ext 6335} 6336 { 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,noexecstack" >&5 6338$as_echo_n "checking if $LD supports link flag -Wl,-z,noexecstack... " >&6; } 6339 saved_LDFLAGS="$LDFLAGS" 6340 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack" 6341 _define_flag="" 6342 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack" 6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6344/* end confdefs.h. */ 6345 6346#include <stdlib.h> 6347#include <stdio.h> 6348int main(int argc, char **argv) { 6349 /* Some math to catch -ftrapv problems in the toolchain */ 6350 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 6351 float l = i * 2.1; 6352 double m = l / 0.5; 6353 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 6354 long long p = n * o; 6355 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); 6356 exit(0); 6357} 6358 6359_ACEOF 6360if ac_fn_c_try_link "$LINENO"; then : 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6362$as_echo "yes" >&6; } 6363 LDFLAGS="$saved_LDFLAGS $_define_flag" 6364else 6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6366$as_echo "no" >&6; } 6367 LDFLAGS="$saved_LDFLAGS" 6368 6369fi 6370rm -f core conftest.err conftest.$ac_objext \ 6371 conftest$ac_exeext conftest.$ac_ext 6372} 6373 # NB. -ftrapv expects certain support functions to be present in 6374 # the compiler library (libgcc or similar) to detect integer operations 6375 # that can overflow. We must check that the result of enabling it 6376 # actually links. The test program compiled/linked includes a number 6377 # of integer operations that should exercise this. 6378 { 6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5 6380$as_echo_n "checking if $CC supports compile flag -ftrapv and linking succeeds... " >&6; } 6381 saved_CFLAGS="$CFLAGS" 6382 CFLAGS="$CFLAGS $WERROR -ftrapv" 6383 _define_flag="" 6384 test "x$_define_flag" = "x" && _define_flag="-ftrapv" 6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6386/* end confdefs.h. */ 6387 6388#include <stdlib.h> 6389#include <stdio.h> 6390int main(int argc, char **argv) { 6391 /* Some math to catch -ftrapv problems in the toolchain */ 6392 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 6393 float l = i * 2.1; 6394 double m = l / 0.5; 6395 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 6396 long long int p = n * o; 6397 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); 6398 exit(0); 6399} 6400 6401_ACEOF 6402if ac_fn_c_try_link "$LINENO"; then : 6403 6404if `grep -i "unrecognized option" conftest.err >/dev/null` 6405then 6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6407$as_echo "no" >&6; } 6408 CFLAGS="$saved_CFLAGS" 6409else 6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6411$as_echo "yes" >&6; } 6412 CFLAGS="$saved_CFLAGS $_define_flag" 6413fi 6414else 6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6416$as_echo "no" >&6; } 6417 CFLAGS="$saved_CFLAGS" 6418 6419fi 6420rm -f core conftest.err conftest.$ac_objext \ 6421 conftest$ac_exeext conftest.$ac_ext 6422} 6423 fi 6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5 6425$as_echo_n "checking gcc version... " >&6; } 6426 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` 6427 case $GCC_VER in 6428 1.*) no_attrib_nonnull=1 ;; 6429 2.8* | 2.9*) 6430 no_attrib_nonnull=1 6431 ;; 6432 2.*) no_attrib_nonnull=1 ;; 6433 *) ;; 6434 esac 6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5 6436$as_echo "$GCC_VER" >&6; } 6437 6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5 6439$as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; } 6440 saved_CFLAGS="$CFLAGS" 6441 CFLAGS="$CFLAGS -fno-builtin-memset" 6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6443/* end confdefs.h. */ 6444 #include <string.h> 6445int 6446main () 6447{ 6448 char b[10]; memset(b, 0, sizeof(b)); 6449 ; 6450 return 0; 6451} 6452_ACEOF 6453if ac_fn_c_try_link "$LINENO"; then : 6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6455$as_echo "yes" >&6; } 6456else 6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6458$as_echo "no" >&6; } 6459 CFLAGS="$saved_CFLAGS" 6460 6461fi 6462rm -f core conftest.err conftest.$ac_objext \ 6463 conftest$ac_exeext conftest.$ac_ext 6464 6465 # -fstack-protector-all doesn't always work for some GCC versions 6466 # and/or platforms, so we test if we can. If it's not supported 6467 # on a given platform gcc will emit a warning so we use -Werror. 6468 if test "x$use_stack_protector" = "x1"; then 6469 for t in -fstack-protector-strong -fstack-protector-all \ 6470 -fstack-protector; do 6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5 6472$as_echo_n "checking if $CC supports $t... " >&6; } 6473 saved_CFLAGS="$CFLAGS" 6474 saved_LDFLAGS="$LDFLAGS" 6475 CFLAGS="$CFLAGS $t -Werror" 6476 LDFLAGS="$LDFLAGS $t -Werror" 6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6478/* end confdefs.h. */ 6479 #include <stdio.h> 6480int 6481main () 6482{ 6483 6484 char x[256]; 6485 snprintf(x, sizeof(x), "XXX"); 6486 6487 ; 6488 return 0; 6489} 6490_ACEOF 6491if ac_fn_c_try_link "$LINENO"; then : 6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6493$as_echo "yes" >&6; } 6494 CFLAGS="$saved_CFLAGS $t" 6495 LDFLAGS="$saved_LDFLAGS $t" 6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5 6497$as_echo_n "checking if $t works... " >&6; } 6498 if test "$cross_compiling" = yes; then : 6499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5 6500$as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;} 6501 break 6502 6503else 6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6505/* end confdefs.h. */ 6506 #include <stdio.h> 6507int 6508main () 6509{ 6510 6511 char x[256]; 6512 snprintf(x, sizeof(x), "XXX"); 6513 6514 ; 6515 return 0; 6516} 6517_ACEOF 6518if ac_fn_c_try_run "$LINENO"; then : 6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6520$as_echo "yes" >&6; } 6521 break 6522else 6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6524$as_echo "no" >&6; } 6525fi 6526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6527 conftest.$ac_objext conftest.beam conftest.$ac_ext 6528fi 6529 6530 6531else 6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6533$as_echo "no" >&6; } 6534 6535fi 6536rm -f core conftest.err conftest.$ac_objext \ 6537 conftest$ac_exeext conftest.$ac_ext 6538 CFLAGS="$saved_CFLAGS" 6539 LDFLAGS="$saved_LDFLAGS" 6540 done 6541 fi 6542 6543 if test -z "$have_llong_max"; then 6544 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes 6545 unset ac_cv_have_decl_LLONG_MAX 6546 saved_CFLAGS="$CFLAGS" 6547 CFLAGS="$CFLAGS -std=gnu99" 6548 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> 6549 6550" 6551if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : 6552 have_llong_max=1 6553else 6554 CFLAGS="$saved_CFLAGS" 6555fi 6556 6557 fi 6558fi 6559 6560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ on return types" >&5 6561$as_echo_n "checking if compiler allows __attribute__ on return types... " >&6; } 6562cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6563/* end confdefs.h. */ 6564 6565#include <stdlib.h> 6566__attribute__((__unused__)) static void foo(void){return;} 6567int 6568main () 6569{ 6570 exit(0); 6571 ; 6572 return 0; 6573} 6574_ACEOF 6575if ac_fn_c_try_compile "$LINENO"; then : 6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6577$as_echo "yes" >&6; } 6578else 6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6580$as_echo "no" >&6; } 6581 6582$as_echo "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h 6583 6584 6585fi 6586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6587 6588if test "x$no_attrib_nonnull" != "x1" ; then 6589 6590$as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h 6591 6592fi 6593 6594 6595# Check whether --with-rpath was given. 6596if test "${with_rpath+set}" = set; then : 6597 withval=$with_rpath; 6598 if test "x$withval" = "xno" ; then 6599 need_dash_r="" 6600 fi 6601 if test "x$withval" = "xyes" ; then 6602 need_dash_r=1 6603 fi 6604 6605 6606fi 6607 6608 6609# Allow user to specify flags 6610 6611# Check whether --with-cflags was given. 6612if test "${with_cflags+set}" = set; then : 6613 withval=$with_cflags; 6614 if test -n "$withval" && test "x$withval" != "xno" && \ 6615 test "x${withval}" != "xyes"; then 6616 CFLAGS="$CFLAGS $withval" 6617 fi 6618 6619 6620fi 6621 6622 6623# Check whether --with-cppflags was given. 6624if test "${with_cppflags+set}" = set; then : 6625 withval=$with_cppflags; 6626 if test -n "$withval" && test "x$withval" != "xno" && \ 6627 test "x${withval}" != "xyes"; then 6628 CPPFLAGS="$CPPFLAGS $withval" 6629 fi 6630 6631 6632fi 6633 6634 6635# Check whether --with-ldflags was given. 6636if test "${with_ldflags+set}" = set; then : 6637 withval=$with_ldflags; 6638 if test -n "$withval" && test "x$withval" != "xno" && \ 6639 test "x${withval}" != "xyes"; then 6640 LDFLAGS="$LDFLAGS $withval" 6641 fi 6642 6643 6644fi 6645 6646 6647# Check whether --with-libs was given. 6648if test "${with_libs+set}" = set; then : 6649 withval=$with_libs; 6650 if test -n "$withval" && test "x$withval" != "xno" && \ 6651 test "x${withval}" != "xyes"; then 6652 LIBS="$LIBS $withval" 6653 fi 6654 6655 6656fi 6657 6658 6659# Check whether --with-Werror was given. 6660if test "${with_Werror+set}" = set; then : 6661 withval=$with_Werror; 6662 if test -n "$withval" && test "x$withval" != "xno"; then 6663 werror_flags="-Werror" 6664 if test "x${withval}" != "xyes"; then 6665 werror_flags="$withval" 6666 fi 6667 fi 6668 6669 6670fi 6671 6672 6673for ac_header in \ 6674 blf.h \ 6675 bstring.h \ 6676 crypt.h \ 6677 crypto/sha2.h \ 6678 dirent.h \ 6679 endian.h \ 6680 elf.h \ 6681 err.h \ 6682 features.h \ 6683 fcntl.h \ 6684 floatingpoint.h \ 6685 getopt.h \ 6686 glob.h \ 6687 ia.h \ 6688 iaf.h \ 6689 inttypes.h \ 6690 langinfo.h \ 6691 limits.h \ 6692 locale.h \ 6693 login.h \ 6694 maillock.h \ 6695 ndir.h \ 6696 net/if_tun.h \ 6697 netdb.h \ 6698 netgroup.h \ 6699 pam/pam_appl.h \ 6700 paths.h \ 6701 poll.h \ 6702 pty.h \ 6703 readpassphrase.h \ 6704 rpc/types.h \ 6705 security/pam_appl.h \ 6706 sha2.h \ 6707 shadow.h \ 6708 stddef.h \ 6709 stdint.h \ 6710 string.h \ 6711 strings.h \ 6712 sys/audit.h \ 6713 sys/bitypes.h \ 6714 sys/bsdtty.h \ 6715 sys/capability.h \ 6716 sys/cdefs.h \ 6717 sys/dir.h \ 6718 sys/mman.h \ 6719 sys/ndir.h \ 6720 sys/poll.h \ 6721 sys/prctl.h \ 6722 sys/pstat.h \ 6723 sys/ptrace.h \ 6724 sys/select.h \ 6725 sys/stat.h \ 6726 sys/stream.h \ 6727 sys/stropts.h \ 6728 sys/strtio.h \ 6729 sys/statvfs.h \ 6730 sys/sysmacros.h \ 6731 sys/time.h \ 6732 sys/timers.h \ 6733 time.h \ 6734 tmpdir.h \ 6735 ttyent.h \ 6736 ucred.h \ 6737 unistd.h \ 6738 usersec.h \ 6739 util.h \ 6740 utime.h \ 6741 utmp.h \ 6742 utmpx.h \ 6743 vis.h \ 6744 wchar.h \ 6745 6746do : 6747 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6748ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6749if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6750 cat >>confdefs.h <<_ACEOF 6751#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6752_ACEOF 6753 6754fi 6755 6756done 6757 6758 6759# lastlog.h requires sys/time.h to be included first on Solaris 6760for ac_header in lastlog.h 6761do : 6762 ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" " 6763#ifdef HAVE_SYS_TIME_H 6764# include <sys/time.h> 6765#endif 6766 6767" 6768if test "x$ac_cv_header_lastlog_h" = xyes; then : 6769 cat >>confdefs.h <<_ACEOF 6770#define HAVE_LASTLOG_H 1 6771_ACEOF 6772 6773fi 6774 6775done 6776 6777 6778# sys/ptms.h requires sys/stream.h to be included first on Solaris 6779for ac_header in sys/ptms.h 6780do : 6781 ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" " 6782#ifdef HAVE_SYS_STREAM_H 6783# include <sys/stream.h> 6784#endif 6785 6786" 6787if test "x$ac_cv_header_sys_ptms_h" = xyes; then : 6788 cat >>confdefs.h <<_ACEOF 6789#define HAVE_SYS_PTMS_H 1 6790_ACEOF 6791 6792fi 6793 6794done 6795 6796 6797# login_cap.h requires sys/types.h on NetBSD 6798for ac_header in login_cap.h 6799do : 6800 ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" " 6801#include <sys/types.h> 6802 6803" 6804if test "x$ac_cv_header_login_cap_h" = xyes; then : 6805 cat >>confdefs.h <<_ACEOF 6806#define HAVE_LOGIN_CAP_H 1 6807_ACEOF 6808 6809fi 6810 6811done 6812 6813 6814# older BSDs need sys/param.h before sys/mount.h 6815for ac_header in sys/mount.h 6816do : 6817 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" " 6818#include <sys/param.h> 6819 6820" 6821if test "x$ac_cv_header_sys_mount_h" = xyes; then : 6822 cat >>confdefs.h <<_ACEOF 6823#define HAVE_SYS_MOUNT_H 1 6824_ACEOF 6825 6826fi 6827 6828done 6829 6830 6831# Android requires sys/socket.h to be included before sys/un.h 6832for ac_header in sys/un.h 6833do : 6834 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" " 6835#include <sys/types.h> 6836#include <sys/socket.h> 6837 6838" 6839if test "x$ac_cv_header_sys_un_h" = xyes; then : 6840 cat >>confdefs.h <<_ACEOF 6841#define HAVE_SYS_UN_H 1 6842_ACEOF 6843 6844fi 6845 6846done 6847 6848 6849# Messages for features tested for in target-specific section 6850SIA_MSG="no" 6851SPC_MSG="no" 6852SP_MSG="no" 6853SPP_MSG="no" 6854 6855# Support for Solaris/Illumos privileges (this test is used by both 6856# the --with-solaris-privs option and --with-sandbox=solaris). 6857SOLARIS_PRIVS="no" 6858 6859# Check for some target-specific stuff 6860case "$host" in 6861*-*-aix*) 6862 # Some versions of VAC won't allow macro redefinitions at 6863 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that 6864 # particularly with older versions of vac or xlc. 6865 # It also throws errors about null macro argments, but these are 6866 # not fatal. 6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5 6868$as_echo_n "checking if compiler allows macro redefinitions... " >&6; } 6869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6870/* end confdefs.h. */ 6871 6872#define testmacro foo 6873#define testmacro bar 6874int 6875main () 6876{ 6877 exit(0); 6878 ; 6879 return 0; 6880} 6881_ACEOF 6882if ac_fn_c_try_compile "$LINENO"; then : 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6884$as_echo "yes" >&6; } 6885else 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6887$as_echo "no" >&6; } 6888 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`" 6889 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`" 6890 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`" 6891 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`" 6892 6893 6894fi 6895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6896 6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5 6898$as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; } 6899 if (test -z "$blibpath"); then 6900 blibpath="/usr/lib:/lib" 6901 fi 6902 saved_LDFLAGS="$LDFLAGS" 6903 if test "$GCC" = "yes"; then 6904 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:" 6905 else 6906 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath," 6907 fi 6908 for tryflags in $flags ;do 6909 if (test -z "$blibflags"); then 6910 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" 6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6912/* end confdefs.h. */ 6913 6914int 6915main () 6916{ 6917 6918 ; 6919 return 0; 6920} 6921_ACEOF 6922if ac_fn_c_try_link "$LINENO"; then : 6923 blibflags=$tryflags 6924fi 6925rm -f core conftest.err conftest.$ac_objext \ 6926 conftest$ac_exeext conftest.$ac_ext 6927 fi 6928 done 6929 if (test -z "$blibflags"); then 6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6931$as_echo "not found" >&6; } 6932 as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5 6933 else 6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5 6935$as_echo "$blibflags" >&6; } 6936 fi 6937 LDFLAGS="$saved_LDFLAGS" 6938 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate" 6939if test "x$ac_cv_func_authenticate" = xyes; then : 6940 6941$as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h 6942 6943else 6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5 6945$as_echo_n "checking for authenticate in -ls... " >&6; } 6946if ${ac_cv_lib_s_authenticate+:} false; then : 6947 $as_echo_n "(cached) " >&6 6948else 6949 ac_check_lib_save_LIBS=$LIBS 6950LIBS="-ls $LIBS" 6951cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6952/* end confdefs.h. */ 6953 6954/* Override any GCC internal prototype to avoid an error. 6955 Use char because int might match the return type of a GCC 6956 builtin and then its argument prototype would still apply. */ 6957#ifdef __cplusplus 6958extern "C" 6959#endif 6960char authenticate (); 6961int 6962main () 6963{ 6964return authenticate (); 6965 ; 6966 return 0; 6967} 6968_ACEOF 6969if ac_fn_c_try_link "$LINENO"; then : 6970 ac_cv_lib_s_authenticate=yes 6971else 6972 ac_cv_lib_s_authenticate=no 6973fi 6974rm -f core conftest.err conftest.$ac_objext \ 6975 conftest$ac_exeext conftest.$ac_ext 6976LIBS=$ac_check_lib_save_LIBS 6977fi 6978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5 6979$as_echo "$ac_cv_lib_s_authenticate" >&6; } 6980if test "x$ac_cv_lib_s_authenticate" = xyes; then : 6981 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h 6982 6983 LIBS="$LIBS -ls" 6984 6985fi 6986 6987 6988fi 6989 6990 ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h> 6991" 6992if test "x$ac_cv_have_decl_authenticate" = xyes; then : 6993 ac_have_decl=1 6994else 6995 ac_have_decl=0 6996fi 6997 6998cat >>confdefs.h <<_ACEOF 6999#define HAVE_DECL_AUTHENTICATE $ac_have_decl 7000_ACEOF 7001ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h> 7002" 7003if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then : 7004 ac_have_decl=1 7005else 7006 ac_have_decl=0 7007fi 7008 7009cat >>confdefs.h <<_ACEOF 7010#define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl 7011_ACEOF 7012ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h> 7013" 7014if test "x$ac_cv_have_decl_loginsuccess" = xyes; then : 7015 ac_have_decl=1 7016else 7017 ac_have_decl=0 7018fi 7019 7020cat >>confdefs.h <<_ACEOF 7021#define HAVE_DECL_LOGINSUCCESS $ac_have_decl 7022_ACEOF 7023ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h> 7024" 7025if test "x$ac_cv_have_decl_passwdexpired" = xyes; then : 7026 ac_have_decl=1 7027else 7028 ac_have_decl=0 7029fi 7030 7031cat >>confdefs.h <<_ACEOF 7032#define HAVE_DECL_PASSWDEXPIRED $ac_have_decl 7033_ACEOF 7034ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h> 7035" 7036if test "x$ac_cv_have_decl_setauthdb" = xyes; then : 7037 ac_have_decl=1 7038else 7039 ac_have_decl=0 7040fi 7041 7042cat >>confdefs.h <<_ACEOF 7043#define HAVE_DECL_SETAUTHDB $ac_have_decl 7044_ACEOF 7045 7046 ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h> 7047 7048" 7049if test "x$ac_cv_have_decl_loginfailed" = xyes; then : 7050 ac_have_decl=1 7051else 7052 ac_have_decl=0 7053fi 7054 7055cat >>confdefs.h <<_ACEOF 7056#define HAVE_DECL_LOGINFAILED $ac_have_decl 7057_ACEOF 7058if test $ac_have_decl = 1; then : 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5 7060$as_echo_n "checking if loginfailed takes 4 arguments... " >&6; } 7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7062/* end confdefs.h. */ 7063 #include <usersec.h> 7064int 7065main () 7066{ 7067 (void)loginfailed("user","host","tty",0); 7068 ; 7069 return 0; 7070} 7071_ACEOF 7072if ac_fn_c_try_compile "$LINENO"; then : 7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7074$as_echo "yes" >&6; } 7075 7076$as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h 7077 7078else 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7080$as_echo "no" >&6; } 7081 7082fi 7083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7084fi 7085 7086 for ac_func in getgrset setauthdb 7087do : 7088 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7089ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7090if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7091 cat >>confdefs.h <<_ACEOF 7092#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7093_ACEOF 7094 7095fi 7096done 7097 7098 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h> 7099 #include <fcntl.h> 7100 7101" 7102if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then : 7103 7104$as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h 7105 7106fi 7107 7108 check_for_aix_broken_getaddrinfo=1 7109 7110$as_echo "#define BROKEN_REALPATH 1" >>confdefs.h 7111 7112 7113$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 7114 7115 7116$as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 7117 7118 7119$as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 7120 7121 7122$as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h 7123 7124 7125$as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h 7126 7127 7128$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h 7129 7130 7131$as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h 7132 7133 7134$as_echo "#define PTY_ZEROREAD 1" >>confdefs.h 7135 7136 7137$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h 7138 7139 ;; 7140*-*-android*) 7141 7142$as_echo "#define DISABLE_UTMP 1" >>confdefs.h 7143 7144 7145$as_echo "#define DISABLE_WTMP 1" >>confdefs.h 7146 7147 ;; 7148*-*-cygwin*) 7149 check_for_libcrypt_later=1 7150 LIBS="$LIBS /usr/lib/textreadmode.o" 7151 7152$as_echo "#define HAVE_CYGWIN 1" >>confdefs.h 7153 7154 7155$as_echo "#define USE_PIPES 1" >>confdefs.h 7156 7157 7158$as_echo "#define NO_UID_RESTORATION_TEST 1" >>confdefs.h 7159 7160 7161$as_echo "#define DISABLE_SHADOW 1" >>confdefs.h 7162 7163 7164$as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h 7165 7166 7167$as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h 7168 7169 7170$as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h 7171 7172 7173$as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h 7174 7175 # Cygwin defines optargs, optargs as declspec(dllimport) for historical 7176 # reasons which cause compile warnings, so we disable those warnings. 7177 { 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wno-attributes" >&5 7179$as_echo_n "checking if $CC supports compile flag -Wno-attributes... " >&6; } 7180 saved_CFLAGS="$CFLAGS" 7181 CFLAGS="$CFLAGS $WERROR -Wno-attributes" 7182 _define_flag="" 7183 test "x$_define_flag" = "x" && _define_flag="-Wno-attributes" 7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7185/* end confdefs.h. */ 7186 7187#include <stdlib.h> 7188#include <stdio.h> 7189int main(int argc, char **argv) { 7190 /* Some math to catch -ftrapv problems in the toolchain */ 7191 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 7192 float l = i * 2.1; 7193 double m = l / 0.5; 7194 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 7195 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 7196 exit(0); 7197} 7198 7199_ACEOF 7200if ac_fn_c_try_compile "$LINENO"; then : 7201 7202if `grep -i "unrecognized option" conftest.err >/dev/null` 7203then 7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7205$as_echo "no" >&6; } 7206 CFLAGS="$saved_CFLAGS" 7207else 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7209$as_echo "yes" >&6; } 7210 CFLAGS="$saved_CFLAGS $_define_flag" 7211fi 7212else 7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7214$as_echo "no" >&6; } 7215 CFLAGS="$saved_CFLAGS" 7216 7217fi 7218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7219} 7220 ;; 7221*-*-dgux*) 7222 7223$as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h 7224 7225 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 7226 7227 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 7228 7229 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 7230 7231 ;; 7232*-*-darwin*) 7233 use_pie=auto 7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5 7235$as_echo_n "checking if we have working getaddrinfo... " >&6; } 7236 if test "$cross_compiling" = yes; then : 7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5 7238$as_echo "assume it is working" >&6; } 7239else 7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7241/* end confdefs.h. */ 7242 #include <mach-o/dyld.h> 7243main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) 7244 exit(0); 7245 else 7246 exit(1); 7247} 7248 7249_ACEOF 7250if ac_fn_c_try_run "$LINENO"; then : 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5 7252$as_echo "working" >&6; } 7253else 7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5 7255$as_echo "buggy" >&6; } 7256 7257$as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h 7258 7259 7260fi 7261rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7262 conftest.$ac_objext conftest.beam conftest.$ac_ext 7263fi 7264 7265 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 7266 7267 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 7268 7269 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 7270 7271 7272$as_echo "#define BROKEN_GLOB 1" >>confdefs.h 7273 7274 7275cat >>confdefs.h <<_ACEOF 7276#define BIND_8_COMPAT 1 7277_ACEOF 7278 7279 7280$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h 7281 7282 7283$as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h 7284 7285 7286$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h 7287 7288 7289 ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default" 7290if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then : 7291 7292else 7293 7294$as_echo "#define AU_IPv4 0" >>confdefs.h 7295 7296 #include <bsm/audit.h> 7297 7298$as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h 7299 7300 7301fi 7302 7303 7304$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h 7305 7306 for ac_func in sandbox_init 7307do : 7308 ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init" 7309if test "x$ac_cv_func_sandbox_init" = xyes; then : 7310 cat >>confdefs.h <<_ACEOF 7311#define HAVE_SANDBOX_INIT 1 7312_ACEOF 7313 7314fi 7315done 7316 7317 for ac_header in sandbox.h 7318do : 7319 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default" 7320if test "x$ac_cv_header_sandbox_h" = xyes; then : 7321 cat >>confdefs.h <<_ACEOF 7322#define HAVE_SANDBOX_H 1 7323_ACEOF 7324 7325fi 7326 7327done 7328 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox_apply in -lsandbox" >&5 7330$as_echo_n "checking for sandbox_apply in -lsandbox... " >&6; } 7331if ${ac_cv_lib_sandbox_sandbox_apply+:} false; then : 7332 $as_echo_n "(cached) " >&6 7333else 7334 ac_check_lib_save_LIBS=$LIBS 7335LIBS="-lsandbox $LIBS" 7336cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7337/* end confdefs.h. */ 7338 7339/* Override any GCC internal prototype to avoid an error. 7340 Use char because int might match the return type of a GCC 7341 builtin and then its argument prototype would still apply. */ 7342#ifdef __cplusplus 7343extern "C" 7344#endif 7345char sandbox_apply (); 7346int 7347main () 7348{ 7349return sandbox_apply (); 7350 ; 7351 return 0; 7352} 7353_ACEOF 7354if ac_fn_c_try_link "$LINENO"; then : 7355 ac_cv_lib_sandbox_sandbox_apply=yes 7356else 7357 ac_cv_lib_sandbox_sandbox_apply=no 7358fi 7359rm -f core conftest.err conftest.$ac_objext \ 7360 conftest$ac_exeext conftest.$ac_ext 7361LIBS=$ac_check_lib_save_LIBS 7362fi 7363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sandbox_sandbox_apply" >&5 7364$as_echo "$ac_cv_lib_sandbox_sandbox_apply" >&6; } 7365if test "x$ac_cv_lib_sandbox_sandbox_apply" = xyes; then : 7366 7367 SSHDLIBS="$SSHDLIBS -lsandbox" 7368 7369fi 7370 7371 ;; 7372*-*-dragonfly*) 7373 SSHDLIBS="$SSHDLIBS -lcrypt" 7374 TEST_MALLOC_OPTIONS="AFGJPRX" 7375 ;; 7376*-*-haiku*) 7377 LIBS="$LIBS -lbsd " 7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5 7379$as_echo_n "checking for socket in -lnetwork... " >&6; } 7380if ${ac_cv_lib_network_socket+:} false; then : 7381 $as_echo_n "(cached) " >&6 7382else 7383 ac_check_lib_save_LIBS=$LIBS 7384LIBS="-lnetwork $LIBS" 7385cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7386/* end confdefs.h. */ 7387 7388/* Override any GCC internal prototype to avoid an error. 7389 Use char because int might match the return type of a GCC 7390 builtin and then its argument prototype would still apply. */ 7391#ifdef __cplusplus 7392extern "C" 7393#endif 7394char socket (); 7395int 7396main () 7397{ 7398return socket (); 7399 ; 7400 return 0; 7401} 7402_ACEOF 7403if ac_fn_c_try_link "$LINENO"; then : 7404 ac_cv_lib_network_socket=yes 7405else 7406 ac_cv_lib_network_socket=no 7407fi 7408rm -f core conftest.err conftest.$ac_objext \ 7409 conftest$ac_exeext conftest.$ac_ext 7410LIBS=$ac_check_lib_save_LIBS 7411fi 7412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5 7413$as_echo "$ac_cv_lib_network_socket" >&6; } 7414if test "x$ac_cv_lib_network_socket" = xyes; then : 7415 cat >>confdefs.h <<_ACEOF 7416#define HAVE_LIBNETWORK 1 7417_ACEOF 7418 7419 LIBS="-lnetwork $LIBS" 7420 7421fi 7422 7423 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h 7424 7425 MANTYPE=man 7426 ;; 7427*-*-hpux*) 7428 # first we define all of the options common to all HP-UX releases 7429 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" 7430 IPADDR_IN_DISPLAY=yes 7431 $as_echo "#define USE_PIPES 1" >>confdefs.h 7432 7433 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h 7434 7435 7436$as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h 7437 7438 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h 7439 7440 7441$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h 7442 7443 maildir="/var/mail" 7444 LIBS="$LIBS -lsec" 7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5 7446$as_echo_n "checking for t_error in -lxnet... " >&6; } 7447if ${ac_cv_lib_xnet_t_error+:} false; then : 7448 $as_echo_n "(cached) " >&6 7449else 7450 ac_check_lib_save_LIBS=$LIBS 7451LIBS="-lxnet $LIBS" 7452cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7453/* end confdefs.h. */ 7454 7455/* Override any GCC internal prototype to avoid an error. 7456 Use char because int might match the return type of a GCC 7457 builtin and then its argument prototype would still apply. */ 7458#ifdef __cplusplus 7459extern "C" 7460#endif 7461char t_error (); 7462int 7463main () 7464{ 7465return t_error (); 7466 ; 7467 return 0; 7468} 7469_ACEOF 7470if ac_fn_c_try_link "$LINENO"; then : 7471 ac_cv_lib_xnet_t_error=yes 7472else 7473 ac_cv_lib_xnet_t_error=no 7474fi 7475rm -f core conftest.err conftest.$ac_objext \ 7476 conftest$ac_exeext conftest.$ac_ext 7477LIBS=$ac_check_lib_save_LIBS 7478fi 7479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5 7480$as_echo "$ac_cv_lib_xnet_t_error" >&6; } 7481if test "x$ac_cv_lib_xnet_t_error" = xyes; then : 7482 cat >>confdefs.h <<_ACEOF 7483#define HAVE_LIBXNET 1 7484_ACEOF 7485 7486 LIBS="-lxnet $LIBS" 7487 7488else 7489 as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5 7490fi 7491 7492 7493 # next, we define all of the options specific to major releases 7494 case "$host" in 7495 *-*-hpux10*) 7496 if test -z "$GCC"; then 7497 CFLAGS="$CFLAGS -Ae" 7498 fi 7499 ;; 7500 *-*-hpux11*) 7501 7502$as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h 7503 7504 7505$as_echo "#define DISABLE_UTMP 1" >>confdefs.h 7506 7507 7508$as_echo "#define USE_BTMP 1" >>confdefs.h 7509 7510 check_for_hpux_broken_getaddrinfo=1 7511 check_for_conflicting_getspnam=1 7512 ;; 7513 esac 7514 7515 # lastly, we define options specific to minor releases 7516 case "$host" in 7517 *-*-hpux10.26) 7518 7519$as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h 7520 7521 disable_ptmx_check=yes 7522 LIBS="$LIBS -lsecpw" 7523 ;; 7524 esac 7525 ;; 7526*-*-irix5*) 7527 PATH="$PATH:/usr/etc" 7528 7529$as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h 7530 7531 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 7532 7533 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 7534 7535 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 7536 7537 7538$as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h 7539 7540 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h 7541 7542 ;; 7543*-*-irix6*) 7544 PATH="$PATH:/usr/etc" 7545 7546$as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h 7547 7548 7549$as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h 7550 7551 7552$as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h 7553 7554 ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob" 7555if test "x$ac_cv_func_jlimit_startjob" = xyes; then : 7556 7557$as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h 7558 7559fi 7560 7561 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h 7562 7563 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 7564 7565 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 7566 7567 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 7568 7569 7570$as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h 7571 7572 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h 7573 7574 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h 7575 7576 ;; 7577*-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) 7578 check_for_libcrypt_later=1 7579 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h 7580 7581 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h 7582 7583 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h 7584 7585 7586$as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h 7587 7588 7589$as_echo "#define USE_BTMP 1" >>confdefs.h 7590 7591 ;; 7592*-*-linux*) 7593 no_dev_ptmx=1 7594 use_pie=auto 7595 check_for_libcrypt_later=1 7596 check_for_openpty_ctty_bug=1 7597 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE" 7598 7599$as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h 7600 7601 7602$as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h 7603 7604 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h 7605 7606 7607$as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h 7608 7609 7610$as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h 7611 7612 $as_echo "#define USE_BTMP 1" >>confdefs.h 7613 7614 7615$as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h 7616 7617 inet6_default_4in6=yes 7618 case `uname -r` in 7619 1.*|2.0.*) 7620 7621$as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h 7622 7623 ;; 7624 esac 7625 # tun(4) forwarding compat code 7626 for ac_header in linux/if_tun.h 7627do : 7628 ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default" 7629if test "x$ac_cv_header_linux_if_tun_h" = xyes; then : 7630 cat >>confdefs.h <<_ACEOF 7631#define HAVE_LINUX_IF_TUN_H 1 7632_ACEOF 7633 7634fi 7635 7636done 7637 7638 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then 7639 7640$as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h 7641 7642 7643$as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h 7644 7645 7646$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h 7647 7648 fi 7649 for ac_header in linux/seccomp.h linux/filter.h linux/audit.h 7650do : 7651 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7652ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <linux/types.h> 7653" 7654if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7655 cat >>confdefs.h <<_ACEOF 7656#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7657_ACEOF 7658 7659fi 7660 7661done 7662 7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp architecture" >&5 7664$as_echo_n "checking for seccomp architecture... " >&6; } 7665 seccomp_audit_arch= 7666 case "$host" in 7667 x86_64-*) 7668 seccomp_audit_arch=AUDIT_ARCH_X86_64 7669 ;; 7670 i*86-*) 7671 seccomp_audit_arch=AUDIT_ARCH_I386 7672 ;; 7673 arm*-*) 7674 seccomp_audit_arch=AUDIT_ARCH_ARM 7675 ;; 7676 aarch64*-*) 7677 seccomp_audit_arch=AUDIT_ARCH_AARCH64 7678 ;; 7679 s390x-*) 7680 seccomp_audit_arch=AUDIT_ARCH_S390X 7681 ;; 7682 s390-*) 7683 seccomp_audit_arch=AUDIT_ARCH_S390 7684 ;; 7685 powerpc64-*) 7686 seccomp_audit_arch=AUDIT_ARCH_PPC64 7687 ;; 7688 powerpc64le-*) 7689 seccomp_audit_arch=AUDIT_ARCH_PPC64LE 7690 ;; 7691 mips-*) 7692 seccomp_audit_arch=AUDIT_ARCH_MIPS 7693 ;; 7694 mipsel-*) 7695 seccomp_audit_arch=AUDIT_ARCH_MIPSEL 7696 ;; 7697 mips64-*) 7698 seccomp_audit_arch=AUDIT_ARCH_MIPS64 7699 ;; 7700 mips64el-*) 7701 seccomp_audit_arch=AUDIT_ARCH_MIPSEL64 7702 ;; 7703 esac 7704 if test "x$seccomp_audit_arch" != "x" ; then 7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5 7706$as_echo "\"$seccomp_audit_arch\"" >&6; } 7707 7708cat >>confdefs.h <<_ACEOF 7709#define SECCOMP_AUDIT_ARCH $seccomp_audit_arch 7710_ACEOF 7711 7712 else 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: architecture not supported" >&5 7714$as_echo "architecture not supported" >&6; } 7715 fi 7716 ;; 7717mips-sony-bsd|mips-sony-newsos4) 7718 7719$as_echo "#define NEED_SETPGRP 1" >>confdefs.h 7720 7721 SONY=1 7722 ;; 7723*-*-netbsd*) 7724 check_for_libcrypt_before=1 7725 if test "x$withval" != "xno" ; then 7726 need_dash_r=1 7727 fi 7728 CPPFLAGS="$CPPFLAGS -D_OPENBSD_SOURCE" 7729 7730$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h 7731 7732 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default" 7733if test "x$ac_cv_header_net_if_tap_h" = xyes; then : 7734 7735else 7736 7737$as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h 7738 7739fi 7740 7741 7742 7743$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h 7744 7745 TEST_MALLOC_OPTIONS="AJRX" 7746 7747$as_echo "#define BROKEN_READ_COMPARISON 1" >>confdefs.h 7748 7749 ;; 7750*-*-freebsd*) 7751 check_for_libcrypt_later=1 7752 7753$as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h 7754 7755 7756$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h 7757 7758 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default" 7759if test "x$ac_cv_header_net_if_tap_h" = xyes; then : 7760 7761else 7762 7763$as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h 7764 7765fi 7766 7767 7768 7769$as_echo "#define BROKEN_GLOB 1" >>confdefs.h 7770 7771 TEST_MALLOC_OPTIONS="AJRX" 7772 # Preauth crypto occasionally uses file descriptors for crypto offload 7773 # and will crash if they cannot be opened. 7774 7775$as_echo "#define SANDBOX_SKIP_RLIMIT_NOFILE 1" >>confdefs.h 7776 7777 ;; 7778*-*-bsdi*) 7779 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 7780 7781 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 7782 7783 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 7784 7785 ;; 7786*-next-*) 7787 conf_lastlog_location="/usr/adm/lastlog" 7788 conf_utmp_location=/etc/utmp 7789 conf_wtmp_location=/usr/adm/wtmp 7790 maildir=/usr/spool/mail 7791 7792$as_echo "#define HAVE_NEXT 1" >>confdefs.h 7793 7794 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h 7795 7796 $as_echo "#define USE_PIPES 1" >>confdefs.h 7797 7798 7799$as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h 7800 7801 ;; 7802*-*-openbsd*) 7803 use_pie=auto 7804 7805$as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h 7806 7807 7808$as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h 7809 7810 7811$as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h 7812 7813 7814$as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h 7815 7816 TEST_MALLOC_OPTIONS="AFGJPRX" 7817 ;; 7818*-*-solaris*) 7819 if test "x$withval" != "xno" ; then 7820 need_dash_r=1 7821 fi 7822 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h 7823 7824 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h 7825 7826 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h 7827 7828 7829$as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h 7830 7831 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h 7832 7833 # Pushing STREAMS modules will cause sshd to acquire a controlling tty. 7834 7835$as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h 7836 7837 7838$as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h 7839 7840 7841$as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h 7842 7843 external_path_file=/etc/default/login 7844 # hardwire lastlog location (can't detect it on some versions) 7845 conf_lastlog_location="/var/adm/lastlog" 7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5 7847$as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; } 7848 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` 7849 if test "$sol2ver" -ge 8; then 7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7851$as_echo "yes" >&6; } 7852 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h 7853 7854 7855$as_echo "#define DISABLE_WTMP 1" >>confdefs.h 7856 7857 else 7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7859$as_echo "no" >&6; } 7860 fi 7861 for ac_func in setpflags 7862do : 7863 ac_fn_c_check_func "$LINENO" "setpflags" "ac_cv_func_setpflags" 7864if test "x$ac_cv_func_setpflags" = xyes; then : 7865 cat >>confdefs.h <<_ACEOF 7866#define HAVE_SETPFLAGS 1 7867_ACEOF 7868 7869fi 7870done 7871 7872 for ac_func in setppriv 7873do : 7874 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv" 7875if test "x$ac_cv_func_setppriv" = xyes; then : 7876 cat >>confdefs.h <<_ACEOF 7877#define HAVE_SETPPRIV 1 7878_ACEOF 7879 7880fi 7881done 7882 7883 for ac_func in priv_basicset 7884do : 7885 ac_fn_c_check_func "$LINENO" "priv_basicset" "ac_cv_func_priv_basicset" 7886if test "x$ac_cv_func_priv_basicset" = xyes; then : 7887 cat >>confdefs.h <<_ACEOF 7888#define HAVE_PRIV_BASICSET 1 7889_ACEOF 7890 7891fi 7892done 7893 7894 for ac_header in priv.h 7895do : 7896 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default" 7897if test "x$ac_cv_header_priv_h" = xyes; then : 7898 cat >>confdefs.h <<_ACEOF 7899#define HAVE_PRIV_H 1 7900_ACEOF 7901 7902fi 7903 7904done 7905 7906 7907# Check whether --with-solaris-contracts was given. 7908if test "${with_solaris_contracts+set}" = set; then : 7909 withval=$with_solaris_contracts; 7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5 7911$as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; } 7912if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then : 7913 $as_echo_n "(cached) " >&6 7914else 7915 ac_check_lib_save_LIBS=$LIBS 7916LIBS="-lcontract $LIBS" 7917cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7918/* end confdefs.h. */ 7919 7920/* Override any GCC internal prototype to avoid an error. 7921 Use char because int might match the return type of a GCC 7922 builtin and then its argument prototype would still apply. */ 7923#ifdef __cplusplus 7924extern "C" 7925#endif 7926char ct_tmpl_activate (); 7927int 7928main () 7929{ 7930return ct_tmpl_activate (); 7931 ; 7932 return 0; 7933} 7934_ACEOF 7935if ac_fn_c_try_link "$LINENO"; then : 7936 ac_cv_lib_contract_ct_tmpl_activate=yes 7937else 7938 ac_cv_lib_contract_ct_tmpl_activate=no 7939fi 7940rm -f core conftest.err conftest.$ac_objext \ 7941 conftest$ac_exeext conftest.$ac_ext 7942LIBS=$ac_check_lib_save_LIBS 7943fi 7944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5 7945$as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; } 7946if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then : 7947 7948$as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h 7949 7950 LIBS="$LIBS -lcontract" 7951 SPC_MSG="yes" 7952fi 7953 7954 7955fi 7956 7957 7958# Check whether --with-solaris-projects was given. 7959if test "${with_solaris_projects+set}" = set; then : 7960 withval=$with_solaris_projects; 7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5 7962$as_echo_n "checking for setproject in -lproject... " >&6; } 7963if ${ac_cv_lib_project_setproject+:} false; then : 7964 $as_echo_n "(cached) " >&6 7965else 7966 ac_check_lib_save_LIBS=$LIBS 7967LIBS="-lproject $LIBS" 7968cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7969/* end confdefs.h. */ 7970 7971/* Override any GCC internal prototype to avoid an error. 7972 Use char because int might match the return type of a GCC 7973 builtin and then its argument prototype would still apply. */ 7974#ifdef __cplusplus 7975extern "C" 7976#endif 7977char setproject (); 7978int 7979main () 7980{ 7981return setproject (); 7982 ; 7983 return 0; 7984} 7985_ACEOF 7986if ac_fn_c_try_link "$LINENO"; then : 7987 ac_cv_lib_project_setproject=yes 7988else 7989 ac_cv_lib_project_setproject=no 7990fi 7991rm -f core conftest.err conftest.$ac_objext \ 7992 conftest$ac_exeext conftest.$ac_ext 7993LIBS=$ac_check_lib_save_LIBS 7994fi 7995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5 7996$as_echo "$ac_cv_lib_project_setproject" >&6; } 7997if test "x$ac_cv_lib_project_setproject" = xyes; then : 7998 7999$as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h 8000 8001 LIBS="$LIBS -lproject" 8002 SP_MSG="yes" 8003fi 8004 8005 8006fi 8007 8008 8009# Check whether --with-solaris-privs was given. 8010if test "${with_solaris_privs+set}" = set; then : 8011 withval=$with_solaris_privs; 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris/Illumos privilege support" >&5 8013$as_echo_n "checking for Solaris/Illumos privilege support... " >&6; } 8014 if test "x$ac_cv_func_setppriv" = "xyes" -a \ 8015 "x$ac_cv_header_priv_h" = "xyes" ; then 8016 SOLARIS_PRIVS=yes 8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 8018$as_echo "found" >&6; } 8019 8020$as_echo "#define NO_UID_RESTORATION_TEST 1" >>confdefs.h 8021 8022 8023$as_echo "#define USE_SOLARIS_PRIVS 1" >>confdefs.h 8024 8025 SPP_MSG="yes" 8026 else 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8028$as_echo "not found" >&6; } 8029 as_fn_error $? "*** must have support for Solaris privileges to use --with-solaris-privs" "$LINENO" 5 8030 fi 8031 8032fi 8033 8034 TEST_SHELL=$SHELL # let configure find us a capable shell 8035 ;; 8036*-*-sunos4*) 8037 CPPFLAGS="$CPPFLAGS -DSUNOS4" 8038 for ac_func in getpwanam 8039do : 8040 ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam" 8041if test "x$ac_cv_func_getpwanam" = xyes; then : 8042 cat >>confdefs.h <<_ACEOF 8043#define HAVE_GETPWANAM 1 8044_ACEOF 8045 8046fi 8047done 8048 8049 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h 8050 8051 conf_utmp_location=/etc/utmp 8052 conf_wtmp_location=/var/adm/wtmp 8053 conf_lastlog_location=/var/adm/lastlog 8054 $as_echo "#define USE_PIPES 1" >>confdefs.h 8055 8056 ;; 8057*-ncr-sysv*) 8058 LIBS="$LIBS -lc89" 8059 $as_echo "#define USE_PIPES 1" >>confdefs.h 8060 8061 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h 8062 8063 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 8064 8065 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 8066 8067 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 8068 8069 ;; 8070*-sni-sysv*) 8071 # /usr/ucblib MUST NOT be searched on ReliantUNIX 8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 8073$as_echo_n "checking for dlsym in -ldl... " >&6; } 8074if ${ac_cv_lib_dl_dlsym+:} false; then : 8075 $as_echo_n "(cached) " >&6 8076else 8077 ac_check_lib_save_LIBS=$LIBS 8078LIBS="-ldl $LIBS" 8079cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8080/* end confdefs.h. */ 8081 8082/* Override any GCC internal prototype to avoid an error. 8083 Use char because int might match the return type of a GCC 8084 builtin and then its argument prototype would still apply. */ 8085#ifdef __cplusplus 8086extern "C" 8087#endif 8088char dlsym (); 8089int 8090main () 8091{ 8092return dlsym (); 8093 ; 8094 return 0; 8095} 8096_ACEOF 8097if ac_fn_c_try_link "$LINENO"; then : 8098 ac_cv_lib_dl_dlsym=yes 8099else 8100 ac_cv_lib_dl_dlsym=no 8101fi 8102rm -f core conftest.err conftest.$ac_objext \ 8103 conftest$ac_exeext conftest.$ac_ext 8104LIBS=$ac_check_lib_save_LIBS 8105fi 8106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 8107$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 8108if test "x$ac_cv_lib_dl_dlsym" = xyes; then : 8109 cat >>confdefs.h <<_ACEOF 8110#define HAVE_LIBDL 1 8111_ACEOF 8112 8113 LIBS="-ldl $LIBS" 8114 8115fi 8116 8117 # -lresolv needs to be at the end of LIBS or DNS lookups break 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5 8119$as_echo_n "checking for res_query in -lresolv... " >&6; } 8120if ${ac_cv_lib_resolv_res_query+:} false; then : 8121 $as_echo_n "(cached) " >&6 8122else 8123 ac_check_lib_save_LIBS=$LIBS 8124LIBS="-lresolv $LIBS" 8125cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8126/* end confdefs.h. */ 8127 8128/* Override any GCC internal prototype to avoid an error. 8129 Use char because int might match the return type of a GCC 8130 builtin and then its argument prototype would still apply. */ 8131#ifdef __cplusplus 8132extern "C" 8133#endif 8134char res_query (); 8135int 8136main () 8137{ 8138return res_query (); 8139 ; 8140 return 0; 8141} 8142_ACEOF 8143if ac_fn_c_try_link "$LINENO"; then : 8144 ac_cv_lib_resolv_res_query=yes 8145else 8146 ac_cv_lib_resolv_res_query=no 8147fi 8148rm -f core conftest.err conftest.$ac_objext \ 8149 conftest$ac_exeext conftest.$ac_ext 8150LIBS=$ac_check_lib_save_LIBS 8151fi 8152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5 8153$as_echo "$ac_cv_lib_resolv_res_query" >&6; } 8154if test "x$ac_cv_lib_resolv_res_query" = xyes; then : 8155 LIBS="$LIBS -lresolv" 8156fi 8157 8158 IPADDR_IN_DISPLAY=yes 8159 $as_echo "#define USE_PIPES 1" >>confdefs.h 8160 8161 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h 8162 8163 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 8164 8165 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 8166 8167 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 8168 8169 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h 8170 8171 external_path_file=/etc/default/login 8172 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX 8173 # Attention: always take care to bind libsocket and libnsl before libc, 8174 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog 8175 ;; 8176# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. 8177*-*-sysv4.2*) 8178 $as_echo "#define USE_PIPES 1" >>confdefs.h 8179 8180 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 8181 8182 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 8183 8184 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 8185 8186 8187$as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h 8188 8189 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h 8190 8191 TEST_SHELL=$SHELL # let configure find us a capable shell 8192 ;; 8193# UnixWare 7.x, OpenUNIX 8 8194*-*-sysv5*) 8195 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf" 8196 8197$as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h 8198 8199 $as_echo "#define USE_PIPES 1" >>confdefs.h 8200 8201 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 8202 8203 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h 8204 8205 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 8206 8207 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 8208 8209 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h 8210 8211 TEST_SHELL=$SHELL # let configure find us a capable shell 8212 case "$host" in 8213 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x 8214 maildir=/var/spool/mail 8215 8216$as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h 8217 8218 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h 8219 8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5 8221$as_echo_n "checking for getluid in -lprot... " >&6; } 8222if ${ac_cv_lib_prot_getluid+:} false; then : 8223 $as_echo_n "(cached) " >&6 8224else 8225 ac_check_lib_save_LIBS=$LIBS 8226LIBS="-lprot $LIBS" 8227cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8228/* end confdefs.h. */ 8229 8230/* Override any GCC internal prototype to avoid an error. 8231 Use char because int might match the return type of a GCC 8232 builtin and then its argument prototype would still apply. */ 8233#ifdef __cplusplus 8234extern "C" 8235#endif 8236char getluid (); 8237int 8238main () 8239{ 8240return getluid (); 8241 ; 8242 return 0; 8243} 8244_ACEOF 8245if ac_fn_c_try_link "$LINENO"; then : 8246 ac_cv_lib_prot_getluid=yes 8247else 8248 ac_cv_lib_prot_getluid=no 8249fi 8250rm -f core conftest.err conftest.$ac_objext \ 8251 conftest$ac_exeext conftest.$ac_ext 8252LIBS=$ac_check_lib_save_LIBS 8253fi 8254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5 8255$as_echo "$ac_cv_lib_prot_getluid" >&6; } 8256if test "x$ac_cv_lib_prot_getluid" = xyes; then : 8257 LIBS="$LIBS -lprot" 8258 for ac_func in getluid setluid 8259do : 8260 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8261ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8262if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8263 cat >>confdefs.h <<_ACEOF 8264#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8265_ACEOF 8266 8267fi 8268done 8269 8270 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h 8271 8272 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h 8273 8274 8275fi 8276 8277 ;; 8278 *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h 8279 8280 check_for_libcrypt_later=1 8281 ;; 8282 esac 8283 ;; 8284*-*-sysv*) 8285 ;; 8286# SCO UNIX and OEM versions of SCO UNIX 8287*-*-sco3.2v4*) 8288 as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5 8289 ;; 8290# SCO OpenServer 5.x 8291*-*-sco3.2v5*) 8292 if test -z "$GCC"; then 8293 CFLAGS="$CFLAGS -belf" 8294 fi 8295 LIBS="$LIBS -lprot -lx -ltinfo -lm" 8296 no_dev_ptmx=1 8297 $as_echo "#define USE_PIPES 1" >>confdefs.h 8298 8299 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h 8300 8301 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h 8302 8303 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h 8304 8305 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 8306 8307 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h 8308 8309 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 8310 8311 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 8312 8313 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h 8314 8315 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h 8316 8317 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h 8318 8319 for ac_func in getluid setluid 8320do : 8321 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8322ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8323if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8324 cat >>confdefs.h <<_ACEOF 8325#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8326_ACEOF 8327 8328fi 8329done 8330 8331 MANTYPE=man 8332 TEST_SHELL=$SHELL # let configure find us a capable shell 8333 SKIP_DISABLE_LASTLOG_DEFINE=yes 8334 ;; 8335*-*-unicosmk*) 8336 8337$as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h 8338 8339 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 8340 8341 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 8342 8343 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 8344 8345 $as_echo "#define USE_PIPES 1" >>confdefs.h 8346 8347 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h 8348 8349 LDFLAGS="$LDFLAGS" 8350 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" 8351 MANTYPE=cat 8352 ;; 8353*-*-unicosmp*) 8354 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 8355 8356 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 8357 8358 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 8359 8360 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h 8361 8362 $as_echo "#define USE_PIPES 1" >>confdefs.h 8363 8364 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h 8365 8366 LDFLAGS="$LDFLAGS" 8367 LIBS="$LIBS -lgen -lacid -ldb" 8368 MANTYPE=cat 8369 ;; 8370*-*-unicos*) 8371 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 8372 8373 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 8374 8375 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 8376 8377 $as_echo "#define USE_PIPES 1" >>confdefs.h 8378 8379 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h 8380 8381 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h 8382 8383 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" 8384 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" 8385 MANTYPE=cat 8386 ;; 8387*-dec-osf*) 8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5 8389$as_echo_n "checking for Digital Unix SIA... " >&6; } 8390 no_osfsia="" 8391 8392# Check whether --with-osfsia was given. 8393if test "${with_osfsia+set}" = set; then : 8394 withval=$with_osfsia; 8395 if test "x$withval" = "xno" ; then 8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8397$as_echo "disabled" >&6; } 8398 no_osfsia=1 8399 fi 8400 8401fi 8402 8403 if test -z "$no_osfsia" ; then 8404 if test -f /etc/sia/matrix.conf; then 8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8406$as_echo "yes" >&6; } 8407 8408$as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h 8409 8410 8411$as_echo "#define DISABLE_LOGIN 1" >>confdefs.h 8412 8413 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h 8414 8415 LIBS="$LIBS -lsecurity -ldb -lm -laud" 8416 SIA_MSG="yes" 8417 else 8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8419$as_echo "no" >&6; } 8420 8421$as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h 8422 8423 fi 8424 fi 8425 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h 8426 8427 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 8428 8429 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 8430 8431 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 8432 8433 8434$as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h 8435 8436 ;; 8437 8438*-*-nto-qnx*) 8439 $as_echo "#define USE_PIPES 1" >>confdefs.h 8440 8441 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h 8442 8443 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h 8444 8445 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h 8446 8447 8448$as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h 8449 8450 enable_etc_default_login=no # has incompatible /etc/default/login 8451 case "$host" in 8452 *-*-nto-qnx6*) 8453 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h 8454 8455 ;; 8456 esac 8457 ;; 8458 8459*-*-ultrix*) 8460 8461$as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h 8462 8463 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h 8464 8465 8466$as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h 8467 8468 ;; 8469 8470*-*-lynxos) 8471 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" 8472 8473$as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h 8474 8475 ;; 8476esac 8477 8478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5 8479$as_echo_n "checking compiler and flags for sanity... " >&6; } 8480if test "$cross_compiling" = yes; then : 8481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5 8482$as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} 8483 8484else 8485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8486/* end confdefs.h. */ 8487 #include <stdio.h> 8488int 8489main () 8490{ 8491 exit(0); 8492 ; 8493 return 0; 8494} 8495_ACEOF 8496if ac_fn_c_try_run "$LINENO"; then : 8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8498$as_echo "yes" >&6; } 8499else 8500 8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8502$as_echo "no" >&6; } 8503 as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5 8504 8505fi 8506rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8507 conftest.$ac_objext conftest.beam conftest.$ac_ext 8508fi 8509 8510 8511# Checks for libraries. 8512ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" 8513if test "x$ac_cv_func_setsockopt" = xyes; then : 8514 8515else 8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5 8517$as_echo_n "checking for setsockopt in -lsocket... " >&6; } 8518if ${ac_cv_lib_socket_setsockopt+:} false; then : 8519 $as_echo_n "(cached) " >&6 8520else 8521 ac_check_lib_save_LIBS=$LIBS 8522LIBS="-lsocket $LIBS" 8523cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8524/* end confdefs.h. */ 8525 8526/* Override any GCC internal prototype to avoid an error. 8527 Use char because int might match the return type of a GCC 8528 builtin and then its argument prototype would still apply. */ 8529#ifdef __cplusplus 8530extern "C" 8531#endif 8532char setsockopt (); 8533int 8534main () 8535{ 8536return setsockopt (); 8537 ; 8538 return 0; 8539} 8540_ACEOF 8541if ac_fn_c_try_link "$LINENO"; then : 8542 ac_cv_lib_socket_setsockopt=yes 8543else 8544 ac_cv_lib_socket_setsockopt=no 8545fi 8546rm -f core conftest.err conftest.$ac_objext \ 8547 conftest$ac_exeext conftest.$ac_ext 8548LIBS=$ac_check_lib_save_LIBS 8549fi 8550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5 8551$as_echo "$ac_cv_lib_socket_setsockopt" >&6; } 8552if test "x$ac_cv_lib_socket_setsockopt" = xyes; then : 8553 cat >>confdefs.h <<_ACEOF 8554#define HAVE_LIBSOCKET 1 8555_ACEOF 8556 8557 LIBS="-lsocket $LIBS" 8558 8559fi 8560 8561fi 8562 8563 8564for ac_func in dirname 8565do : 8566 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname" 8567if test "x$ac_cv_func_dirname" = xyes; then : 8568 cat >>confdefs.h <<_ACEOF 8569#define HAVE_DIRNAME 1 8570_ACEOF 8571 for ac_header in libgen.h 8572do : 8573 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" 8574if test "x$ac_cv_header_libgen_h" = xyes; then : 8575 cat >>confdefs.h <<_ACEOF 8576#define HAVE_LIBGEN_H 1 8577_ACEOF 8578 8579fi 8580 8581done 8582 8583else 8584 8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5 8586$as_echo_n "checking for dirname in -lgen... " >&6; } 8587if ${ac_cv_lib_gen_dirname+:} false; then : 8588 $as_echo_n "(cached) " >&6 8589else 8590 ac_check_lib_save_LIBS=$LIBS 8591LIBS="-lgen $LIBS" 8592cat confdefs.h - <<_ACEOF >conftest.$ac_ext 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 dirname (); 8602int 8603main () 8604{ 8605return dirname (); 8606 ; 8607 return 0; 8608} 8609_ACEOF 8610if ac_fn_c_try_link "$LINENO"; then : 8611 ac_cv_lib_gen_dirname=yes 8612else 8613 ac_cv_lib_gen_dirname=no 8614fi 8615rm -f core conftest.err conftest.$ac_objext \ 8616 conftest$ac_exeext conftest.$ac_ext 8617LIBS=$ac_check_lib_save_LIBS 8618fi 8619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5 8620$as_echo "$ac_cv_lib_gen_dirname" >&6; } 8621if test "x$ac_cv_lib_gen_dirname" = xyes; then : 8622 8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5 8624$as_echo_n "checking for broken dirname... " >&6; } 8625if ${ac_cv_have_broken_dirname+:} false; then : 8626 $as_echo_n "(cached) " >&6 8627else 8628 8629 save_LIBS="$LIBS" 8630 LIBS="$LIBS -lgen" 8631 if test "$cross_compiling" = yes; then : 8632 ac_cv_have_broken_dirname="no" 8633else 8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8635/* end confdefs.h. */ 8636 8637#include <libgen.h> 8638#include <string.h> 8639 8640int main(int argc, char **argv) { 8641 char *s, buf[32]; 8642 8643 strncpy(buf,"/etc", 32); 8644 s = dirname(buf); 8645 if (!s || strncmp(s, "/", 32) != 0) { 8646 exit(1); 8647 } else { 8648 exit(0); 8649 } 8650} 8651 8652_ACEOF 8653if ac_fn_c_try_run "$LINENO"; then : 8654 ac_cv_have_broken_dirname="no" 8655else 8656 ac_cv_have_broken_dirname="yes" 8657fi 8658rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8659 conftest.$ac_objext conftest.beam conftest.$ac_ext 8660fi 8661 8662 LIBS="$save_LIBS" 8663 8664fi 8665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5 8666$as_echo "$ac_cv_have_broken_dirname" >&6; } 8667 if test "x$ac_cv_have_broken_dirname" = "xno" ; then 8668 LIBS="$LIBS -lgen" 8669 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h 8670 8671 for ac_header in libgen.h 8672do : 8673 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" 8674if test "x$ac_cv_header_libgen_h" = xyes; then : 8675 cat >>confdefs.h <<_ACEOF 8676#define HAVE_LIBGEN_H 1 8677_ACEOF 8678 8679fi 8680 8681done 8682 8683 fi 8684 8685fi 8686 8687 8688fi 8689done 8690 8691 8692ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam" 8693if test "x$ac_cv_func_getspnam" = xyes; then : 8694 8695else 8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5 8697$as_echo_n "checking for getspnam in -lgen... " >&6; } 8698if ${ac_cv_lib_gen_getspnam+:} false; then : 8699 $as_echo_n "(cached) " >&6 8700else 8701 ac_check_lib_save_LIBS=$LIBS 8702LIBS="-lgen $LIBS" 8703cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8704/* end confdefs.h. */ 8705 8706/* Override any GCC internal prototype to avoid an error. 8707 Use char because int might match the return type of a GCC 8708 builtin and then its argument prototype would still apply. */ 8709#ifdef __cplusplus 8710extern "C" 8711#endif 8712char getspnam (); 8713int 8714main () 8715{ 8716return getspnam (); 8717 ; 8718 return 0; 8719} 8720_ACEOF 8721if ac_fn_c_try_link "$LINENO"; then : 8722 ac_cv_lib_gen_getspnam=yes 8723else 8724 ac_cv_lib_gen_getspnam=no 8725fi 8726rm -f core conftest.err conftest.$ac_objext \ 8727 conftest$ac_exeext conftest.$ac_ext 8728LIBS=$ac_check_lib_save_LIBS 8729fi 8730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5 8731$as_echo "$ac_cv_lib_gen_getspnam" >&6; } 8732if test "x$ac_cv_lib_gen_getspnam" = xyes; then : 8733 LIBS="$LIBS -lgen" 8734fi 8735 8736fi 8737 8738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5 8739$as_echo_n "checking for library containing basename... " >&6; } 8740if ${ac_cv_search_basename+:} false; then : 8741 $as_echo_n "(cached) " >&6 8742else 8743 ac_func_search_save_LIBS=$LIBS 8744cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8745/* end confdefs.h. */ 8746 8747/* Override any GCC internal prototype to avoid an error. 8748 Use char because int might match the return type of a GCC 8749 builtin and then its argument prototype would still apply. */ 8750#ifdef __cplusplus 8751extern "C" 8752#endif 8753char basename (); 8754int 8755main () 8756{ 8757return basename (); 8758 ; 8759 return 0; 8760} 8761_ACEOF 8762for ac_lib in '' gen; do 8763 if test -z "$ac_lib"; then 8764 ac_res="none required" 8765 else 8766 ac_res=-l$ac_lib 8767 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8768 fi 8769 if ac_fn_c_try_link "$LINENO"; then : 8770 ac_cv_search_basename=$ac_res 8771fi 8772rm -f core conftest.err conftest.$ac_objext \ 8773 conftest$ac_exeext 8774 if ${ac_cv_search_basename+:} false; then : 8775 break 8776fi 8777done 8778if ${ac_cv_search_basename+:} false; then : 8779 8780else 8781 ac_cv_search_basename=no 8782fi 8783rm conftest.$ac_ext 8784LIBS=$ac_func_search_save_LIBS 8785fi 8786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5 8787$as_echo "$ac_cv_search_basename" >&6; } 8788ac_res=$ac_cv_search_basename 8789if test "$ac_res" != no; then : 8790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8791 8792$as_echo "#define HAVE_BASENAME 1" >>confdefs.h 8793 8794fi 8795 8796 8797 8798# Check whether --with-zlib was given. 8799if test "${with_zlib+set}" = set; then : 8800 withval=$with_zlib; if test "x$withval" = "xno" ; then 8801 as_fn_error $? "*** zlib is required ***" "$LINENO" 5 8802 elif test "x$withval" != "xyes"; then 8803 if test -d "$withval/lib"; then 8804 if test -n "${need_dash_r}"; then 8805 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" 8806 else 8807 LDFLAGS="-L${withval}/lib ${LDFLAGS}" 8808 fi 8809 else 8810 if test -n "${need_dash_r}"; then 8811 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" 8812 else 8813 LDFLAGS="-L${withval} ${LDFLAGS}" 8814 fi 8815 fi 8816 if test -d "$withval/include"; then 8817 CPPFLAGS="-I${withval}/include ${CPPFLAGS}" 8818 else 8819 CPPFLAGS="-I${withval} ${CPPFLAGS}" 8820 fi 8821 fi 8822 8823fi 8824 8825 8826ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 8827if test "x$ac_cv_header_zlib_h" = xyes; then : 8828 8829else 8830 as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5 8831fi 8832 8833 8834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 8835$as_echo_n "checking for deflate in -lz... " >&6; } 8836if ${ac_cv_lib_z_deflate+:} false; then : 8837 $as_echo_n "(cached) " >&6 8838else 8839 ac_check_lib_save_LIBS=$LIBS 8840LIBS="-lz $LIBS" 8841cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8842/* end confdefs.h. */ 8843 8844/* Override any GCC internal prototype to avoid an error. 8845 Use char because int might match the return type of a GCC 8846 builtin and then its argument prototype would still apply. */ 8847#ifdef __cplusplus 8848extern "C" 8849#endif 8850char deflate (); 8851int 8852main () 8853{ 8854return deflate (); 8855 ; 8856 return 0; 8857} 8858_ACEOF 8859if ac_fn_c_try_link "$LINENO"; then : 8860 ac_cv_lib_z_deflate=yes 8861else 8862 ac_cv_lib_z_deflate=no 8863fi 8864rm -f core conftest.err conftest.$ac_objext \ 8865 conftest$ac_exeext conftest.$ac_ext 8866LIBS=$ac_check_lib_save_LIBS 8867fi 8868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 8869$as_echo "$ac_cv_lib_z_deflate" >&6; } 8870if test "x$ac_cv_lib_z_deflate" = xyes; then : 8871 cat >>confdefs.h <<_ACEOF 8872#define HAVE_LIBZ 1 8873_ACEOF 8874 8875 LIBS="-lz $LIBS" 8876 8877else 8878 8879 saved_CPPFLAGS="$CPPFLAGS" 8880 saved_LDFLAGS="$LDFLAGS" 8881 save_LIBS="$LIBS" 8882 if test -n "${need_dash_r}"; then 8883 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" 8884 else 8885 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" 8886 fi 8887 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" 8888 LIBS="$LIBS -lz" 8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8890/* end confdefs.h. */ 8891 8892/* Override any GCC internal prototype to avoid an error. 8893 Use char because int might match the return type of a GCC 8894 builtin and then its argument prototype would still apply. */ 8895#ifdef __cplusplus 8896extern "C" 8897#endif 8898char deflate (); 8899int 8900main () 8901{ 8902return deflate (); 8903 ; 8904 return 0; 8905} 8906_ACEOF 8907if ac_fn_c_try_link "$LINENO"; then : 8908 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h 8909 8910else 8911 8912 as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5 8913 8914 8915fi 8916rm -f core conftest.err conftest.$ac_objext \ 8917 conftest$ac_exeext conftest.$ac_ext 8918 8919 8920fi 8921 8922 8923 8924# Check whether --with-zlib-version-check was given. 8925if test "${with_zlib_version_check+set}" = set; then : 8926 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then 8927 zlib_check_nonfatal=1 8928 fi 8929 8930 8931fi 8932 8933 8934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5 8935$as_echo_n "checking for possibly buggy zlib... " >&6; } 8936if test "$cross_compiling" = yes; then : 8937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5 8938$as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} 8939 8940else 8941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8942/* end confdefs.h. */ 8943 8944#include <stdio.h> 8945#include <stdlib.h> 8946#include <zlib.h> 8947 8948int 8949main () 8950{ 8951 8952 int a=0, b=0, c=0, d=0, n, v; 8953 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); 8954 if (n != 3 && n != 4) 8955 exit(1); 8956 v = a*1000000 + b*10000 + c*100 + d; 8957 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); 8958 8959 /* 1.1.4 is OK */ 8960 if (a == 1 && b == 1 && c >= 4) 8961 exit(0); 8962 8963 /* 1.2.3 and up are OK */ 8964 if (v >= 1020300) 8965 exit(0); 8966 8967 exit(2); 8968 8969 ; 8970 return 0; 8971} 8972_ACEOF 8973if ac_fn_c_try_run "$LINENO"; then : 8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8975$as_echo "no" >&6; } 8976else 8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8978$as_echo "yes" >&6; } 8979 if test -z "$zlib_check_nonfatal" ; then 8980 as_fn_error $? "*** zlib too old - check config.log *** 8981Your reported zlib version has known security problems. It's possible your 8982vendor has fixed these problems without changing the version number. If you 8983are sure this is the case, you can disable the check by running 8984\"./configure --without-zlib-version-check\". 8985If you are in doubt, upgrade zlib to version 1.2.3 or greater. 8986See http://www.gzip.org/zlib/ for details." "$LINENO" 5 8987 else 8988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5 8989$as_echo "$as_me: WARNING: zlib version may have security problems" >&2;} 8990 fi 8991 8992fi 8993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8994 conftest.$ac_objext conftest.beam conftest.$ac_ext 8995fi 8996 8997 8998ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 8999if test "x$ac_cv_func_strcasecmp" = xyes; then : 9000 9001else 9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5 9003$as_echo_n "checking for strcasecmp in -lresolv... " >&6; } 9004if ${ac_cv_lib_resolv_strcasecmp+:} false; then : 9005 $as_echo_n "(cached) " >&6 9006else 9007 ac_check_lib_save_LIBS=$LIBS 9008LIBS="-lresolv $LIBS" 9009cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9010/* end confdefs.h. */ 9011 9012/* Override any GCC internal prototype to avoid an error. 9013 Use char because int might match the return type of a GCC 9014 builtin and then its argument prototype would still apply. */ 9015#ifdef __cplusplus 9016extern "C" 9017#endif 9018char strcasecmp (); 9019int 9020main () 9021{ 9022return strcasecmp (); 9023 ; 9024 return 0; 9025} 9026_ACEOF 9027if ac_fn_c_try_link "$LINENO"; then : 9028 ac_cv_lib_resolv_strcasecmp=yes 9029else 9030 ac_cv_lib_resolv_strcasecmp=no 9031fi 9032rm -f core conftest.err conftest.$ac_objext \ 9033 conftest$ac_exeext conftest.$ac_ext 9034LIBS=$ac_check_lib_save_LIBS 9035fi 9036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5 9037$as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; } 9038if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then : 9039 LIBS="$LIBS -lresolv" 9040fi 9041 9042 9043fi 9044 9045for ac_func in utimes 9046do : 9047 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" 9048if test "x$ac_cv_func_utimes" = xyes; then : 9049 cat >>confdefs.h <<_ACEOF 9050#define HAVE_UTIMES 1 9051_ACEOF 9052 9053else 9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5 9055$as_echo_n "checking for utimes in -lc89... " >&6; } 9056if ${ac_cv_lib_c89_utimes+:} false; then : 9057 $as_echo_n "(cached) " >&6 9058else 9059 ac_check_lib_save_LIBS=$LIBS 9060LIBS="-lc89 $LIBS" 9061cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9062/* end confdefs.h. */ 9063 9064/* Override any GCC internal prototype to avoid an error. 9065 Use char because int might match the return type of a GCC 9066 builtin and then its argument prototype would still apply. */ 9067#ifdef __cplusplus 9068extern "C" 9069#endif 9070char utimes (); 9071int 9072main () 9073{ 9074return utimes (); 9075 ; 9076 return 0; 9077} 9078_ACEOF 9079if ac_fn_c_try_link "$LINENO"; then : 9080 ac_cv_lib_c89_utimes=yes 9081else 9082 ac_cv_lib_c89_utimes=no 9083fi 9084rm -f core conftest.err conftest.$ac_objext \ 9085 conftest$ac_exeext conftest.$ac_ext 9086LIBS=$ac_check_lib_save_LIBS 9087fi 9088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5 9089$as_echo "$ac_cv_lib_c89_utimes" >&6; } 9090if test "x$ac_cv_lib_c89_utimes" = xyes; then : 9091 $as_echo "#define HAVE_UTIMES 1" >>confdefs.h 9092 9093 LIBS="$LIBS -lc89" 9094fi 9095 9096 9097fi 9098done 9099 9100 9101for ac_header in bsd/libutil.h libutil.h 9102do : 9103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9104ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9105if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9106 cat >>confdefs.h <<_ACEOF 9107#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9108_ACEOF 9109 9110fi 9111 9112done 9113 9114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5 9115$as_echo_n "checking for library containing fmt_scaled... " >&6; } 9116if ${ac_cv_search_fmt_scaled+:} false; then : 9117 $as_echo_n "(cached) " >&6 9118else 9119 ac_func_search_save_LIBS=$LIBS 9120cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9121/* end confdefs.h. */ 9122 9123/* Override any GCC internal prototype to avoid an error. 9124 Use char because int might match the return type of a GCC 9125 builtin and then its argument prototype would still apply. */ 9126#ifdef __cplusplus 9127extern "C" 9128#endif 9129char fmt_scaled (); 9130int 9131main () 9132{ 9133return fmt_scaled (); 9134 ; 9135 return 0; 9136} 9137_ACEOF 9138for ac_lib in '' util bsd; do 9139 if test -z "$ac_lib"; then 9140 ac_res="none required" 9141 else 9142 ac_res=-l$ac_lib 9143 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9144 fi 9145 if ac_fn_c_try_link "$LINENO"; then : 9146 ac_cv_search_fmt_scaled=$ac_res 9147fi 9148rm -f core conftest.err conftest.$ac_objext \ 9149 conftest$ac_exeext 9150 if ${ac_cv_search_fmt_scaled+:} false; then : 9151 break 9152fi 9153done 9154if ${ac_cv_search_fmt_scaled+:} false; then : 9155 9156else 9157 ac_cv_search_fmt_scaled=no 9158fi 9159rm conftest.$ac_ext 9160LIBS=$ac_func_search_save_LIBS 9161fi 9162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5 9163$as_echo "$ac_cv_search_fmt_scaled" >&6; } 9164ac_res=$ac_cv_search_fmt_scaled 9165if test "$ac_res" != no; then : 9166 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9167 9168fi 9169 9170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing scan_scaled" >&5 9171$as_echo_n "checking for library containing scan_scaled... " >&6; } 9172if ${ac_cv_search_scan_scaled+:} false; then : 9173 $as_echo_n "(cached) " >&6 9174else 9175 ac_func_search_save_LIBS=$LIBS 9176cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9177/* end confdefs.h. */ 9178 9179/* Override any GCC internal prototype to avoid an error. 9180 Use char because int might match the return type of a GCC 9181 builtin and then its argument prototype would still apply. */ 9182#ifdef __cplusplus 9183extern "C" 9184#endif 9185char scan_scaled (); 9186int 9187main () 9188{ 9189return scan_scaled (); 9190 ; 9191 return 0; 9192} 9193_ACEOF 9194for ac_lib in '' util bsd; do 9195 if test -z "$ac_lib"; then 9196 ac_res="none required" 9197 else 9198 ac_res=-l$ac_lib 9199 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9200 fi 9201 if ac_fn_c_try_link "$LINENO"; then : 9202 ac_cv_search_scan_scaled=$ac_res 9203fi 9204rm -f core conftest.err conftest.$ac_objext \ 9205 conftest$ac_exeext 9206 if ${ac_cv_search_scan_scaled+:} false; then : 9207 break 9208fi 9209done 9210if ${ac_cv_search_scan_scaled+:} false; then : 9211 9212else 9213 ac_cv_search_scan_scaled=no 9214fi 9215rm conftest.$ac_ext 9216LIBS=$ac_func_search_save_LIBS 9217fi 9218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_scan_scaled" >&5 9219$as_echo "$ac_cv_search_scan_scaled" >&6; } 9220ac_res=$ac_cv_search_scan_scaled 9221if test "$ac_res" != no; then : 9222 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9223 9224fi 9225 9226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5 9227$as_echo_n "checking for library containing login... " >&6; } 9228if ${ac_cv_search_login+:} false; then : 9229 $as_echo_n "(cached) " >&6 9230else 9231 ac_func_search_save_LIBS=$LIBS 9232cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9233/* end confdefs.h. */ 9234 9235/* Override any GCC internal prototype to avoid an error. 9236 Use char because int might match the return type of a GCC 9237 builtin and then its argument prototype would still apply. */ 9238#ifdef __cplusplus 9239extern "C" 9240#endif 9241char login (); 9242int 9243main () 9244{ 9245return login (); 9246 ; 9247 return 0; 9248} 9249_ACEOF 9250for ac_lib in '' util bsd; do 9251 if test -z "$ac_lib"; then 9252 ac_res="none required" 9253 else 9254 ac_res=-l$ac_lib 9255 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9256 fi 9257 if ac_fn_c_try_link "$LINENO"; then : 9258 ac_cv_search_login=$ac_res 9259fi 9260rm -f core conftest.err conftest.$ac_objext \ 9261 conftest$ac_exeext 9262 if ${ac_cv_search_login+:} false; then : 9263 break 9264fi 9265done 9266if ${ac_cv_search_login+:} false; then : 9267 9268else 9269 ac_cv_search_login=no 9270fi 9271rm conftest.$ac_ext 9272LIBS=$ac_func_search_save_LIBS 9273fi 9274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5 9275$as_echo "$ac_cv_search_login" >&6; } 9276ac_res=$ac_cv_search_login 9277if test "$ac_res" != no; then : 9278 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9279 9280fi 9281 9282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logout" >&5 9283$as_echo_n "checking for library containing logout... " >&6; } 9284if ${ac_cv_search_logout+:} false; then : 9285 $as_echo_n "(cached) " >&6 9286else 9287 ac_func_search_save_LIBS=$LIBS 9288cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9289/* end confdefs.h. */ 9290 9291/* Override any GCC internal prototype to avoid an error. 9292 Use char because int might match the return type of a GCC 9293 builtin and then its argument prototype would still apply. */ 9294#ifdef __cplusplus 9295extern "C" 9296#endif 9297char logout (); 9298int 9299main () 9300{ 9301return logout (); 9302 ; 9303 return 0; 9304} 9305_ACEOF 9306for ac_lib in '' util bsd; do 9307 if test -z "$ac_lib"; then 9308 ac_res="none required" 9309 else 9310 ac_res=-l$ac_lib 9311 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9312 fi 9313 if ac_fn_c_try_link "$LINENO"; then : 9314 ac_cv_search_logout=$ac_res 9315fi 9316rm -f core conftest.err conftest.$ac_objext \ 9317 conftest$ac_exeext 9318 if ${ac_cv_search_logout+:} false; then : 9319 break 9320fi 9321done 9322if ${ac_cv_search_logout+:} false; then : 9323 9324else 9325 ac_cv_search_logout=no 9326fi 9327rm conftest.$ac_ext 9328LIBS=$ac_func_search_save_LIBS 9329fi 9330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logout" >&5 9331$as_echo "$ac_cv_search_logout" >&6; } 9332ac_res=$ac_cv_search_logout 9333if test "$ac_res" != no; then : 9334 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9335 9336fi 9337 9338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logwtmp" >&5 9339$as_echo_n "checking for library containing logwtmp... " >&6; } 9340if ${ac_cv_search_logwtmp+:} false; then : 9341 $as_echo_n "(cached) " >&6 9342else 9343 ac_func_search_save_LIBS=$LIBS 9344cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9345/* end confdefs.h. */ 9346 9347/* Override any GCC internal prototype to avoid an error. 9348 Use char because int might match the return type of a GCC 9349 builtin and then its argument prototype would still apply. */ 9350#ifdef __cplusplus 9351extern "C" 9352#endif 9353char logwtmp (); 9354int 9355main () 9356{ 9357return logwtmp (); 9358 ; 9359 return 0; 9360} 9361_ACEOF 9362for ac_lib in '' util bsd; do 9363 if test -z "$ac_lib"; then 9364 ac_res="none required" 9365 else 9366 ac_res=-l$ac_lib 9367 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9368 fi 9369 if ac_fn_c_try_link "$LINENO"; then : 9370 ac_cv_search_logwtmp=$ac_res 9371fi 9372rm -f core conftest.err conftest.$ac_objext \ 9373 conftest$ac_exeext 9374 if ${ac_cv_search_logwtmp+:} false; then : 9375 break 9376fi 9377done 9378if ${ac_cv_search_logwtmp+:} false; then : 9379 9380else 9381 ac_cv_search_logwtmp=no 9382fi 9383rm conftest.$ac_ext 9384LIBS=$ac_func_search_save_LIBS 9385fi 9386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logwtmp" >&5 9387$as_echo "$ac_cv_search_logwtmp" >&6; } 9388ac_res=$ac_cv_search_logwtmp 9389if test "$ac_res" != no; then : 9390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9391 9392fi 9393 9394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 9395$as_echo_n "checking for library containing openpty... " >&6; } 9396if ${ac_cv_search_openpty+:} false; then : 9397 $as_echo_n "(cached) " >&6 9398else 9399 ac_func_search_save_LIBS=$LIBS 9400cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9401/* end confdefs.h. */ 9402 9403/* Override any GCC internal prototype to avoid an error. 9404 Use char because int might match the return type of a GCC 9405 builtin and then its argument prototype would still apply. */ 9406#ifdef __cplusplus 9407extern "C" 9408#endif 9409char openpty (); 9410int 9411main () 9412{ 9413return openpty (); 9414 ; 9415 return 0; 9416} 9417_ACEOF 9418for ac_lib in '' util bsd; do 9419 if test -z "$ac_lib"; then 9420 ac_res="none required" 9421 else 9422 ac_res=-l$ac_lib 9423 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9424 fi 9425 if ac_fn_c_try_link "$LINENO"; then : 9426 ac_cv_search_openpty=$ac_res 9427fi 9428rm -f core conftest.err conftest.$ac_objext \ 9429 conftest$ac_exeext 9430 if ${ac_cv_search_openpty+:} false; then : 9431 break 9432fi 9433done 9434if ${ac_cv_search_openpty+:} false; then : 9435 9436else 9437 ac_cv_search_openpty=no 9438fi 9439rm conftest.$ac_ext 9440LIBS=$ac_func_search_save_LIBS 9441fi 9442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 9443$as_echo "$ac_cv_search_openpty" >&6; } 9444ac_res=$ac_cv_search_openpty 9445if test "$ac_res" != no; then : 9446 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9447 9448fi 9449 9450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing updwtmp" >&5 9451$as_echo_n "checking for library containing updwtmp... " >&6; } 9452if ${ac_cv_search_updwtmp+:} false; then : 9453 $as_echo_n "(cached) " >&6 9454else 9455 ac_func_search_save_LIBS=$LIBS 9456cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9457/* end confdefs.h. */ 9458 9459/* Override any GCC internal prototype to avoid an error. 9460 Use char because int might match the return type of a GCC 9461 builtin and then its argument prototype would still apply. */ 9462#ifdef __cplusplus 9463extern "C" 9464#endif 9465char updwtmp (); 9466int 9467main () 9468{ 9469return updwtmp (); 9470 ; 9471 return 0; 9472} 9473_ACEOF 9474for ac_lib in '' util bsd; do 9475 if test -z "$ac_lib"; then 9476 ac_res="none required" 9477 else 9478 ac_res=-l$ac_lib 9479 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9480 fi 9481 if ac_fn_c_try_link "$LINENO"; then : 9482 ac_cv_search_updwtmp=$ac_res 9483fi 9484rm -f core conftest.err conftest.$ac_objext \ 9485 conftest$ac_exeext 9486 if ${ac_cv_search_updwtmp+:} false; then : 9487 break 9488fi 9489done 9490if ${ac_cv_search_updwtmp+:} false; then : 9491 9492else 9493 ac_cv_search_updwtmp=no 9494fi 9495rm conftest.$ac_ext 9496LIBS=$ac_func_search_save_LIBS 9497fi 9498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_updwtmp" >&5 9499$as_echo "$ac_cv_search_updwtmp" >&6; } 9500ac_res=$ac_cv_search_updwtmp 9501if test "$ac_res" != no; then : 9502 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9503 9504fi 9505 9506for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp 9507do : 9508 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9509ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9510if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9511 cat >>confdefs.h <<_ACEOF 9512#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9513_ACEOF 9514 9515fi 9516done 9517 9518 9519# On some platforms, inet_ntop and gethostbyname may be found in libresolv 9520# or libnsl. 9521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 9522$as_echo_n "checking for library containing inet_ntop... " >&6; } 9523if ${ac_cv_search_inet_ntop+:} false; then : 9524 $as_echo_n "(cached) " >&6 9525else 9526 ac_func_search_save_LIBS=$LIBS 9527cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9528/* end confdefs.h. */ 9529 9530/* Override any GCC internal prototype to avoid an error. 9531 Use char because int might match the return type of a GCC 9532 builtin and then its argument prototype would still apply. */ 9533#ifdef __cplusplus 9534extern "C" 9535#endif 9536char inet_ntop (); 9537int 9538main () 9539{ 9540return inet_ntop (); 9541 ; 9542 return 0; 9543} 9544_ACEOF 9545for ac_lib in '' resolv nsl; do 9546 if test -z "$ac_lib"; then 9547 ac_res="none required" 9548 else 9549 ac_res=-l$ac_lib 9550 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9551 fi 9552 if ac_fn_c_try_link "$LINENO"; then : 9553 ac_cv_search_inet_ntop=$ac_res 9554fi 9555rm -f core conftest.err conftest.$ac_objext \ 9556 conftest$ac_exeext 9557 if ${ac_cv_search_inet_ntop+:} false; then : 9558 break 9559fi 9560done 9561if ${ac_cv_search_inet_ntop+:} false; then : 9562 9563else 9564 ac_cv_search_inet_ntop=no 9565fi 9566rm conftest.$ac_ext 9567LIBS=$ac_func_search_save_LIBS 9568fi 9569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 9570$as_echo "$ac_cv_search_inet_ntop" >&6; } 9571ac_res=$ac_cv_search_inet_ntop 9572if test "$ac_res" != no; then : 9573 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9574 9575fi 9576 9577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 9578$as_echo_n "checking for library containing gethostbyname... " >&6; } 9579if ${ac_cv_search_gethostbyname+:} false; then : 9580 $as_echo_n "(cached) " >&6 9581else 9582 ac_func_search_save_LIBS=$LIBS 9583cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9584/* end confdefs.h. */ 9585 9586/* Override any GCC internal prototype to avoid an error. 9587 Use char because int might match the return type of a GCC 9588 builtin and then its argument prototype would still apply. */ 9589#ifdef __cplusplus 9590extern "C" 9591#endif 9592char gethostbyname (); 9593int 9594main () 9595{ 9596return gethostbyname (); 9597 ; 9598 return 0; 9599} 9600_ACEOF 9601for ac_lib in '' resolv nsl; do 9602 if test -z "$ac_lib"; then 9603 ac_res="none required" 9604 else 9605 ac_res=-l$ac_lib 9606 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9607 fi 9608 if ac_fn_c_try_link "$LINENO"; then : 9609 ac_cv_search_gethostbyname=$ac_res 9610fi 9611rm -f core conftest.err conftest.$ac_objext \ 9612 conftest$ac_exeext 9613 if ${ac_cv_search_gethostbyname+:} false; then : 9614 break 9615fi 9616done 9617if ${ac_cv_search_gethostbyname+:} false; then : 9618 9619else 9620 ac_cv_search_gethostbyname=no 9621fi 9622rm conftest.$ac_ext 9623LIBS=$ac_func_search_save_LIBS 9624fi 9625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 9626$as_echo "$ac_cv_search_gethostbyname" >&6; } 9627ac_res=$ac_cv_search_gethostbyname 9628if test "$ac_res" != no; then : 9629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9630 9631fi 9632 9633 9634for ac_func in strftime 9635do : 9636 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 9637if test "x$ac_cv_func_strftime" = xyes; then : 9638 cat >>confdefs.h <<_ACEOF 9639#define HAVE_STRFTIME 1 9640_ACEOF 9641 9642else 9643 # strftime is in -lintl on SCO UNIX. 9644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 9645$as_echo_n "checking for strftime in -lintl... " >&6; } 9646if ${ac_cv_lib_intl_strftime+:} false; then : 9647 $as_echo_n "(cached) " >&6 9648else 9649 ac_check_lib_save_LIBS=$LIBS 9650LIBS="-lintl $LIBS" 9651cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9652/* end confdefs.h. */ 9653 9654/* Override any GCC internal prototype to avoid an error. 9655 Use char because int might match the return type of a GCC 9656 builtin and then its argument prototype would still apply. */ 9657#ifdef __cplusplus 9658extern "C" 9659#endif 9660char strftime (); 9661int 9662main () 9663{ 9664return strftime (); 9665 ; 9666 return 0; 9667} 9668_ACEOF 9669if ac_fn_c_try_link "$LINENO"; then : 9670 ac_cv_lib_intl_strftime=yes 9671else 9672 ac_cv_lib_intl_strftime=no 9673fi 9674rm -f core conftest.err conftest.$ac_objext \ 9675 conftest$ac_exeext conftest.$ac_ext 9676LIBS=$ac_check_lib_save_LIBS 9677fi 9678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 9679$as_echo "$ac_cv_lib_intl_strftime" >&6; } 9680if test "x$ac_cv_lib_intl_strftime" = xyes; then : 9681 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 9682 9683LIBS="-lintl $LIBS" 9684fi 9685 9686fi 9687done 9688 9689 9690# Check for ALTDIRFUNC glob() extension 9691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5 9692$as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; } 9693cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9694/* end confdefs.h. */ 9695 9696 #include <glob.h> 9697 #ifdef GLOB_ALTDIRFUNC 9698 FOUNDIT 9699 #endif 9700 9701_ACEOF 9702if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9703 $EGREP "FOUNDIT" >/dev/null 2>&1; then : 9704 9705 9706$as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h 9707 9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9709$as_echo "yes" >&6; } 9710 9711else 9712 9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9714$as_echo "no" >&6; } 9715 9716 9717fi 9718rm -f conftest* 9719 9720 9721# Check for g.gl_matchc glob() extension 9722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5 9723$as_echo_n "checking for gl_matchc field in glob_t... " >&6; } 9724cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9725/* end confdefs.h. */ 9726 #include <glob.h> 9727int 9728main () 9729{ 9730 glob_t g; g.gl_matchc = 1; 9731 ; 9732 return 0; 9733} 9734_ACEOF 9735if ac_fn_c_try_compile "$LINENO"; then : 9736 9737 9738$as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h 9739 9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9741$as_echo "yes" >&6; } 9742 9743else 9744 9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9746$as_echo "no" >&6; } 9747 9748fi 9749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9750 9751# Check for g.gl_statv glob() extension 9752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5 9753$as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; } 9754cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9755/* end confdefs.h. */ 9756 #include <glob.h> 9757int 9758main () 9759{ 9760 9761#ifndef GLOB_KEEPSTAT 9762#error "glob does not support GLOB_KEEPSTAT extension" 9763#endif 9764glob_t g; 9765g.gl_statv = NULL; 9766 9767 ; 9768 return 0; 9769} 9770_ACEOF 9771if ac_fn_c_try_compile "$LINENO"; then : 9772 9773 9774$as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h 9775 9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9777$as_echo "yes" >&6; } 9778 9779else 9780 9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9782$as_echo "no" >&6; } 9783 9784 9785fi 9786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9787 9788ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h> 9789" 9790if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then : 9791 ac_have_decl=1 9792else 9793 ac_have_decl=0 9794fi 9795 9796cat >>confdefs.h <<_ACEOF 9797#define HAVE_DECL_GLOB_NOMATCH $ac_have_decl 9798_ACEOF 9799 9800 9801ac_fn_c_check_decl "$LINENO" "VIS_ALL" "ac_cv_have_decl_VIS_ALL" "#include <vis.h> 9802" 9803if test "x$ac_cv_have_decl_VIS_ALL" = xyes; then : 9804 9805else 9806 9807$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h 9808 9809fi 9810 9811 9812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5 9813$as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; } 9814if test "$cross_compiling" = yes; then : 9815 9816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 9817$as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} 9818 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h 9819 9820 9821 9822else 9823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9824/* end confdefs.h. */ 9825 9826#include <sys/types.h> 9827#include <dirent.h> 9828int 9829main () 9830{ 9831 9832 struct dirent d; 9833 exit(sizeof(d.d_name)<=sizeof(char)); 9834 9835 ; 9836 return 0; 9837} 9838_ACEOF 9839if ac_fn_c_try_run "$LINENO"; then : 9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9841$as_echo "yes" >&6; } 9842else 9843 9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9845$as_echo "no" >&6; } 9846 9847$as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h 9848 9849 9850fi 9851rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9852 conftest.$ac_objext conftest.beam conftest.$ac_ext 9853fi 9854 9855 9856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5 9857$as_echo_n "checking for /proc/pid/fd directory... " >&6; } 9858if test -d "/proc/$$/fd" ; then 9859 9860$as_echo "#define HAVE_PROC_PID 1" >>confdefs.h 9861 9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9863$as_echo "yes" >&6; } 9864else 9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9866$as_echo "no" >&6; } 9867fi 9868 9869# Check whether user wants S/Key support 9870SKEY_MSG="no" 9871 9872# Check whether --with-skey was given. 9873if test "${with_skey+set}" = set; then : 9874 withval=$with_skey; 9875 if test "x$withval" != "xno" ; then 9876 9877 if test "x$withval" != "xyes" ; then 9878 CPPFLAGS="$CPPFLAGS -I${withval}/include" 9879 LDFLAGS="$LDFLAGS -L${withval}/lib" 9880 fi 9881 9882 9883$as_echo "#define SKEY 1" >>confdefs.h 9884 9885 LIBS="-lskey $LIBS" 9886 SKEY_MSG="yes" 9887 9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5 9889$as_echo_n "checking for s/key support... " >&6; } 9890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9891/* end confdefs.h. */ 9892 9893#include <stdio.h> 9894#include <skey.h> 9895 9896int 9897main () 9898{ 9899 9900 char *ff = skey_keyinfo(""); ff=""; 9901 exit(0); 9902 9903 ; 9904 return 0; 9905} 9906_ACEOF 9907if ac_fn_c_try_link "$LINENO"; then : 9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9909$as_echo "yes" >&6; } 9910else 9911 9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9913$as_echo "no" >&6; } 9914 as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5 9915 9916fi 9917rm -f core conftest.err conftest.$ac_objext \ 9918 conftest$ac_exeext conftest.$ac_ext 9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5 9920$as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; } 9921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9922/* end confdefs.h. */ 9923 9924#include <stdio.h> 9925#include <skey.h> 9926 9927int 9928main () 9929{ 9930 9931 (void)skeychallenge(NULL,"name","",0); 9932 9933 ; 9934 return 0; 9935} 9936_ACEOF 9937if ac_fn_c_try_compile "$LINENO"; then : 9938 9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9940$as_echo "yes" >&6; } 9941 9942$as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h 9943 9944else 9945 9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9947$as_echo "no" >&6; } 9948 9949fi 9950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9951 fi 9952 9953 9954fi 9955 9956 9957# Check whether user wants to use ldns 9958LDNS_MSG="no" 9959 9960# Check whether --with-ldns was given. 9961if test "${with_ldns+set}" = set; then : 9962 withval=$with_ldns; 9963 ldns="" 9964 if test "x$withval" = "xyes" ; then 9965 if test -n "$ac_tool_prefix"; then 9966 # Extract the first word of "${ac_tool_prefix}ldns-config", so it can be a program name with args. 9967set dummy ${ac_tool_prefix}ldns-config; ac_word=$2 9968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9969$as_echo_n "checking for $ac_word... " >&6; } 9970if ${ac_cv_path_LDNSCONFIG+:} false; then : 9971 $as_echo_n "(cached) " >&6 9972else 9973 case $LDNSCONFIG in 9974 [\\/]* | ?:[\\/]*) 9975 ac_cv_path_LDNSCONFIG="$LDNSCONFIG" # Let the user override the test with a path. 9976 ;; 9977 *) 9978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9979for as_dir in $PATH 9980do 9981 IFS=$as_save_IFS 9982 test -z "$as_dir" && as_dir=. 9983 for ac_exec_ext in '' $ac_executable_extensions; do 9984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9985 ac_cv_path_LDNSCONFIG="$as_dir/$ac_word$ac_exec_ext" 9986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9987 break 2 9988 fi 9989done 9990 done 9991IFS=$as_save_IFS 9992 9993 ;; 9994esac 9995fi 9996LDNSCONFIG=$ac_cv_path_LDNSCONFIG 9997if test -n "$LDNSCONFIG"; then 9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDNSCONFIG" >&5 9999$as_echo "$LDNSCONFIG" >&6; } 10000else 10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10002$as_echo "no" >&6; } 10003fi 10004 10005 10006fi 10007if test -z "$ac_cv_path_LDNSCONFIG"; then 10008 ac_pt_LDNSCONFIG=$LDNSCONFIG 10009 # Extract the first word of "ldns-config", so it can be a program name with args. 10010set dummy ldns-config; ac_word=$2 10011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10012$as_echo_n "checking for $ac_word... " >&6; } 10013if ${ac_cv_path_ac_pt_LDNSCONFIG+:} false; then : 10014 $as_echo_n "(cached) " >&6 10015else 10016 case $ac_pt_LDNSCONFIG in 10017 [\\/]* | ?:[\\/]*) 10018 ac_cv_path_ac_pt_LDNSCONFIG="$ac_pt_LDNSCONFIG" # Let the user override the test with a path. 10019 ;; 10020 *) 10021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10022for as_dir in $PATH 10023do 10024 IFS=$as_save_IFS 10025 test -z "$as_dir" && as_dir=. 10026 for ac_exec_ext in '' $ac_executable_extensions; do 10027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10028 ac_cv_path_ac_pt_LDNSCONFIG="$as_dir/$ac_word$ac_exec_ext" 10029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10030 break 2 10031 fi 10032done 10033 done 10034IFS=$as_save_IFS 10035 10036 ;; 10037esac 10038fi 10039ac_pt_LDNSCONFIG=$ac_cv_path_ac_pt_LDNSCONFIG 10040if test -n "$ac_pt_LDNSCONFIG"; then 10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LDNSCONFIG" >&5 10042$as_echo "$ac_pt_LDNSCONFIG" >&6; } 10043else 10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10045$as_echo "no" >&6; } 10046fi 10047 10048 if test "x$ac_pt_LDNSCONFIG" = x; then 10049 LDNSCONFIG="no" 10050 else 10051 case $cross_compiling:$ac_tool_warned in 10052yes:) 10053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10055ac_tool_warned=yes ;; 10056esac 10057 LDNSCONFIG=$ac_pt_LDNSCONFIG 10058 fi 10059else 10060 LDNSCONFIG="$ac_cv_path_LDNSCONFIG" 10061fi 10062 10063 if test "x$PKGCONFIG" = "xno"; then 10064 CPPFLAGS="$CPPFLAGS -I${withval}/include" 10065 LDFLAGS="$LDFLAGS -L${withval}/lib" 10066 LIBS="-lldns $LIBS" 10067 ldns=yes 10068 else 10069 LIBS="$LIBS `$LDNSCONFIG --libs`" 10070 CPPFLAGS="$CPPFLAGS `$LDNSCONFIG --cflags`" 10071 fi 10072 elif test "x$withval" != "xno" ; then 10073 CPPFLAGS="$CPPFLAGS -I${withval}/include" 10074 LDFLAGS="$LDFLAGS -L${withval}/lib" 10075 LIBS="-lldns $LIBS" 10076 ldns=yes 10077 fi 10078 10079 # Verify that it works. 10080 if test "x$ldns" = "xyes" ; then 10081 10082$as_echo "#define HAVE_LDNS 1" >>confdefs.h 10083 10084 LDNS_MSG="yes" 10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns support" >&5 10086$as_echo_n "checking for ldns support... " >&6; } 10087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10088/* end confdefs.h. */ 10089 10090#include <stdio.h> 10091#include <stdlib.h> 10092#include <stdint.h> 10093#include <ldns/ldns.h> 10094int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); } 10095 10096 10097_ACEOF 10098if ac_fn_c_try_link "$LINENO"; then : 10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10100$as_echo "yes" >&6; } 10101else 10102 10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10104$as_echo "no" >&6; } 10105 as_fn_error $? "** Incomplete or missing ldns libraries." "$LINENO" 5 10106 10107fi 10108rm -f core conftest.err conftest.$ac_objext \ 10109 conftest$ac_exeext conftest.$ac_ext 10110 fi 10111 10112fi 10113 10114 10115# Check whether user wants libedit support 10116LIBEDIT_MSG="no" 10117 10118# Check whether --with-libedit was given. 10119if test "${with_libedit+set}" = set; then : 10120 withval=$with_libedit; if test "x$withval" != "xno" ; then 10121 if test "x$withval" = "xyes" ; then 10122 if test -n "$ac_tool_prefix"; then 10123 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 10124set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 10125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10126$as_echo_n "checking for $ac_word... " >&6; } 10127if ${ac_cv_path_PKGCONFIG+:} false; then : 10128 $as_echo_n "(cached) " >&6 10129else 10130 case $PKGCONFIG in 10131 [\\/]* | ?:[\\/]*) 10132 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 10133 ;; 10134 *) 10135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10136for as_dir in $PATH 10137do 10138 IFS=$as_save_IFS 10139 test -z "$as_dir" && as_dir=. 10140 for ac_exec_ext in '' $ac_executable_extensions; do 10141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10142 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 10143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10144 break 2 10145 fi 10146done 10147 done 10148IFS=$as_save_IFS 10149 10150 ;; 10151esac 10152fi 10153PKGCONFIG=$ac_cv_path_PKGCONFIG 10154if test -n "$PKGCONFIG"; then 10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 10156$as_echo "$PKGCONFIG" >&6; } 10157else 10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10159$as_echo "no" >&6; } 10160fi 10161 10162 10163fi 10164if test -z "$ac_cv_path_PKGCONFIG"; then 10165 ac_pt_PKGCONFIG=$PKGCONFIG 10166 # Extract the first word of "pkg-config", so it can be a program name with args. 10167set dummy pkg-config; ac_word=$2 10168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10169$as_echo_n "checking for $ac_word... " >&6; } 10170if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : 10171 $as_echo_n "(cached) " >&6 10172else 10173 case $ac_pt_PKGCONFIG in 10174 [\\/]* | ?:[\\/]*) 10175 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 10176 ;; 10177 *) 10178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10179for as_dir in $PATH 10180do 10181 IFS=$as_save_IFS 10182 test -z "$as_dir" && as_dir=. 10183 for ac_exec_ext in '' $ac_executable_extensions; do 10184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10185 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 10186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10187 break 2 10188 fi 10189done 10190 done 10191IFS=$as_save_IFS 10192 10193 ;; 10194esac 10195fi 10196ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 10197if test -n "$ac_pt_PKGCONFIG"; then 10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 10199$as_echo "$ac_pt_PKGCONFIG" >&6; } 10200else 10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10202$as_echo "no" >&6; } 10203fi 10204 10205 if test "x$ac_pt_PKGCONFIG" = x; then 10206 PKGCONFIG="no" 10207 else 10208 case $cross_compiling:$ac_tool_warned in 10209yes:) 10210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10212ac_tool_warned=yes ;; 10213esac 10214 PKGCONFIG=$ac_pt_PKGCONFIG 10215 fi 10216else 10217 PKGCONFIG="$ac_cv_path_PKGCONFIG" 10218fi 10219 10220 if test "x$PKGCONFIG" != "xno"; then 10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5 10222$as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; } 10223 if "$PKGCONFIG" libedit; then 10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10225$as_echo "yes" >&6; } 10226 use_pkgconfig_for_libedit=yes 10227 else 10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10229$as_echo "no" >&6; } 10230 fi 10231 fi 10232 else 10233 CPPFLAGS="$CPPFLAGS -I${withval}/include" 10234 if test -n "${need_dash_r}"; then 10235 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" 10236 else 10237 LDFLAGS="-L${withval}/lib ${LDFLAGS}" 10238 fi 10239 fi 10240 if test "x$use_pkgconfig_for_libedit" = "xyes"; then 10241 LIBEDIT=`$PKGCONFIG --libs libedit` 10242 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`" 10243 else 10244 LIBEDIT="-ledit -lcurses" 10245 fi 10246 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'` 10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5 10248$as_echo_n "checking for el_init in -ledit... " >&6; } 10249if ${ac_cv_lib_edit_el_init+:} false; then : 10250 $as_echo_n "(cached) " >&6 10251else 10252 ac_check_lib_save_LIBS=$LIBS 10253LIBS="-ledit $OTHERLIBS 10254 $LIBS" 10255cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10256/* end confdefs.h. */ 10257 10258/* Override any GCC internal prototype to avoid an error. 10259 Use char because int might match the return type of a GCC 10260 builtin and then its argument prototype would still apply. */ 10261#ifdef __cplusplus 10262extern "C" 10263#endif 10264char el_init (); 10265int 10266main () 10267{ 10268return el_init (); 10269 ; 10270 return 0; 10271} 10272_ACEOF 10273if ac_fn_c_try_link "$LINENO"; then : 10274 ac_cv_lib_edit_el_init=yes 10275else 10276 ac_cv_lib_edit_el_init=no 10277fi 10278rm -f core conftest.err conftest.$ac_objext \ 10279 conftest$ac_exeext conftest.$ac_ext 10280LIBS=$ac_check_lib_save_LIBS 10281fi 10282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5 10283$as_echo "$ac_cv_lib_edit_el_init" >&6; } 10284if test "x$ac_cv_lib_edit_el_init" = xyes; then : 10285 10286$as_echo "#define USE_LIBEDIT 1" >>confdefs.h 10287 10288 LIBEDIT_MSG="yes" 10289 10290 10291else 10292 as_fn_error $? "libedit not found" "$LINENO" 5 10293fi 10294 10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5 10296$as_echo_n "checking if libedit version is compatible... " >&6; } 10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10298/* end confdefs.h. */ 10299 #include <histedit.h> 10300int 10301main () 10302{ 10303 10304 int i = H_SETSIZE; 10305 el_init("", NULL, NULL, NULL); 10306 exit(0); 10307 10308 ; 10309 return 0; 10310} 10311_ACEOF 10312if ac_fn_c_try_compile "$LINENO"; then : 10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10314$as_echo "yes" >&6; } 10315else 10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10317$as_echo "no" >&6; } 10318 as_fn_error $? "libedit version is not compatible" "$LINENO" 5 10319 10320fi 10321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10322 fi 10323 10324fi 10325 10326 10327AUDIT_MODULE=none 10328 10329# Check whether --with-audit was given. 10330if test "${with_audit+set}" = set; then : 10331 withval=$with_audit; 10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5 10333$as_echo_n "checking for supported audit module... " >&6; } 10334 case "$withval" in 10335 bsm) 10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5 10337$as_echo "bsm" >&6; } 10338 AUDIT_MODULE=bsm 10339 for ac_header in bsm/audit.h 10340do : 10341 ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" " 10342#ifdef HAVE_TIME_H 10343# include <time.h> 10344#endif 10345 10346 10347" 10348if test "x$ac_cv_header_bsm_audit_h" = xyes; then : 10349 cat >>confdefs.h <<_ACEOF 10350#define HAVE_BSM_AUDIT_H 1 10351_ACEOF 10352 10353else 10354 as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5 10355fi 10356 10357done 10358 10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5 10360$as_echo_n "checking for getaudit in -lbsm... " >&6; } 10361if ${ac_cv_lib_bsm_getaudit+:} false; then : 10362 $as_echo_n "(cached) " >&6 10363else 10364 ac_check_lib_save_LIBS=$LIBS 10365LIBS="-lbsm $LIBS" 10366cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10367/* end confdefs.h. */ 10368 10369/* Override any GCC internal prototype to avoid an error. 10370 Use char because int might match the return type of a GCC 10371 builtin and then its argument prototype would still apply. */ 10372#ifdef __cplusplus 10373extern "C" 10374#endif 10375char getaudit (); 10376int 10377main () 10378{ 10379return getaudit (); 10380 ; 10381 return 0; 10382} 10383_ACEOF 10384if ac_fn_c_try_link "$LINENO"; then : 10385 ac_cv_lib_bsm_getaudit=yes 10386else 10387 ac_cv_lib_bsm_getaudit=no 10388fi 10389rm -f core conftest.err conftest.$ac_objext \ 10390 conftest$ac_exeext conftest.$ac_ext 10391LIBS=$ac_check_lib_save_LIBS 10392fi 10393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5 10394$as_echo "$ac_cv_lib_bsm_getaudit" >&6; } 10395if test "x$ac_cv_lib_bsm_getaudit" = xyes; then : 10396 cat >>confdefs.h <<_ACEOF 10397#define HAVE_LIBBSM 1 10398_ACEOF 10399 10400 LIBS="-lbsm $LIBS" 10401 10402else 10403 as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5 10404fi 10405 10406 for ac_func in getaudit 10407do : 10408 ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit" 10409if test "x$ac_cv_func_getaudit" = xyes; then : 10410 cat >>confdefs.h <<_ACEOF 10411#define HAVE_GETAUDIT 1 10412_ACEOF 10413 10414else 10415 as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5 10416fi 10417done 10418 10419 # These are optional 10420 for ac_func in getaudit_addr aug_get_machine 10421do : 10422 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10423ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10424if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10425 cat >>confdefs.h <<_ACEOF 10426#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10427_ACEOF 10428 10429fi 10430done 10431 10432 10433$as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h 10434 10435 if test "$sol2ver" -ge 11; then 10436 SSHDLIBS="$SSHDLIBS -lscf" 10437 10438$as_echo "#define BROKEN_BSM_API 1" >>confdefs.h 10439 10440 fi 10441 ;; 10442 linux) 10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5 10444$as_echo "linux" >&6; } 10445 AUDIT_MODULE=linux 10446 for ac_header in libaudit.h 10447do : 10448 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default" 10449if test "x$ac_cv_header_libaudit_h" = xyes; then : 10450 cat >>confdefs.h <<_ACEOF 10451#define HAVE_LIBAUDIT_H 1 10452_ACEOF 10453 10454fi 10455 10456done 10457 10458 SSHDLIBS="$SSHDLIBS -laudit" 10459 10460$as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h 10461 10462 ;; 10463 debug) 10464 AUDIT_MODULE=debug 10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5 10466$as_echo "debug" >&6; } 10467 10468$as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h 10469 10470 ;; 10471 no) 10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10473$as_echo "no" >&6; } 10474 ;; 10475 *) 10476 as_fn_error $? "Unknown audit module $withval" "$LINENO" 5 10477 ;; 10478 esac 10479 10480fi 10481 10482 10483 10484# Check whether --with-pie was given. 10485if test "${with_pie+set}" = set; then : 10486 withval=$with_pie; 10487 if test "x$withval" = "xno"; then 10488 use_pie=no 10489 fi 10490 if test "x$withval" = "xyes"; then 10491 use_pie=yes 10492 fi 10493 10494 10495fi 10496 10497if test "x$use_pie" = "x"; then 10498 use_pie=no 10499fi 10500if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then 10501 # Turn off automatic PIE when toolchain hardening is off. 10502 use_pie=no 10503fi 10504if test "x$use_pie" = "xauto"; then 10505 # Automatic PIE requires gcc >= 4.x 10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.x" >&5 10507$as_echo_n "checking for gcc >= 4.x... " >&6; } 10508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10509/* end confdefs.h. */ 10510 10511#if !defined(__GNUC__) || __GNUC__ < 4 10512#error gcc is too old 10513#endif 10514 10515_ACEOF 10516if ac_fn_c_try_compile "$LINENO"; then : 10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10518$as_echo "yes" >&6; } 10519else 10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10521$as_echo "no" >&6; } 10522 use_pie=no 10523 10524fi 10525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10526fi 10527if test "x$use_pie" != "xno"; then 10528 SAVED_CFLAGS="$CFLAGS" 10529 SAVED_LDFLAGS="$LDFLAGS" 10530 { 10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fPIE" >&5 10532$as_echo_n "checking if $CC supports compile flag -fPIE... " >&6; } 10533 saved_CFLAGS="$CFLAGS" 10534 CFLAGS="$CFLAGS $WERROR -fPIE" 10535 _define_flag="" 10536 test "x$_define_flag" = "x" && _define_flag="-fPIE" 10537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10538/* end confdefs.h. */ 10539 10540#include <stdlib.h> 10541#include <stdio.h> 10542int main(int argc, char **argv) { 10543 /* Some math to catch -ftrapv problems in the toolchain */ 10544 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 10545 float l = i * 2.1; 10546 double m = l / 0.5; 10547 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 10548 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); 10549 exit(0); 10550} 10551 10552_ACEOF 10553if ac_fn_c_try_compile "$LINENO"; then : 10554 10555if `grep -i "unrecognized option" conftest.err >/dev/null` 10556then 10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10558$as_echo "no" >&6; } 10559 CFLAGS="$saved_CFLAGS" 10560else 10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10562$as_echo "yes" >&6; } 10563 CFLAGS="$saved_CFLAGS $_define_flag" 10564fi 10565else 10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10567$as_echo "no" >&6; } 10568 CFLAGS="$saved_CFLAGS" 10569 10570fi 10571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10572} 10573 { 10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -pie" >&5 10575$as_echo_n "checking if $LD supports link flag -pie... " >&6; } 10576 saved_LDFLAGS="$LDFLAGS" 10577 LDFLAGS="$LDFLAGS $WERROR -pie" 10578 _define_flag="" 10579 test "x$_define_flag" = "x" && _define_flag="-pie" 10580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10581/* end confdefs.h. */ 10582 10583#include <stdlib.h> 10584#include <stdio.h> 10585int main(int argc, char **argv) { 10586 /* Some math to catch -ftrapv problems in the toolchain */ 10587 int i = 123 * argc, j = 456 + argc, k = 789 - argc; 10588 float l = i * 2.1; 10589 double m = l / 0.5; 10590 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; 10591 long long p = n * o; 10592 printf("%d %d %d %f %f %lld %lld %lld\n", i, j, k, l, m, n, o, p); 10593 exit(0); 10594} 10595 10596_ACEOF 10597if ac_fn_c_try_link "$LINENO"; then : 10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10599$as_echo "yes" >&6; } 10600 LDFLAGS="$saved_LDFLAGS $_define_flag" 10601else 10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10603$as_echo "no" >&6; } 10604 LDFLAGS="$saved_LDFLAGS" 10605 10606fi 10607rm -f core conftest.err conftest.$ac_objext \ 10608 conftest$ac_exeext conftest.$ac_ext 10609} 10610 # We use both -fPIE and -pie or neither. 10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether both -fPIE and -pie are supported" >&5 10612$as_echo_n "checking whether both -fPIE and -pie are supported... " >&6; } 10613 if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \ 10614 echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then 10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10616$as_echo "yes" >&6; } 10617 else 10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10619$as_echo "no" >&6; } 10620 CFLAGS="$SAVED_CFLAGS" 10621 LDFLAGS="$SAVED_LDFLAGS" 10622 fi 10623fi 10624 10625for ac_func in \ 10626 Blowfish_initstate \ 10627 Blowfish_expandstate \ 10628 Blowfish_expand0state \ 10629 Blowfish_stream2word \ 10630 asprintf \ 10631 b64_ntop \ 10632 __b64_ntop \ 10633 b64_pton \ 10634 __b64_pton \ 10635 bcopy \ 10636 bcrypt_pbkdf \ 10637 bindresvport_sa \ 10638 blf_enc \ 10639 cap_rights_limit \ 10640 clock \ 10641 closefrom \ 10642 dirfd \ 10643 endgrent \ 10644 err \ 10645 errx \ 10646 explicit_bzero \ 10647 fchmod \ 10648 fchown \ 10649 freeaddrinfo \ 10650 fstatfs \ 10651 fstatvfs \ 10652 futimes \ 10653 getaddrinfo \ 10654 getcwd \ 10655 getgrouplist \ 10656 getnameinfo \ 10657 getopt \ 10658 getpeereid \ 10659 getpeerucred \ 10660 getpgid \ 10661 getpgrp \ 10662 _getpty \ 10663 getrlimit \ 10664 getttyent \ 10665 glob \ 10666 group_from_gid \ 10667 inet_aton \ 10668 inet_ntoa \ 10669 inet_ntop \ 10670 innetgr \ 10671 llabs \ 10672 login_getcapbool \ 10673 md5_crypt \ 10674 memmove \ 10675 memset_s \ 10676 mkdtemp \ 10677 ngetaddrinfo \ 10678 nsleep \ 10679 ogetaddrinfo \ 10680 openlog_r \ 10681 pledge \ 10682 poll \ 10683 prctl \ 10684 pstat \ 10685 readpassphrase \ 10686 reallocarray \ 10687 recvmsg \ 10688 rresvport_af \ 10689 sendmsg \ 10690 setdtablesize \ 10691 setegid \ 10692 setenv \ 10693 seteuid \ 10694 setgroupent \ 10695 setgroups \ 10696 setlinebuf \ 10697 setlogin \ 10698 setpassent\ 10699 setpcred \ 10700 setproctitle \ 10701 setregid \ 10702 setreuid \ 10703 setrlimit \ 10704 setsid \ 10705 setvbuf \ 10706 sigaction \ 10707 sigvec \ 10708 snprintf \ 10709 socketpair \ 10710 statfs \ 10711 statvfs \ 10712 strcasestr \ 10713 strdup \ 10714 strerror \ 10715 strlcat \ 10716 strlcpy \ 10717 strmode \ 10718 strnlen \ 10719 strnvis \ 10720 strptime \ 10721 strtonum \ 10722 strtoll \ 10723 strtoul \ 10724 strtoull \ 10725 swap32 \ 10726 sysconf \ 10727 tcgetpgrp \ 10728 timingsafe_bcmp \ 10729 truncate \ 10730 unsetenv \ 10731 updwtmpx \ 10732 user_from_uid \ 10733 usleep \ 10734 vasprintf \ 10735 vsnprintf \ 10736 waitpid \ 10737 warn \ 10738 10739do : 10740 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10741ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10742if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10743 cat >>confdefs.h <<_ACEOF 10744#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10745_ACEOF 10746 10747fi 10748done 10749 10750 10751for ac_func in mblen mbtowc nl_langinfo wcwidth 10752do : 10753 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10754ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10755if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10756 cat >>confdefs.h <<_ACEOF 10757#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10758_ACEOF 10759 10760fi 10761done 10762 10763 10764TEST_SSH_UTF8=${TEST_SSH_UTF8:=yes} 10765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8 locale support" >&5 10766$as_echo_n "checking for utf8 locale support... " >&6; } 10767if test "$cross_compiling" = yes; then : 10768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 10769$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} 10770 10771else 10772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10773/* end confdefs.h. */ 10774 10775#include <locale.h> 10776#include <stdlib.h> 10777 10778int 10779main () 10780{ 10781 10782 char *loc = setlocale(LC_CTYPE, "en_US.UTF-8"); 10783 if (loc != NULL) 10784 exit(0); 10785 exit(1); 10786 10787 ; 10788 return 0; 10789} 10790_ACEOF 10791if ac_fn_c_try_run "$LINENO"; then : 10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10793$as_echo "yes" >&6; } 10794else 10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10796$as_echo "no" >&6; } 10797 TEST_SSH_UTF8=no 10798fi 10799rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10800 conftest.$ac_objext conftest.beam conftest.$ac_ext 10801fi 10802 10803 10804cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10805/* end confdefs.h. */ 10806 #include <ctype.h> 10807int 10808main () 10809{ 10810 return (isblank('a')); 10811 ; 10812 return 0; 10813} 10814_ACEOF 10815if ac_fn_c_try_link "$LINENO"; then : 10816 10817$as_echo "#define HAVE_ISBLANK 1" >>confdefs.h 10818 10819 10820fi 10821rm -f core conftest.err conftest.$ac_objext \ 10822 conftest$ac_exeext conftest.$ac_ext 10823 10824disable_pkcs11= 10825# Check whether --enable-pkcs11 was given. 10826if test "${enable_pkcs11+set}" = set; then : 10827 enableval=$enable_pkcs11; 10828 if test "x$enableval" = "xno" ; then 10829 disable_pkcs11=1 10830 fi 10831 10832 10833fi 10834 10835 10836# PKCS11 depends on OpenSSL. 10837if test "x$openssl" = "xyes" && test "x$disable_pkcs11" = "x"; then 10838 # PKCS#11 support requires dlopen() and co 10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 10840$as_echo_n "checking for library containing dlopen... " >&6; } 10841if ${ac_cv_search_dlopen+:} false; then : 10842 $as_echo_n "(cached) " >&6 10843else 10844 ac_func_search_save_LIBS=$LIBS 10845cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10846/* end confdefs.h. */ 10847 10848/* Override any GCC internal prototype to avoid an error. 10849 Use char because int might match the return type of a GCC 10850 builtin and then its argument prototype would still apply. */ 10851#ifdef __cplusplus 10852extern "C" 10853#endif 10854char dlopen (); 10855int 10856main () 10857{ 10858return dlopen (); 10859 ; 10860 return 0; 10861} 10862_ACEOF 10863for ac_lib in '' dl; do 10864 if test -z "$ac_lib"; then 10865 ac_res="none required" 10866 else 10867 ac_res=-l$ac_lib 10868 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10869 fi 10870 if ac_fn_c_try_link "$LINENO"; then : 10871 ac_cv_search_dlopen=$ac_res 10872fi 10873rm -f core conftest.err conftest.$ac_objext \ 10874 conftest$ac_exeext 10875 if ${ac_cv_search_dlopen+:} false; then : 10876 break 10877fi 10878done 10879if ${ac_cv_search_dlopen+:} false; then : 10880 10881else 10882 ac_cv_search_dlopen=no 10883fi 10884rm conftest.$ac_ext 10885LIBS=$ac_func_search_save_LIBS 10886fi 10887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 10888$as_echo "$ac_cv_search_dlopen" >&6; } 10889ac_res=$ac_cv_search_dlopen 10890if test "$ac_res" != no; then : 10891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10892 10893$as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h 10894 10895 10896fi 10897 10898fi 10899 10900# IRIX has a const char return value for gai_strerror() 10901for ac_func in gai_strerror 10902do : 10903 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" 10904if test "x$ac_cv_func_gai_strerror" = xyes; then : 10905 cat >>confdefs.h <<_ACEOF 10906#define HAVE_GAI_STRERROR 1 10907_ACEOF 10908 10909 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h 10910 10911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10912/* end confdefs.h. */ 10913 10914#include <sys/types.h> 10915#include <sys/socket.h> 10916#include <netdb.h> 10917 10918const char *gai_strerror(int); 10919 10920int 10921main () 10922{ 10923 10924 char *str; 10925 str = gai_strerror(0); 10926 10927 ; 10928 return 0; 10929} 10930_ACEOF 10931if ac_fn_c_try_compile "$LINENO"; then : 10932 10933 10934$as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h 10935 10936fi 10937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10938fi 10939done 10940 10941 10942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 10943$as_echo_n "checking for library containing nanosleep... " >&6; } 10944if ${ac_cv_search_nanosleep+:} false; then : 10945 $as_echo_n "(cached) " >&6 10946else 10947 ac_func_search_save_LIBS=$LIBS 10948cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10949/* end confdefs.h. */ 10950 10951/* Override any GCC internal prototype to avoid an error. 10952 Use char because int might match the return type of a GCC 10953 builtin and then its argument prototype would still apply. */ 10954#ifdef __cplusplus 10955extern "C" 10956#endif 10957char nanosleep (); 10958int 10959main () 10960{ 10961return nanosleep (); 10962 ; 10963 return 0; 10964} 10965_ACEOF 10966for ac_lib in '' rt posix4; do 10967 if test -z "$ac_lib"; then 10968 ac_res="none required" 10969 else 10970 ac_res=-l$ac_lib 10971 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10972 fi 10973 if ac_fn_c_try_link "$LINENO"; then : 10974 ac_cv_search_nanosleep=$ac_res 10975fi 10976rm -f core conftest.err conftest.$ac_objext \ 10977 conftest$ac_exeext 10978 if ${ac_cv_search_nanosleep+:} false; then : 10979 break 10980fi 10981done 10982if ${ac_cv_search_nanosleep+:} false; then : 10983 10984else 10985 ac_cv_search_nanosleep=no 10986fi 10987rm conftest.$ac_ext 10988LIBS=$ac_func_search_save_LIBS 10989fi 10990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 10991$as_echo "$ac_cv_search_nanosleep" >&6; } 10992ac_res=$ac_cv_search_nanosleep 10993if test "$ac_res" != no; then : 10994 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10995 10996$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h 10997 10998fi 10999 11000 11001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 11002$as_echo_n "checking for library containing clock_gettime... " >&6; } 11003if ${ac_cv_search_clock_gettime+:} false; then : 11004 $as_echo_n "(cached) " >&6 11005else 11006 ac_func_search_save_LIBS=$LIBS 11007cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11008/* end confdefs.h. */ 11009 11010/* Override any GCC internal prototype to avoid an error. 11011 Use char because int might match the return type of a GCC 11012 builtin and then its argument prototype would still apply. */ 11013#ifdef __cplusplus 11014extern "C" 11015#endif 11016char clock_gettime (); 11017int 11018main () 11019{ 11020return clock_gettime (); 11021 ; 11022 return 0; 11023} 11024_ACEOF 11025for ac_lib in '' rt; do 11026 if test -z "$ac_lib"; then 11027 ac_res="none required" 11028 else 11029 ac_res=-l$ac_lib 11030 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11031 fi 11032 if ac_fn_c_try_link "$LINENO"; then : 11033 ac_cv_search_clock_gettime=$ac_res 11034fi 11035rm -f core conftest.err conftest.$ac_objext \ 11036 conftest$ac_exeext 11037 if ${ac_cv_search_clock_gettime+:} false; then : 11038 break 11039fi 11040done 11041if ${ac_cv_search_clock_gettime+:} false; then : 11042 11043else 11044 ac_cv_search_clock_gettime=no 11045fi 11046rm conftest.$ac_ext 11047LIBS=$ac_func_search_save_LIBS 11048fi 11049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 11050$as_echo "$ac_cv_search_clock_gettime" >&6; } 11051ac_res=$ac_cv_search_clock_gettime 11052if test "$ac_res" != no; then : 11053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11054 11055$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 11056 11057fi 11058 11059 11060ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default" 11061if test "x$ac_cv_have_decl_getrusage" = xyes; then : 11062 for ac_func in getrusage 11063do : 11064 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" 11065if test "x$ac_cv_func_getrusage" = xyes; then : 11066 cat >>confdefs.h <<_ACEOF 11067#define HAVE_GETRUSAGE 1 11068_ACEOF 11069 11070fi 11071done 11072 11073fi 11074 11075ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" " 11076#ifdef HAVE_STRING_H 11077# include <string.h> 11078#endif 11079 11080" 11081if test "x$ac_cv_have_decl_strsep" = xyes; then : 11082 for ac_func in strsep 11083do : 11084 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" 11085if test "x$ac_cv_func_strsep" = xyes; then : 11086 cat >>confdefs.h <<_ACEOF 11087#define HAVE_STRSEP 1 11088_ACEOF 11089 11090fi 11091done 11092 11093fi 11094 11095 11096ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h> 11097 11098" 11099if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then : 11100 $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h 11101 11102else 11103 for ac_func in tcsendbreak 11104do : 11105 ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak" 11106if test "x$ac_cv_func_tcsendbreak" = xyes; then : 11107 cat >>confdefs.h <<_ACEOF 11108#define HAVE_TCSENDBREAK 1 11109_ACEOF 11110 11111fi 11112done 11113 11114fi 11115 11116 11117ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h> 11118" 11119if test "x$ac_cv_have_decl_h_errno" = xyes; then : 11120 ac_have_decl=1 11121else 11122 ac_have_decl=0 11123fi 11124 11125cat >>confdefs.h <<_ACEOF 11126#define HAVE_DECL_H_ERRNO $ac_have_decl 11127_ACEOF 11128 11129 11130ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" " 11131#include <sys/types.h> 11132#include <sys/socket.h> 11133 11134" 11135if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then : 11136 ac_have_decl=1 11137else 11138 ac_have_decl=0 11139fi 11140 11141cat >>confdefs.h <<_ACEOF 11142#define HAVE_DECL_SHUT_RD $ac_have_decl 11143_ACEOF 11144 11145 11146ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" " 11147#include <sys/types.h> 11148#ifdef HAVE_SYS_STAT_H 11149# include <sys/stat.h> 11150#endif 11151#ifdef HAVE_FCNTL_H 11152# include <fcntl.h> 11153#endif 11154 11155" 11156if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then : 11157 ac_have_decl=1 11158else 11159 ac_have_decl=0 11160fi 11161 11162cat >>confdefs.h <<_ACEOF 11163#define HAVE_DECL_O_NONBLOCK $ac_have_decl 11164_ACEOF 11165 11166 11167ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" " 11168#include <sys/types.h> 11169#include <sys/uio.h> 11170#include <unistd.h> 11171 11172" 11173if test "x$ac_cv_have_decl_writev" = xyes; then : 11174 ac_have_decl=1 11175else 11176 ac_have_decl=0 11177fi 11178 11179cat >>confdefs.h <<_ACEOF 11180#define HAVE_DECL_WRITEV $ac_have_decl 11181_ACEOF 11182 11183 11184ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" " 11185#include <sys/param.h> 11186 11187" 11188if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then : 11189 ac_have_decl=1 11190else 11191 ac_have_decl=0 11192fi 11193 11194cat >>confdefs.h <<_ACEOF 11195#define HAVE_DECL_MAXSYMLINKS $ac_have_decl 11196_ACEOF 11197 11198 11199ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" " 11200#include <stddef.h> 11201 11202" 11203if test "x$ac_cv_have_decl_offsetof" = xyes; then : 11204 ac_have_decl=1 11205else 11206 ac_have_decl=0 11207fi 11208 11209cat >>confdefs.h <<_ACEOF 11210#define HAVE_DECL_OFFSETOF $ac_have_decl 11211_ACEOF 11212 11213 11214# extra bits for select(2) 11215ac_fn_c_check_decl "$LINENO" "howmany" "ac_cv_have_decl_howmany" " 11216#include <sys/param.h> 11217#include <sys/types.h> 11218#ifdef HAVE_SYS_SYSMACROS_H 11219#include <sys/sysmacros.h> 11220#endif 11221#ifdef HAVE_SYS_SELECT_H 11222#include <sys/select.h> 11223#endif 11224#ifdef HAVE_SYS_TIME_H 11225#include <sys/time.h> 11226#endif 11227#ifdef HAVE_UNISTD_H 11228#include <unistd.h> 11229#endif 11230 11231" 11232if test "x$ac_cv_have_decl_howmany" = xyes; then : 11233 ac_have_decl=1 11234else 11235 ac_have_decl=0 11236fi 11237 11238cat >>confdefs.h <<_ACEOF 11239#define HAVE_DECL_HOWMANY $ac_have_decl 11240_ACEOF 11241ac_fn_c_check_decl "$LINENO" "NFDBITS" "ac_cv_have_decl_NFDBITS" " 11242#include <sys/param.h> 11243#include <sys/types.h> 11244#ifdef HAVE_SYS_SYSMACROS_H 11245#include <sys/sysmacros.h> 11246#endif 11247#ifdef HAVE_SYS_SELECT_H 11248#include <sys/select.h> 11249#endif 11250#ifdef HAVE_SYS_TIME_H 11251#include <sys/time.h> 11252#endif 11253#ifdef HAVE_UNISTD_H 11254#include <unistd.h> 11255#endif 11256 11257" 11258if test "x$ac_cv_have_decl_NFDBITS" = xyes; then : 11259 ac_have_decl=1 11260else 11261 ac_have_decl=0 11262fi 11263 11264cat >>confdefs.h <<_ACEOF 11265#define HAVE_DECL_NFDBITS $ac_have_decl 11266_ACEOF 11267 11268ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" " 11269#include <sys/param.h> 11270#include <sys/types.h> 11271#ifdef HAVE_SYS_SELECT_H 11272#include <sys/select.h> 11273#endif 11274#ifdef HAVE_SYS_TIME_H 11275#include <sys/time.h> 11276#endif 11277#ifdef HAVE_UNISTD_H 11278#include <unistd.h> 11279#endif 11280 11281" 11282if test "x$ac_cv_type_fd_mask" = xyes; then : 11283 11284cat >>confdefs.h <<_ACEOF 11285#define HAVE_FD_MASK 1 11286_ACEOF 11287 11288 11289fi 11290 11291 11292for ac_func in setresuid 11293do : 11294 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" 11295if test "x$ac_cv_func_setresuid" = xyes; then : 11296 cat >>confdefs.h <<_ACEOF 11297#define HAVE_SETRESUID 1 11298_ACEOF 11299 11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5 11301$as_echo_n "checking if setresuid seems to work... " >&6; } 11302 if test "$cross_compiling" = yes; then : 11303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5 11304$as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} 11305 11306else 11307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11308/* end confdefs.h. */ 11309 11310#include <stdlib.h> 11311#include <errno.h> 11312 11313int 11314main () 11315{ 11316 11317 errno=0; 11318 setresuid(0,0,0); 11319 if (errno==ENOSYS) 11320 exit(1); 11321 else 11322 exit(0); 11323 11324 ; 11325 return 0; 11326} 11327_ACEOF 11328if ac_fn_c_try_run "$LINENO"; then : 11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11330$as_echo "yes" >&6; } 11331else 11332 11333$as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h 11334 11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5 11336$as_echo "not implemented" >&6; } 11337fi 11338rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11339 conftest.$ac_objext conftest.beam conftest.$ac_ext 11340fi 11341 11342 11343fi 11344done 11345 11346 11347for ac_func in setresgid 11348do : 11349 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" 11350if test "x$ac_cv_func_setresgid" = xyes; then : 11351 cat >>confdefs.h <<_ACEOF 11352#define HAVE_SETRESGID 1 11353_ACEOF 11354 11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5 11356$as_echo_n "checking if setresgid seems to work... " >&6; } 11357 if test "$cross_compiling" = yes; then : 11358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5 11359$as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} 11360 11361else 11362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11363/* end confdefs.h. */ 11364 11365#include <stdlib.h> 11366#include <errno.h> 11367 11368int 11369main () 11370{ 11371 11372 errno=0; 11373 setresgid(0,0,0); 11374 if (errno==ENOSYS) 11375 exit(1); 11376 else 11377 exit(0); 11378 11379 ; 11380 return 0; 11381} 11382_ACEOF 11383if ac_fn_c_try_run "$LINENO"; then : 11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11385$as_echo "yes" >&6; } 11386else 11387 11388$as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h 11389 11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5 11391$as_echo "not implemented" >&6; } 11392fi 11393rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11394 conftest.$ac_objext conftest.beam conftest.$ac_ext 11395fi 11396 11397 11398fi 11399done 11400 11401 11402for ac_func in realpath 11403do : 11404 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath" 11405if test "x$ac_cv_func_realpath" = xyes; then : 11406 cat >>confdefs.h <<_ACEOF 11407#define HAVE_REALPATH 1 11408_ACEOF 11409 11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if realpath works with non-existent files" >&5 11411$as_echo_n "checking if realpath works with non-existent files... " >&6; } 11412 if test "$cross_compiling" = yes; then : 11413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming working" >&5 11414$as_echo "$as_me: WARNING: cross compiling: assuming working" >&2;} 11415 11416else 11417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11418/* end confdefs.h. */ 11419 11420#include <limits.h> 11421#include <stdlib.h> 11422#include <errno.h> 11423 11424int 11425main () 11426{ 11427 11428 char buf[PATH_MAX]; 11429 if (realpath("/opensshnonexistentfilename1234", buf) == NULL) 11430 if (errno == ENOENT) 11431 exit(1); 11432 exit(0); 11433 11434 ; 11435 return 0; 11436} 11437_ACEOF 11438if ac_fn_c_try_run "$LINENO"; then : 11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11440$as_echo "yes" >&6; } 11441else 11442 11443$as_echo "#define BROKEN_REALPATH 1" >>confdefs.h 11444 11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11446$as_echo "no" >&6; } 11447fi 11448rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11449 conftest.$ac_objext conftest.beam conftest.$ac_ext 11450fi 11451 11452 11453fi 11454done 11455 11456 11457for ac_func in gettimeofday time 11458do : 11459 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11460ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11461if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11462 cat >>confdefs.h <<_ACEOF 11463#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11464_ACEOF 11465 11466fi 11467done 11468 11469for ac_func in endutent getutent getutid getutline pututline setutent 11470do : 11471 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11472ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11473if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11474 cat >>confdefs.h <<_ACEOF 11475#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11476_ACEOF 11477 11478fi 11479done 11480 11481for ac_func in utmpname 11482do : 11483 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname" 11484if test "x$ac_cv_func_utmpname" = xyes; then : 11485 cat >>confdefs.h <<_ACEOF 11486#define HAVE_UTMPNAME 1 11487_ACEOF 11488 11489fi 11490done 11491 11492for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline 11493do : 11494 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11495ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11496if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11497 cat >>confdefs.h <<_ACEOF 11498#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11499_ACEOF 11500 11501fi 11502done 11503 11504for ac_func in setutxdb setutxent utmpxname 11505do : 11506 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11507ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11508if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11509 cat >>confdefs.h <<_ACEOF 11510#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11511_ACEOF 11512 11513fi 11514done 11515 11516for ac_func in getlastlogxbyname 11517do : 11518 ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname" 11519if test "x$ac_cv_func_getlastlogxbyname" = xyes; then : 11520 cat >>confdefs.h <<_ACEOF 11521#define HAVE_GETLASTLOGXBYNAME 1 11522_ACEOF 11523 11524fi 11525done 11526 11527 11528ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 11529if test "x$ac_cv_func_daemon" = xyes; then : 11530 11531$as_echo "#define HAVE_DAEMON 1" >>confdefs.h 11532 11533else 11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5 11535$as_echo_n "checking for daemon in -lbsd... " >&6; } 11536if ${ac_cv_lib_bsd_daemon+:} false; then : 11537 $as_echo_n "(cached) " >&6 11538else 11539 ac_check_lib_save_LIBS=$LIBS 11540LIBS="-lbsd $LIBS" 11541cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11542/* end confdefs.h. */ 11543 11544/* Override any GCC internal prototype to avoid an error. 11545 Use char because int might match the return type of a GCC 11546 builtin and then its argument prototype would still apply. */ 11547#ifdef __cplusplus 11548extern "C" 11549#endif 11550char daemon (); 11551int 11552main () 11553{ 11554return daemon (); 11555 ; 11556 return 0; 11557} 11558_ACEOF 11559if ac_fn_c_try_link "$LINENO"; then : 11560 ac_cv_lib_bsd_daemon=yes 11561else 11562 ac_cv_lib_bsd_daemon=no 11563fi 11564rm -f core conftest.err conftest.$ac_objext \ 11565 conftest$ac_exeext conftest.$ac_ext 11566LIBS=$ac_check_lib_save_LIBS 11567fi 11568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5 11569$as_echo "$ac_cv_lib_bsd_daemon" >&6; } 11570if test "x$ac_cv_lib_bsd_daemon" = xyes; then : 11571 LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h 11572 11573fi 11574 11575 11576fi 11577 11578 11579ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 11580if test "x$ac_cv_func_getpagesize" = xyes; then : 11581 11582$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h 11583 11584else 11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5 11586$as_echo_n "checking for getpagesize in -lucb... " >&6; } 11587if ${ac_cv_lib_ucb_getpagesize+:} false; then : 11588 $as_echo_n "(cached) " >&6 11589else 11590 ac_check_lib_save_LIBS=$LIBS 11591LIBS="-lucb $LIBS" 11592cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11593/* end confdefs.h. */ 11594 11595/* Override any GCC internal prototype to avoid an error. 11596 Use char because int might match the return type of a GCC 11597 builtin and then its argument prototype would still apply. */ 11598#ifdef __cplusplus 11599extern "C" 11600#endif 11601char getpagesize (); 11602int 11603main () 11604{ 11605return getpagesize (); 11606 ; 11607 return 0; 11608} 11609_ACEOF 11610if ac_fn_c_try_link "$LINENO"; then : 11611 ac_cv_lib_ucb_getpagesize=yes 11612else 11613 ac_cv_lib_ucb_getpagesize=no 11614fi 11615rm -f core conftest.err conftest.$ac_objext \ 11616 conftest$ac_exeext conftest.$ac_ext 11617LIBS=$ac_check_lib_save_LIBS 11618fi 11619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5 11620$as_echo "$ac_cv_lib_ucb_getpagesize" >&6; } 11621if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then : 11622 LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h 11623 11624fi 11625 11626 11627fi 11628 11629 11630# Check for broken snprintf 11631if test "x$ac_cv_func_snprintf" = "xyes" ; then 11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5 11633$as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; } 11634 if test "$cross_compiling" = yes; then : 11635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 11636$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} 11637 11638else 11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11640/* end confdefs.h. */ 11641 #include <stdio.h> 11642int 11643main () 11644{ 11645 11646 char b[5]; 11647 snprintf(b,5,"123456789"); 11648 exit(b[4]!='\0'); 11649 11650 ; 11651 return 0; 11652} 11653_ACEOF 11654if ac_fn_c_try_run "$LINENO"; then : 11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11656$as_echo "yes" >&6; } 11657else 11658 11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11660$as_echo "no" >&6; } 11661 11662$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h 11663 11664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 11665$as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} 11666 11667fi 11668rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11669 conftest.$ac_objext conftest.beam conftest.$ac_ext 11670fi 11671 11672fi 11673 11674# We depend on vsnprintf returning the right thing on overflow: the 11675# number of characters it tried to create (as per SUSv3) 11676if test "x$ac_cv_func_vsnprintf" = "xyes" ; then 11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5 11678$as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; } 11679 if test "$cross_compiling" = yes; then : 11680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5 11681$as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;} 11682 11683else 11684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11685/* end confdefs.h. */ 11686 11687#include <sys/types.h> 11688#include <stdio.h> 11689#include <stdarg.h> 11690 11691int x_snprintf(char *str, size_t count, const char *fmt, ...) 11692{ 11693 size_t ret; 11694 va_list ap; 11695 11696 va_start(ap, fmt); 11697 ret = vsnprintf(str, count, fmt, ap); 11698 va_end(ap); 11699 return ret; 11700} 11701 11702int 11703main () 11704{ 11705 11706char x[1]; 11707if (x_snprintf(x, 1, "%s %d", "hello", 12345) != 11) 11708 return 1; 11709if (x_snprintf(NULL, 0, "%s %d", "hello", 12345) != 11) 11710 return 1; 11711return 0; 11712 11713 ; 11714 return 0; 11715} 11716_ACEOF 11717if ac_fn_c_try_run "$LINENO"; then : 11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11719$as_echo "yes" >&6; } 11720else 11721 11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11723$as_echo "no" >&6; } 11724 11725$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h 11726 11727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5 11728$as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;} 11729 11730fi 11731rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11732 conftest.$ac_objext conftest.beam conftest.$ac_ext 11733fi 11734 11735fi 11736 11737# On systems where [v]snprintf is broken, but is declared in stdio, 11738# check that the fmt argument is const char * or just char *. 11739# This is only useful for when BROKEN_SNPRINTF 11740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5 11741$as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; } 11742cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11743/* end confdefs.h. */ 11744 11745#include <stdio.h> 11746int snprintf(char *a, size_t b, const char *c, ...) { return 0; } 11747 11748int 11749main () 11750{ 11751 11752 snprintf(0, 0, 0); 11753 11754 ; 11755 return 0; 11756} 11757_ACEOF 11758if ac_fn_c_try_compile "$LINENO"; then : 11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11760$as_echo "yes" >&6; } 11761 11762$as_echo "#define SNPRINTF_CONST const" >>confdefs.h 11763 11764else 11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11766$as_echo "no" >&6; } 11767 $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h 11768 11769fi 11770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11771 11772# Check for missing getpeereid (or equiv) support 11773NO_PEERCHECK="" 11774if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then 11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5 11776$as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; } 11777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11778/* end confdefs.h. */ 11779 11780#include <sys/types.h> 11781#include <sys/socket.h> 11782int 11783main () 11784{ 11785int i = SO_PEERCRED; 11786 ; 11787 return 0; 11788} 11789_ACEOF 11790if ac_fn_c_try_compile "$LINENO"; then : 11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11792$as_echo "yes" >&6; } 11793 11794$as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h 11795 11796 11797else 11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11799$as_echo "no" >&6; } 11800 NO_PEERCHECK=1 11801 11802fi 11803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11804fi 11805 11806if test "x$ac_cv_func_mkdtemp" = "xyes" ; then 11807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5 11808$as_echo_n "checking for (overly) strict mkstemp... " >&6; } 11809if test "$cross_compiling" = yes; then : 11810 11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11812$as_echo "yes" >&6; } 11813 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h 11814 11815 11816 11817else 11818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11819/* end confdefs.h. */ 11820 11821#include <stdlib.h> 11822 11823int 11824main () 11825{ 11826 11827 char template[]="conftest.mkstemp-test"; 11828 if (mkstemp(template) == -1) 11829 exit(1); 11830 unlink(template); 11831 exit(0); 11832 11833 ; 11834 return 0; 11835} 11836_ACEOF 11837if ac_fn_c_try_run "$LINENO"; then : 11838 11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11840$as_echo "no" >&6; } 11841 11842else 11843 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11845$as_echo "yes" >&6; } 11846 11847$as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h 11848 11849 11850fi 11851rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11852 conftest.$ac_objext conftest.beam conftest.$ac_ext 11853fi 11854 11855fi 11856 11857if test ! -z "$check_for_openpty_ctty_bug"; then 11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5 11859$as_echo_n "checking if openpty correctly handles controlling tty... " >&6; } 11860 if test "$cross_compiling" = yes; then : 11861 11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 11863$as_echo "cross-compiling, assuming yes" >&6; } 11864 11865 11866else 11867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11868/* end confdefs.h. */ 11869 11870#include <stdio.h> 11871#include <sys/fcntl.h> 11872#include <sys/types.h> 11873#include <sys/wait.h> 11874 11875int 11876main () 11877{ 11878 11879 pid_t pid; 11880 int fd, ptyfd, ttyfd, status; 11881 11882 pid = fork(); 11883 if (pid < 0) { /* failed */ 11884 exit(1); 11885 } else if (pid > 0) { /* parent */ 11886 waitpid(pid, &status, 0); 11887 if (WIFEXITED(status)) 11888 exit(WEXITSTATUS(status)); 11889 else 11890 exit(2); 11891 } else { /* child */ 11892 close(0); close(1); close(2); 11893 setsid(); 11894 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); 11895 fd = open("/dev/tty", O_RDWR | O_NOCTTY); 11896 if (fd >= 0) 11897 exit(3); /* Acquired ctty: broken */ 11898 else 11899 exit(0); /* Did not acquire ctty: OK */ 11900 } 11901 11902 ; 11903 return 0; 11904} 11905_ACEOF 11906if ac_fn_c_try_run "$LINENO"; then : 11907 11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11909$as_echo "yes" >&6; } 11910 11911else 11912 11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11914$as_echo "no" >&6; } 11915 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h 11916 11917 11918fi 11919rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11920 conftest.$ac_objext conftest.beam conftest.$ac_ext 11921fi 11922 11923fi 11924 11925if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ 11926 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then 11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 11928$as_echo_n "checking if getaddrinfo seems to work... " >&6; } 11929 if test "$cross_compiling" = yes; then : 11930 11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 11932$as_echo "cross-compiling, assuming yes" >&6; } 11933 11934 11935else 11936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11937/* end confdefs.h. */ 11938 11939#include <stdio.h> 11940#include <sys/socket.h> 11941#include <netdb.h> 11942#include <errno.h> 11943#include <netinet/in.h> 11944 11945#define TEST_PORT "2222" 11946 11947int 11948main () 11949{ 11950 11951 int err, sock; 11952 struct addrinfo *gai_ai, *ai, hints; 11953 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; 11954 11955 memset(&hints, 0, sizeof(hints)); 11956 hints.ai_family = PF_UNSPEC; 11957 hints.ai_socktype = SOCK_STREAM; 11958 hints.ai_flags = AI_PASSIVE; 11959 11960 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); 11961 if (err != 0) { 11962 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); 11963 exit(1); 11964 } 11965 11966 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { 11967 if (ai->ai_family != AF_INET6) 11968 continue; 11969 11970 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, 11971 sizeof(ntop), strport, sizeof(strport), 11972 NI_NUMERICHOST|NI_NUMERICSERV); 11973 11974 if (err != 0) { 11975 if (err == EAI_SYSTEM) 11976 perror("getnameinfo EAI_SYSTEM"); 11977 else 11978 fprintf(stderr, "getnameinfo failed: %s\n", 11979 gai_strerror(err)); 11980 exit(2); 11981 } 11982 11983 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); 11984 if (sock < 0) 11985 perror("socket"); 11986 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { 11987 if (errno == EBADF) 11988 exit(3); 11989 } 11990 } 11991 exit(0); 11992 11993 ; 11994 return 0; 11995} 11996_ACEOF 11997if ac_fn_c_try_run "$LINENO"; then : 11998 11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12000$as_echo "yes" >&6; } 12001 12002else 12003 12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12005$as_echo "no" >&6; } 12006 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h 12007 12008 12009fi 12010rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12011 conftest.$ac_objext conftest.beam conftest.$ac_ext 12012fi 12013 12014fi 12015 12016if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ 12017 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then 12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 12019$as_echo_n "checking if getaddrinfo seems to work... " >&6; } 12020 if test "$cross_compiling" = yes; then : 12021 12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5 12023$as_echo "cross-compiling, assuming no" >&6; } 12024 12025 12026else 12027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12028/* end confdefs.h. */ 12029 12030#include <stdio.h> 12031#include <sys/socket.h> 12032#include <netdb.h> 12033#include <errno.h> 12034#include <netinet/in.h> 12035 12036#define TEST_PORT "2222" 12037 12038int 12039main () 12040{ 12041 12042 int err, sock; 12043 struct addrinfo *gai_ai, *ai, hints; 12044 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; 12045 12046 memset(&hints, 0, sizeof(hints)); 12047 hints.ai_family = PF_UNSPEC; 12048 hints.ai_socktype = SOCK_STREAM; 12049 hints.ai_flags = AI_PASSIVE; 12050 12051 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); 12052 if (err != 0) { 12053 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); 12054 exit(1); 12055 } 12056 12057 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { 12058 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) 12059 continue; 12060 12061 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, 12062 sizeof(ntop), strport, sizeof(strport), 12063 NI_NUMERICHOST|NI_NUMERICSERV); 12064 12065 if (ai->ai_family == AF_INET && err != 0) { 12066 perror("getnameinfo"); 12067 exit(2); 12068 } 12069 } 12070 exit(0); 12071 12072 ; 12073 return 0; 12074} 12075_ACEOF 12076if ac_fn_c_try_run "$LINENO"; then : 12077 12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12079$as_echo "yes" >&6; } 12080 12081$as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h 12082 12083 12084else 12085 12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12087$as_echo "no" >&6; } 12088 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h 12089 12090 12091fi 12092rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12093 conftest.$ac_objext conftest.beam conftest.$ac_ext 12094fi 12095 12096fi 12097 12098if test "x$ac_cv_func_getaddrinfo" = "xyes"; then 12099 ac_fn_c_check_decl "$LINENO" "AI_NUMERICSERV" "ac_cv_have_decl_AI_NUMERICSERV" "#include <sys/types.h> 12100 #include <sys/socket.h> 12101 #include <netdb.h> 12102" 12103if test "x$ac_cv_have_decl_AI_NUMERICSERV" = xyes; then : 12104 ac_have_decl=1 12105else 12106 ac_have_decl=0 12107fi 12108 12109cat >>confdefs.h <<_ACEOF 12110#define HAVE_DECL_AI_NUMERICSERV $ac_have_decl 12111_ACEOF 12112 12113fi 12114 12115if test "x$check_for_conflicting_getspnam" = "x1"; then 12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5 12117$as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; } 12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12119/* end confdefs.h. */ 12120 #include <shadow.h> 12121int 12122main () 12123{ 12124 exit(0); 12125 ; 12126 return 0; 12127} 12128_ACEOF 12129if ac_fn_c_try_compile "$LINENO"; then : 12130 12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12132$as_echo "no" >&6; } 12133 12134else 12135 12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12137$as_echo "yes" >&6; } 12138 12139$as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h 12140 12141 12142 12143fi 12144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12145fi 12146 12147if test "x$ac_cv_func_strnvis" = "xyes"; then 12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnvis" >&5 12149$as_echo_n "checking for working strnvis... " >&6; } 12150 if test "$cross_compiling" = yes; then : 12151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming broken" >&5 12152$as_echo "$as_me: WARNING: cross compiling: assuming broken" >&2;} 12153 12154$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h 12155 12156 12157else 12158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12159/* end confdefs.h. */ 12160 12161#include <signal.h> 12162#include <stdlib.h> 12163#include <string.h> 12164#include <vis.h> 12165static void sighandler(int sig) { _exit(1); } 12166 12167int 12168main () 12169{ 12170 12171 char dst[16]; 12172 12173 signal(SIGSEGV, sighandler); 12174 if (strnvis(dst, "src", 4, 0) && strcmp(dst, "src") == 0) 12175 exit(0); 12176 exit(1) 12177 12178 ; 12179 return 0; 12180} 12181_ACEOF 12182if ac_fn_c_try_run "$LINENO"; then : 12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12184$as_echo "yes" >&6; } 12185else 12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12187$as_echo "no" >&6; } 12188 12189$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h 12190 12191fi 12192rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12193 conftest.$ac_objext conftest.beam conftest.$ac_ext 12194fi 12195 12196fi 12197 12198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 12199$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } 12200if ${ac_cv_func_getpgrp_void+:} false; then : 12201 $as_echo_n "(cached) " >&6 12202else 12203 # Use it with a single arg. 12204cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12205/* end confdefs.h. */ 12206$ac_includes_default 12207int 12208main () 12209{ 12210getpgrp (0); 12211 ; 12212 return 0; 12213} 12214_ACEOF 12215if ac_fn_c_try_compile "$LINENO"; then : 12216 ac_cv_func_getpgrp_void=no 12217else 12218 ac_cv_func_getpgrp_void=yes 12219fi 12220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12221 12222fi 12223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 12224$as_echo "$ac_cv_func_getpgrp_void" >&6; } 12225if test $ac_cv_func_getpgrp_void = yes; then 12226 12227$as_echo "#define GETPGRP_VOID 1" >>confdefs.h 12228 12229fi 12230 12231 12232# Search for OpenSSL 12233saved_CPPFLAGS="$CPPFLAGS" 12234saved_LDFLAGS="$LDFLAGS" 12235 12236# Check whether --with-ssl-dir was given. 12237if test "${with_ssl_dir+set}" = set; then : 12238 withval=$with_ssl_dir; 12239 if test "x$openssl" = "xno" ; then 12240 as_fn_error $? "cannot use --with-ssl-dir when OpenSSL disabled" "$LINENO" 5 12241 fi 12242 if test "x$withval" != "xno" ; then 12243 case "$withval" in 12244 # Relative paths 12245 ./*|../*) withval="`pwd`/$withval" 12246 esac 12247 if test -d "$withval/lib"; then 12248 if test -n "${need_dash_r}"; then 12249 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" 12250 else 12251 LDFLAGS="-L${withval}/lib ${LDFLAGS}" 12252 fi 12253 elif test -d "$withval/lib64"; then 12254 if test -n "${need_dash_r}"; then 12255 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}" 12256 else 12257 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}" 12258 fi 12259 else 12260 if test -n "${need_dash_r}"; then 12261 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" 12262 else 12263 LDFLAGS="-L${withval} ${LDFLAGS}" 12264 fi 12265 fi 12266 if test -d "$withval/include"; then 12267 CPPFLAGS="-I${withval}/include ${CPPFLAGS}" 12268 else 12269 CPPFLAGS="-I${withval} ${CPPFLAGS}" 12270 fi 12271 fi 12272 12273 12274fi 12275 12276 12277 12278# Check whether --with-openssl-header-check was given. 12279if test "${with_openssl_header_check+set}" = set; then : 12280 withval=$with_openssl_header_check; 12281 if test "x$withval" = "xno" ; then 12282 openssl_check_nonfatal=1 12283 fi 12284 12285 12286fi 12287 12288 12289openssl_engine=no 12290 12291# Check whether --with-ssl-engine was given. 12292if test "${with_ssl_engine+set}" = set; then : 12293 withval=$with_ssl_engine; 12294 if test "x$withval" != "xno" ; then 12295 if test "x$openssl" = "xno" ; then 12296 as_fn_error $? "cannot use --with-ssl-engine when OpenSSL disabled" "$LINENO" 5 12297 fi 12298 openssl_engine=yes 12299 fi 12300 12301 12302fi 12303 12304 12305if test "x$openssl" = "xyes" ; then 12306 LIBS="-lcrypto $LIBS" 12307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12308/* end confdefs.h. */ 12309 12310/* Override any GCC internal prototype to avoid an error. 12311 Use char because int might match the return type of a GCC 12312 builtin and then its argument prototype would still apply. */ 12313#ifdef __cplusplus 12314extern "C" 12315#endif 12316char RAND_add (); 12317int 12318main () 12319{ 12320return RAND_add (); 12321 ; 12322 return 0; 12323} 12324_ACEOF 12325if ac_fn_c_try_link "$LINENO"; then : 12326 12327$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h 12328 12329else 12330 12331 if test -n "${need_dash_r}"; then 12332 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" 12333 else 12334 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" 12335 fi 12336 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" 12337 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default" 12338if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then : 12339 12340else 12341 as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5 12342fi 12343 12344 12345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12346/* end confdefs.h. */ 12347 12348/* Override any GCC internal prototype to avoid an error. 12349 Use char because int might match the return type of a GCC 12350 builtin and then its argument prototype would still apply. */ 12351#ifdef __cplusplus 12352extern "C" 12353#endif 12354char RAND_add (); 12355int 12356main () 12357{ 12358return RAND_add (); 12359 ; 12360 return 0; 12361} 12362_ACEOF 12363if ac_fn_c_try_link "$LINENO"; then : 12364 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h 12365 12366else 12367 12368 as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5 12369 12370 12371fi 12372rm -f core conftest.err conftest.$ac_objext \ 12373 conftest$ac_exeext conftest.$ac_ext 12374 12375 12376fi 12377rm -f core conftest.err conftest.$ac_objext \ 12378 conftest$ac_exeext conftest.$ac_ext 12379 12380 # Determine OpenSSL header version 12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5 12382$as_echo_n "checking OpenSSL header version... " >&6; } 12383 if test "$cross_compiling" = yes; then : 12384 12385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 12386$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} 12387 12388 12389else 12390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12391/* end confdefs.h. */ 12392 12393 #include <stdlib.h> 12394 #include <stdio.h> 12395 #include <string.h> 12396 #include <openssl/opensslv.h> 12397 #define DATA "conftest.sslincver" 12398 12399int 12400main () 12401{ 12402 12403 FILE *fd; 12404 int rc; 12405 12406 fd = fopen(DATA,"w"); 12407 if(fd == NULL) 12408 exit(1); 12409 12410 if ((rc = fprintf(fd, "%08lx (%s)\n", 12411 (unsigned long)OPENSSL_VERSION_NUMBER, 12412 OPENSSL_VERSION_TEXT)) < 0) 12413 exit(1); 12414 12415 exit(0); 12416 12417 ; 12418 return 0; 12419} 12420_ACEOF 12421if ac_fn_c_try_run "$LINENO"; then : 12422 12423 ssl_header_ver=`cat conftest.sslincver` 12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5 12425$as_echo "$ssl_header_ver" >&6; } 12426 12427else 12428 12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12430$as_echo "not found" >&6; } 12431 as_fn_error $? "OpenSSL version header not found." "$LINENO" 5 12432 12433fi 12434rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12435 conftest.$ac_objext conftest.beam conftest.$ac_ext 12436fi 12437 12438 12439 # Determine OpenSSL library version 12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5 12441$as_echo_n "checking OpenSSL library version... " >&6; } 12442 if test "$cross_compiling" = yes; then : 12443 12444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 12445$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} 12446 12447 12448else 12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12450/* end confdefs.h. */ 12451 12452 #include <stdio.h> 12453 #include <string.h> 12454 #include <openssl/opensslv.h> 12455 #include <openssl/crypto.h> 12456 #define DATA "conftest.ssllibver" 12457 12458int 12459main () 12460{ 12461 12462 FILE *fd; 12463 int rc; 12464 12465 fd = fopen(DATA,"w"); 12466 if(fd == NULL) 12467 exit(1); 12468 12469 if ((rc = fprintf(fd, "%08lx (%s)\n", (unsigned long)SSLeay(), 12470 SSLeay_version(SSLEAY_VERSION))) < 0) 12471 exit(1); 12472 12473 exit(0); 12474 12475 ; 12476 return 0; 12477} 12478_ACEOF 12479if ac_fn_c_try_run "$LINENO"; then : 12480 12481 ssl_library_ver=`cat conftest.ssllibver` 12482 # Check version is supported. 12483 case "$ssl_library_ver" in 12484 10000*|0*) 12485 as_fn_error $? "OpenSSL >= 1.0.1 required (have \"$ssl_library_ver\")" "$LINENO" 5 12486 ;; 12487 *) ;; 12488 esac 12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5 12490$as_echo "$ssl_library_ver" >&6; } 12491 12492else 12493 12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12495$as_echo "not found" >&6; } 12496 as_fn_error $? "OpenSSL library not found." "$LINENO" 5 12497 12498fi 12499rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12500 conftest.$ac_objext conftest.beam conftest.$ac_ext 12501fi 12502 12503 12504 # Sanity check OpenSSL headers 12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5 12506$as_echo_n "checking whether OpenSSL's headers match the library... " >&6; } 12507 if test "$cross_compiling" = yes; then : 12508 12509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 12510$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} 12511 12512 12513else 12514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12515/* end confdefs.h. */ 12516 12517 #include <string.h> 12518 #include <openssl/opensslv.h> 12519 #include <openssl/crypto.h> 12520 12521int 12522main () 12523{ 12524 12525 exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); 12526 12527 ; 12528 return 0; 12529} 12530_ACEOF 12531if ac_fn_c_try_run "$LINENO"; then : 12532 12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12534$as_echo "yes" >&6; } 12535 12536else 12537 12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12539$as_echo "no" >&6; } 12540 if test "x$openssl_check_nonfatal" = "x"; then 12541 as_fn_error $? "Your OpenSSL headers do not match your 12542 library. Check config.log for details. 12543 If you are sure your installation is consistent, you can disable the check 12544 by running \"./configure --without-openssl-header-check\". 12545 Also see contrib/findssl.sh for help identifying header/library mismatches. 12546 " "$LINENO" 5 12547 else 12548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your 12549 library. Check config.log for details. 12550 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 12551$as_echo "$as_me: WARNING: Your OpenSSL headers do not match your 12552 library. Check config.log for details. 12553 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} 12554 fi 12555 12556fi 12557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12558 conftest.$ac_objext conftest.beam conftest.$ac_ext 12559fi 12560 12561 12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5 12563$as_echo_n "checking if programs using OpenSSL functions will link... " >&6; } 12564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12565/* end confdefs.h. */ 12566 #include <openssl/evp.h> 12567int 12568main () 12569{ 12570 SSLeay_add_all_algorithms(); 12571 ; 12572 return 0; 12573} 12574_ACEOF 12575if ac_fn_c_try_link "$LINENO"; then : 12576 12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12578$as_echo "yes" >&6; } 12579 12580else 12581 12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12583$as_echo "no" >&6; } 12584 saved_LIBS="$LIBS" 12585 LIBS="$LIBS -ldl" 12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5 12587$as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; } 12588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12589/* end confdefs.h. */ 12590 #include <openssl/evp.h> 12591int 12592main () 12593{ 12594 SSLeay_add_all_algorithms(); 12595 ; 12596 return 0; 12597} 12598_ACEOF 12599if ac_fn_c_try_link "$LINENO"; then : 12600 12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12602$as_echo "yes" >&6; } 12603 12604else 12605 12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12607$as_echo "no" >&6; } 12608 LIBS="$saved_LIBS" 12609 12610 12611fi 12612rm -f core conftest.err conftest.$ac_objext \ 12613 conftest$ac_exeext conftest.$ac_ext 12614 12615 12616fi 12617rm -f core conftest.err conftest.$ac_objext \ 12618 conftest$ac_exeext conftest.$ac_ext 12619 12620 for ac_func in \ 12621 BN_is_prime_ex \ 12622 DSA_generate_parameters_ex \ 12623 EVP_DigestInit_ex \ 12624 EVP_DigestFinal_ex \ 12625 EVP_MD_CTX_init \ 12626 EVP_MD_CTX_cleanup \ 12627 EVP_MD_CTX_copy_ex \ 12628 HMAC_CTX_init \ 12629 RSA_generate_key_ex \ 12630 RSA_get_default_method \ 12631 12632do : 12633 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12634ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12635if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12636 cat >>confdefs.h <<_ACEOF 12637#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12638_ACEOF 12639 12640fi 12641done 12642 12643 12644 if test "x$openssl_engine" = "xyes" ; then 12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5 12646$as_echo_n "checking for OpenSSL ENGINE support... " >&6; } 12647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12648/* end confdefs.h. */ 12649 12650 #include <openssl/engine.h> 12651 12652int 12653main () 12654{ 12655 12656 ENGINE_load_builtin_engines(); 12657 ENGINE_register_all_complete(); 12658 12659 ; 12660 return 0; 12661} 12662_ACEOF 12663if ac_fn_c_try_compile "$LINENO"; then : 12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12665$as_echo "yes" >&6; } 12666 12667$as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h 12668 12669 12670else 12671 as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5 12672 12673fi 12674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12675 fi 12676 12677 # Check for OpenSSL without EVP_aes_{192,256}_cbc 12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5 12679$as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; } 12680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12681/* end confdefs.h. */ 12682 12683 #include <string.h> 12684 #include <openssl/evp.h> 12685 12686int 12687main () 12688{ 12689 12690 exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL); 12691 12692 ; 12693 return 0; 12694} 12695_ACEOF 12696if ac_fn_c_try_link "$LINENO"; then : 12697 12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12699$as_echo "no" >&6; } 12700 12701else 12702 12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12704$as_echo "yes" >&6; } 12705 12706$as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h 12707 12708 12709 12710fi 12711rm -f core conftest.err conftest.$ac_objext \ 12712 conftest$ac_exeext conftest.$ac_ext 12713 12714 # Check for OpenSSL with EVP_aes_*ctr 12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES CTR via EVP" >&5 12716$as_echo_n "checking whether OpenSSL has AES CTR via EVP... " >&6; } 12717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12718/* end confdefs.h. */ 12719 12720 #include <string.h> 12721 #include <openssl/evp.h> 12722 12723int 12724main () 12725{ 12726 12727 exit(EVP_aes_128_ctr() == NULL || 12728 EVP_aes_192_cbc() == NULL || 12729 EVP_aes_256_cbc() == NULL); 12730 12731 ; 12732 return 0; 12733} 12734_ACEOF 12735if ac_fn_c_try_link "$LINENO"; then : 12736 12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12738$as_echo "yes" >&6; } 12739 12740$as_echo "#define OPENSSL_HAVE_EVPCTR 1" >>confdefs.h 12741 12742 12743else 12744 12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12746$as_echo "no" >&6; } 12747 12748 12749fi 12750rm -f core conftest.err conftest.$ac_objext \ 12751 conftest$ac_exeext conftest.$ac_ext 12752 12753 # Check for OpenSSL with EVP_aes_*gcm 12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES GCM via EVP" >&5 12755$as_echo_n "checking whether OpenSSL has AES GCM via EVP... " >&6; } 12756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12757/* end confdefs.h. */ 12758 12759 #include <string.h> 12760 #include <openssl/evp.h> 12761 12762int 12763main () 12764{ 12765 12766 exit(EVP_aes_128_gcm() == NULL || 12767 EVP_aes_256_gcm() == NULL || 12768 EVP_CTRL_GCM_SET_IV_FIXED == 0 || 12769 EVP_CTRL_GCM_IV_GEN == 0 || 12770 EVP_CTRL_GCM_SET_TAG == 0 || 12771 EVP_CTRL_GCM_GET_TAG == 0 || 12772 EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0); 12773 12774 ; 12775 return 0; 12776} 12777_ACEOF 12778if ac_fn_c_try_link "$LINENO"; then : 12779 12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12781$as_echo "yes" >&6; } 12782 12783$as_echo "#define OPENSSL_HAVE_EVPGCM 1" >>confdefs.h 12784 12785 12786else 12787 12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12789$as_echo "no" >&6; } 12790 unsupported_algorithms="$unsupported_cipers \ 12791 aes128-gcm@openssh.com \ 12792 aes256-gcm@openssh.com" 12793 12794 12795fi 12796rm -f core conftest.err conftest.$ac_objext \ 12797 conftest$ac_exeext conftest.$ac_ext 12798 12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_ctrl" >&5 12800$as_echo_n "checking for library containing EVP_CIPHER_CTX_ctrl... " >&6; } 12801if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : 12802 $as_echo_n "(cached) " >&6 12803else 12804 ac_func_search_save_LIBS=$LIBS 12805cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12806/* end confdefs.h. */ 12807 12808/* Override any GCC internal prototype to avoid an error. 12809 Use char because int might match the return type of a GCC 12810 builtin and then its argument prototype would still apply. */ 12811#ifdef __cplusplus 12812extern "C" 12813#endif 12814char EVP_CIPHER_CTX_ctrl (); 12815int 12816main () 12817{ 12818return EVP_CIPHER_CTX_ctrl (); 12819 ; 12820 return 0; 12821} 12822_ACEOF 12823for ac_lib in '' crypto; do 12824 if test -z "$ac_lib"; then 12825 ac_res="none required" 12826 else 12827 ac_res=-l$ac_lib 12828 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12829 fi 12830 if ac_fn_c_try_link "$LINENO"; then : 12831 ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res 12832fi 12833rm -f core conftest.err conftest.$ac_objext \ 12834 conftest$ac_exeext 12835 if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : 12836 break 12837fi 12838done 12839if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : 12840 12841else 12842 ac_cv_search_EVP_CIPHER_CTX_ctrl=no 12843fi 12844rm conftest.$ac_ext 12845LIBS=$ac_func_search_save_LIBS 12846fi 12847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5 12848$as_echo "$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; } 12849ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl 12850if test "$ac_res" != no; then : 12851 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12852 12853$as_echo "#define HAVE_EVP_CIPHER_CTX_CTRL 1" >>confdefs.h 12854 12855fi 12856 12857 12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5 12859$as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; } 12860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12861/* end confdefs.h. */ 12862 12863 #include <string.h> 12864 #include <openssl/evp.h> 12865 12866int 12867main () 12868{ 12869 12870 if(EVP_DigestUpdate(NULL, NULL,0)) 12871 exit(0); 12872 12873 ; 12874 return 0; 12875} 12876_ACEOF 12877if ac_fn_c_try_link "$LINENO"; then : 12878 12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12880$as_echo "yes" >&6; } 12881 12882else 12883 12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12885$as_echo "no" >&6; } 12886 12887$as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h 12888 12889 12890 12891fi 12892rm -f core conftest.err conftest.$ac_objext \ 12893 conftest$ac_exeext conftest.$ac_ext 12894 12895 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, 12896 # because the system crypt() is more featureful. 12897 if test "x$check_for_libcrypt_before" = "x1"; then 12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 12899$as_echo_n "checking for crypt in -lcrypt... " >&6; } 12900if ${ac_cv_lib_crypt_crypt+:} false; then : 12901 $as_echo_n "(cached) " >&6 12902else 12903 ac_check_lib_save_LIBS=$LIBS 12904LIBS="-lcrypt $LIBS" 12905cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12906/* end confdefs.h. */ 12907 12908/* Override any GCC internal prototype to avoid an error. 12909 Use char because int might match the return type of a GCC 12910 builtin and then its argument prototype would still apply. */ 12911#ifdef __cplusplus 12912extern "C" 12913#endif 12914char crypt (); 12915int 12916main () 12917{ 12918return crypt (); 12919 ; 12920 return 0; 12921} 12922_ACEOF 12923if ac_fn_c_try_link "$LINENO"; then : 12924 ac_cv_lib_crypt_crypt=yes 12925else 12926 ac_cv_lib_crypt_crypt=no 12927fi 12928rm -f core conftest.err conftest.$ac_objext \ 12929 conftest$ac_exeext conftest.$ac_ext 12930LIBS=$ac_check_lib_save_LIBS 12931fi 12932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 12933$as_echo "$ac_cv_lib_crypt_crypt" >&6; } 12934if test "x$ac_cv_lib_crypt_crypt" = xyes; then : 12935 cat >>confdefs.h <<_ACEOF 12936#define HAVE_LIBCRYPT 1 12937_ACEOF 12938 12939 LIBS="-lcrypt $LIBS" 12940 12941fi 12942 12943 fi 12944 12945 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the 12946 # version in OpenSSL. 12947 if test "x$check_for_libcrypt_later" = "x1"; then 12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 12949$as_echo_n "checking for crypt in -lcrypt... " >&6; } 12950if ${ac_cv_lib_crypt_crypt+:} false; then : 12951 $as_echo_n "(cached) " >&6 12952else 12953 ac_check_lib_save_LIBS=$LIBS 12954LIBS="-lcrypt $LIBS" 12955cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12956/* end confdefs.h. */ 12957 12958/* Override any GCC internal prototype to avoid an error. 12959 Use char because int might match the return type of a GCC 12960 builtin and then its argument prototype would still apply. */ 12961#ifdef __cplusplus 12962extern "C" 12963#endif 12964char crypt (); 12965int 12966main () 12967{ 12968return crypt (); 12969 ; 12970 return 0; 12971} 12972_ACEOF 12973if ac_fn_c_try_link "$LINENO"; then : 12974 ac_cv_lib_crypt_crypt=yes 12975else 12976 ac_cv_lib_crypt_crypt=no 12977fi 12978rm -f core conftest.err conftest.$ac_objext \ 12979 conftest$ac_exeext conftest.$ac_ext 12980LIBS=$ac_check_lib_save_LIBS 12981fi 12982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 12983$as_echo "$ac_cv_lib_crypt_crypt" >&6; } 12984if test "x$ac_cv_lib_crypt_crypt" = xyes; then : 12985 LIBS="$LIBS -lcrypt" 12986fi 12987 12988 fi 12989 for ac_func in crypt DES_crypt 12990do : 12991 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12992ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12993if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12994 cat >>confdefs.h <<_ACEOF 12995#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12996_ACEOF 12997 12998fi 12999done 13000 13001 13002 # Search for SHA256 support in libc and/or OpenSSL 13003 for ac_func in SHA256_Update EVP_sha256 13004do : 13005 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13006ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13007if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13008 cat >>confdefs.h <<_ACEOF 13009#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13010_ACEOF 13011 13012else 13013 unsupported_algorithms="$unsupported_algorithms \ 13014 hmac-sha2-256 \ 13015 hmac-sha2-512 \ 13016 diffie-hellman-group-exchange-sha256 \ 13017 hmac-sha2-256-etm@openssh.com \ 13018 hmac-sha2-512-etm@openssh.com" 13019 13020 13021fi 13022done 13023 13024 # Search for RIPE-MD support in OpenSSL 13025 for ac_func in EVP_ripemd160 13026do : 13027 ac_fn_c_check_func "$LINENO" "EVP_ripemd160" "ac_cv_func_EVP_ripemd160" 13028if test "x$ac_cv_func_EVP_ripemd160" = xyes; then : 13029 cat >>confdefs.h <<_ACEOF 13030#define HAVE_EVP_RIPEMD160 1 13031_ACEOF 13032 13033else 13034 unsupported_algorithms="$unsupported_algorithms \ 13035 hmac-ripemd160 \ 13036 hmac-ripemd160@openssh.com \ 13037 hmac-ripemd160-etm@openssh.com" 13038 13039 13040fi 13041done 13042 13043 13044 # Check complete ECC support in OpenSSL 13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_X9_62_prime256v1" >&5 13046$as_echo_n "checking whether OpenSSL has NID_X9_62_prime256v1... " >&6; } 13047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13048/* end confdefs.h. */ 13049 13050 #include <openssl/ec.h> 13051 #include <openssl/ecdh.h> 13052 #include <openssl/ecdsa.h> 13053 #include <openssl/evp.h> 13054 #include <openssl/objects.h> 13055 #include <openssl/opensslv.h> 13056 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ 13057 # error "OpenSSL < 0.9.8g has unreliable ECC code" 13058 #endif 13059 13060int 13061main () 13062{ 13063 13064 EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); 13065 const EVP_MD *m = EVP_sha256(); /* We need this too */ 13066 13067 ; 13068 return 0; 13069} 13070_ACEOF 13071if ac_fn_c_try_link "$LINENO"; then : 13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13073$as_echo "yes" >&6; } 13074 enable_nistp256=1 13075else 13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13077$as_echo "no" >&6; } 13078 13079fi 13080rm -f core conftest.err conftest.$ac_objext \ 13081 conftest$ac_exeext conftest.$ac_ext 13082 13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp384r1" >&5 13084$as_echo_n "checking whether OpenSSL has NID_secp384r1... " >&6; } 13085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13086/* end confdefs.h. */ 13087 13088 #include <openssl/ec.h> 13089 #include <openssl/ecdh.h> 13090 #include <openssl/ecdsa.h> 13091 #include <openssl/evp.h> 13092 #include <openssl/objects.h> 13093 #include <openssl/opensslv.h> 13094 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ 13095 # error "OpenSSL < 0.9.8g has unreliable ECC code" 13096 #endif 13097 13098int 13099main () 13100{ 13101 13102 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1); 13103 const EVP_MD *m = EVP_sha384(); /* We need this too */ 13104 13105 ; 13106 return 0; 13107} 13108_ACEOF 13109if ac_fn_c_try_link "$LINENO"; then : 13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13111$as_echo "yes" >&6; } 13112 enable_nistp384=1 13113else 13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13115$as_echo "no" >&6; } 13116 13117fi 13118rm -f core conftest.err conftest.$ac_objext \ 13119 conftest$ac_exeext conftest.$ac_ext 13120 13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp521r1" >&5 13122$as_echo_n "checking whether OpenSSL has NID_secp521r1... " >&6; } 13123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13124/* end confdefs.h. */ 13125 13126 #include <openssl/ec.h> 13127 #include <openssl/ecdh.h> 13128 #include <openssl/ecdsa.h> 13129 #include <openssl/evp.h> 13130 #include <openssl/objects.h> 13131 #include <openssl/opensslv.h> 13132 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ 13133 # error "OpenSSL < 0.9.8g has unreliable ECC code" 13134 #endif 13135 13136int 13137main () 13138{ 13139 13140 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); 13141 const EVP_MD *m = EVP_sha512(); /* We need this too */ 13142 13143 ; 13144 return 0; 13145} 13146_ACEOF 13147if ac_fn_c_try_link "$LINENO"; then : 13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13149$as_echo "yes" >&6; } 13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL's NID_secp521r1 is functional" >&5 13151$as_echo_n "checking if OpenSSL's NID_secp521r1 is functional... " >&6; } 13152 if test "$cross_compiling" = yes; then : 13153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: assuming yes" >&5 13154$as_echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;} 13155 enable_nistp521=1 13156 13157else 13158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13159/* end confdefs.h. */ 13160 13161 #include <openssl/ec.h> 13162 #include <openssl/ecdh.h> 13163 #include <openssl/ecdsa.h> 13164 #include <openssl/evp.h> 13165 #include <openssl/objects.h> 13166 #include <openssl/opensslv.h> 13167 13168int 13169main () 13170{ 13171 13172 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); 13173 const EVP_MD *m = EVP_sha512(); /* We need this too */ 13174 exit(e == NULL || m == NULL); 13175 13176 ; 13177 return 0; 13178} 13179_ACEOF 13180if ac_fn_c_try_run "$LINENO"; then : 13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13182$as_echo "yes" >&6; } 13183 enable_nistp521=1 13184else 13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13186$as_echo "no" >&6; } 13187fi 13188rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13189 conftest.$ac_objext conftest.beam conftest.$ac_ext 13190fi 13191 13192else 13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13194$as_echo "no" >&6; } 13195 13196fi 13197rm -f core conftest.err conftest.$ac_objext \ 13198 conftest$ac_exeext conftest.$ac_ext 13199 13200 COMMENT_OUT_ECC="#no ecc#" 13201 TEST_SSH_ECC=no 13202 13203 if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \ 13204 test x$enable_nistp521 = x1; then 13205 13206$as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h 13207 13208 fi 13209 if test x$enable_nistp256 = x1; then 13210 13211$as_echo "#define OPENSSL_HAS_NISTP256 1" >>confdefs.h 13212 13213 TEST_SSH_ECC=yes 13214 COMMENT_OUT_ECC="" 13215 else 13216 unsupported_algorithms="$unsupported_algorithms \ 13217 ecdsa-sha2-nistp256 \ 13218 ecdh-sha2-nistp256 \ 13219 ecdsa-sha2-nistp256-cert-v01@openssh.com" 13220 fi 13221 if test x$enable_nistp384 = x1; then 13222 13223$as_echo "#define OPENSSL_HAS_NISTP384 1" >>confdefs.h 13224 13225 TEST_SSH_ECC=yes 13226 COMMENT_OUT_ECC="" 13227 else 13228 unsupported_algorithms="$unsupported_algorithms \ 13229 ecdsa-sha2-nistp384 \ 13230 ecdh-sha2-nistp384 \ 13231 ecdsa-sha2-nistp384-cert-v01@openssh.com" 13232 fi 13233 if test x$enable_nistp521 = x1; then 13234 13235$as_echo "#define OPENSSL_HAS_NISTP521 1" >>confdefs.h 13236 13237 TEST_SSH_ECC=yes 13238 COMMENT_OUT_ECC="" 13239 else 13240 unsupported_algorithms="$unsupported_algorithms \ 13241 ecdh-sha2-nistp521 \ 13242 ecdsa-sha2-nistp521 \ 13243 ecdsa-sha2-nistp521-cert-v01@openssh.com" 13244 fi 13245 13246 13247 13248else 13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 13250$as_echo_n "checking for crypt in -lcrypt... " >&6; } 13251if ${ac_cv_lib_crypt_crypt+:} false; then : 13252 $as_echo_n "(cached) " >&6 13253else 13254 ac_check_lib_save_LIBS=$LIBS 13255LIBS="-lcrypt $LIBS" 13256cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13257/* end confdefs.h. */ 13258 13259/* Override any GCC internal prototype to avoid an error. 13260 Use char because int might match the return type of a GCC 13261 builtin and then its argument prototype would still apply. */ 13262#ifdef __cplusplus 13263extern "C" 13264#endif 13265char crypt (); 13266int 13267main () 13268{ 13269return crypt (); 13270 ; 13271 return 0; 13272} 13273_ACEOF 13274if ac_fn_c_try_link "$LINENO"; then : 13275 ac_cv_lib_crypt_crypt=yes 13276else 13277 ac_cv_lib_crypt_crypt=no 13278fi 13279rm -f core conftest.err conftest.$ac_objext \ 13280 conftest$ac_exeext conftest.$ac_ext 13281LIBS=$ac_check_lib_save_LIBS 13282fi 13283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 13284$as_echo "$ac_cv_lib_crypt_crypt" >&6; } 13285if test "x$ac_cv_lib_crypt_crypt" = xyes; then : 13286 LIBS="$LIBS -lcrypt" 13287fi 13288 13289 for ac_func in crypt 13290do : 13291 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" 13292if test "x$ac_cv_func_crypt" = xyes; then : 13293 cat >>confdefs.h <<_ACEOF 13294#define HAVE_CRYPT 1 13295_ACEOF 13296 13297fi 13298done 13299 13300fi 13301 13302for ac_func in \ 13303 arc4random \ 13304 arc4random_buf \ 13305 arc4random_stir \ 13306 arc4random_uniform \ 13307 13308do : 13309 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13310ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13311if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13312 cat >>confdefs.h <<_ACEOF 13313#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13314_ACEOF 13315 13316fi 13317done 13318 13319 13320saved_LIBS="$LIBS" 13321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5 13322$as_echo_n "checking for ia_openinfo in -liaf... " >&6; } 13323if ${ac_cv_lib_iaf_ia_openinfo+:} false; then : 13324 $as_echo_n "(cached) " >&6 13325else 13326 ac_check_lib_save_LIBS=$LIBS 13327LIBS="-liaf $LIBS" 13328cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13329/* end confdefs.h. */ 13330 13331/* Override any GCC internal prototype to avoid an error. 13332 Use char because int might match the return type of a GCC 13333 builtin and then its argument prototype would still apply. */ 13334#ifdef __cplusplus 13335extern "C" 13336#endif 13337char ia_openinfo (); 13338int 13339main () 13340{ 13341return ia_openinfo (); 13342 ; 13343 return 0; 13344} 13345_ACEOF 13346if ac_fn_c_try_link "$LINENO"; then : 13347 ac_cv_lib_iaf_ia_openinfo=yes 13348else 13349 ac_cv_lib_iaf_ia_openinfo=no 13350fi 13351rm -f core conftest.err conftest.$ac_objext \ 13352 conftest$ac_exeext conftest.$ac_ext 13353LIBS=$ac_check_lib_save_LIBS 13354fi 13355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5 13356$as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; } 13357if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then : 13358 13359 LIBS="$LIBS -liaf" 13360 for ac_func in set_id 13361do : 13362 ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id" 13363if test "x$ac_cv_func_set_id" = xyes; then : 13364 cat >>confdefs.h <<_ACEOF 13365#define HAVE_SET_ID 1 13366_ACEOF 13367 SSHDLIBS="$SSHDLIBS -liaf" 13368 13369$as_echo "#define HAVE_LIBIAF 1" >>confdefs.h 13370 13371 13372fi 13373done 13374 13375 13376fi 13377 13378LIBS="$saved_LIBS" 13379 13380### Configure cryptographic random number support 13381 13382# Check wheter OpenSSL seeds itself 13383if test "x$openssl" = "xyes" ; then 13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5 13385$as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; } 13386 if test "$cross_compiling" = yes; then : 13387 13388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 13389$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} 13390 # This is safe, since we will fatal() at runtime if 13391 # OpenSSL is not seeded correctly. 13392 OPENSSL_SEEDS_ITSELF=yes 13393 13394 13395else 13396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13397/* end confdefs.h. */ 13398 13399 #include <string.h> 13400 #include <openssl/rand.h> 13401 13402int 13403main () 13404{ 13405 13406 exit(RAND_status() == 1 ? 0 : 1); 13407 13408 ; 13409 return 0; 13410} 13411_ACEOF 13412if ac_fn_c_try_run "$LINENO"; then : 13413 13414 OPENSSL_SEEDS_ITSELF=yes 13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13416$as_echo "yes" >&6; } 13417 13418else 13419 13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13421$as_echo "no" >&6; } 13422 13423fi 13424rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13425 conftest.$ac_objext conftest.beam conftest.$ac_ext 13426fi 13427 13428fi 13429 13430# PRNGD TCP socket 13431 13432# Check whether --with-prngd-port was given. 13433if test "${with_prngd_port+set}" = set; then : 13434 withval=$with_prngd_port; 13435 case "$withval" in 13436 no) 13437 withval="" 13438 ;; 13439 [0-9]*) 13440 ;; 13441 *) 13442 as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5 13443 ;; 13444 esac 13445 if test ! -z "$withval" ; then 13446 PRNGD_PORT="$withval" 13447 13448cat >>confdefs.h <<_ACEOF 13449#define PRNGD_PORT $PRNGD_PORT 13450_ACEOF 13451 13452 fi 13453 13454 13455fi 13456 13457 13458# PRNGD Unix domain socket 13459 13460# Check whether --with-prngd-socket was given. 13461if test "${with_prngd_socket+set}" = set; then : 13462 withval=$with_prngd_socket; 13463 case "$withval" in 13464 yes) 13465 withval="/var/run/egd-pool" 13466 ;; 13467 no) 13468 withval="" 13469 ;; 13470 /*) 13471 ;; 13472 *) 13473 as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5 13474 ;; 13475 esac 13476 13477 if test ! -z "$withval" ; then 13478 if test ! -z "$PRNGD_PORT" ; then 13479 as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5 13480 fi 13481 if test ! -r "$withval" ; then 13482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5 13483$as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;} 13484 fi 13485 PRNGD_SOCKET="$withval" 13486 13487cat >>confdefs.h <<_ACEOF 13488#define PRNGD_SOCKET "$PRNGD_SOCKET" 13489_ACEOF 13490 13491 fi 13492 13493else 13494 13495 # Check for existing socket only if we don't have a random device already 13496 if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then 13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5 13498$as_echo_n "checking for PRNGD/EGD socket... " >&6; } 13499 # Insert other locations here 13500 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do 13501 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then 13502 PRNGD_SOCKET="$sock" 13503 cat >>confdefs.h <<_ACEOF 13504#define PRNGD_SOCKET "$PRNGD_SOCKET" 13505_ACEOF 13506 13507 break; 13508 fi 13509 done 13510 if test ! -z "$PRNGD_SOCKET" ; then 13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5 13512$as_echo "$PRNGD_SOCKET" >&6; } 13513 else 13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13515$as_echo "not found" >&6; } 13516 fi 13517 fi 13518 13519 13520fi 13521 13522 13523# Which randomness source do we use? 13524if test ! -z "$PRNGD_PORT" ; then 13525 RAND_MSG="PRNGd port $PRNGD_PORT" 13526elif test ! -z "$PRNGD_SOCKET" ; then 13527 RAND_MSG="PRNGd socket $PRNGD_SOCKET" 13528elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then 13529 13530$as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h 13531 13532 RAND_MSG="OpenSSL internal ONLY" 13533elif test "x$openssl" = "xno" ; then 13534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&5 13535$as_echo "$as_me: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&2;} 13536else 13537 as_fn_error $? "OpenSSH has no source of random numbers. Please configure OpenSSL with an entropy source or re-run configure using one of the --with-prngd-port or --with-prngd-socket options" "$LINENO" 5 13538fi 13539 13540# Check for PAM libs 13541PAM_MSG="no" 13542 13543# Check whether --with-pam was given. 13544if test "${with_pam+set}" = set; then : 13545 withval=$with_pam; 13546 if test "x$withval" != "xno" ; then 13547 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ 13548 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then 13549 as_fn_error $? "PAM headers not found" "$LINENO" 5 13550 fi 13551 13552 saved_LIBS="$LIBS" 13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13554$as_echo_n "checking for dlopen in -ldl... " >&6; } 13555if ${ac_cv_lib_dl_dlopen+:} false; then : 13556 $as_echo_n "(cached) " >&6 13557else 13558 ac_check_lib_save_LIBS=$LIBS 13559LIBS="-ldl $LIBS" 13560cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13561/* end confdefs.h. */ 13562 13563/* Override any GCC internal prototype to avoid an error. 13564 Use char because int might match the return type of a GCC 13565 builtin and then its argument prototype would still apply. */ 13566#ifdef __cplusplus 13567extern "C" 13568#endif 13569char dlopen (); 13570int 13571main () 13572{ 13573return dlopen (); 13574 ; 13575 return 0; 13576} 13577_ACEOF 13578if ac_fn_c_try_link "$LINENO"; then : 13579 ac_cv_lib_dl_dlopen=yes 13580else 13581 ac_cv_lib_dl_dlopen=no 13582fi 13583rm -f core conftest.err conftest.$ac_objext \ 13584 conftest$ac_exeext conftest.$ac_ext 13585LIBS=$ac_check_lib_save_LIBS 13586fi 13587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13588$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13589if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13590 cat >>confdefs.h <<_ACEOF 13591#define HAVE_LIBDL 1 13592_ACEOF 13593 13594 LIBS="-ldl $LIBS" 13595 13596fi 13597 13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5 13599$as_echo_n "checking for pam_set_item in -lpam... " >&6; } 13600if ${ac_cv_lib_pam_pam_set_item+:} false; then : 13601 $as_echo_n "(cached) " >&6 13602else 13603 ac_check_lib_save_LIBS=$LIBS 13604LIBS="-lpam $LIBS" 13605cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13606/* end confdefs.h. */ 13607 13608/* Override any GCC internal prototype to avoid an error. 13609 Use char because int might match the return type of a GCC 13610 builtin and then its argument prototype would still apply. */ 13611#ifdef __cplusplus 13612extern "C" 13613#endif 13614char pam_set_item (); 13615int 13616main () 13617{ 13618return pam_set_item (); 13619 ; 13620 return 0; 13621} 13622_ACEOF 13623if ac_fn_c_try_link "$LINENO"; then : 13624 ac_cv_lib_pam_pam_set_item=yes 13625else 13626 ac_cv_lib_pam_pam_set_item=no 13627fi 13628rm -f core conftest.err conftest.$ac_objext \ 13629 conftest$ac_exeext conftest.$ac_ext 13630LIBS=$ac_check_lib_save_LIBS 13631fi 13632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5 13633$as_echo "$ac_cv_lib_pam_pam_set_item" >&6; } 13634if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then : 13635 cat >>confdefs.h <<_ACEOF 13636#define HAVE_LIBPAM 1 13637_ACEOF 13638 13639 LIBS="-lpam $LIBS" 13640 13641else 13642 as_fn_error $? "*** libpam missing" "$LINENO" 5 13643fi 13644 13645 for ac_func in pam_getenvlist 13646do : 13647 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist" 13648if test "x$ac_cv_func_pam_getenvlist" = xyes; then : 13649 cat >>confdefs.h <<_ACEOF 13650#define HAVE_PAM_GETENVLIST 1 13651_ACEOF 13652 13653fi 13654done 13655 13656 for ac_func in pam_putenv 13657do : 13658 ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv" 13659if test "x$ac_cv_func_pam_putenv" = xyes; then : 13660 cat >>confdefs.h <<_ACEOF 13661#define HAVE_PAM_PUTENV 1 13662_ACEOF 13663 13664fi 13665done 13666 13667 LIBS="$saved_LIBS" 13668 13669 PAM_MSG="yes" 13670 13671 SSHDLIBS="$SSHDLIBS -lpam" 13672 13673$as_echo "#define USE_PAM 1" >>confdefs.h 13674 13675 13676 if test $ac_cv_lib_dl_dlopen = yes; then 13677 case "$LIBS" in 13678 *-ldl*) 13679 # libdl already in LIBS 13680 ;; 13681 *) 13682 SSHDLIBS="$SSHDLIBS -ldl" 13683 ;; 13684 esac 13685 fi 13686 fi 13687 13688 13689fi 13690 13691 13692 13693# Check whether --with-pam-service was given. 13694if test "${with_pam_service+set}" = set; then : 13695 withval=$with_pam_service; 13696 if test "x$withval" != "xno" && \ 13697 test "x$withval" != "xyes" ; then 13698 13699cat >>confdefs.h <<_ACEOF 13700#define SSHD_PAM_SERVICE "$withval" 13701_ACEOF 13702 13703 fi 13704 13705 13706fi 13707 13708 13709# Check for older PAM 13710if test "x$PAM_MSG" = "xyes" ; then 13711 # Check PAM strerror arguments (old PAM) 13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5 13713$as_echo_n "checking whether pam_strerror takes only one argument... " >&6; } 13714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13715/* end confdefs.h. */ 13716 13717#include <stdlib.h> 13718#if defined(HAVE_SECURITY_PAM_APPL_H) 13719#include <security/pam_appl.h> 13720#elif defined (HAVE_PAM_PAM_APPL_H) 13721#include <pam/pam_appl.h> 13722#endif 13723 13724int 13725main () 13726{ 13727 13728(void)pam_strerror((pam_handle_t *)NULL, -1); 13729 13730 ; 13731 return 0; 13732} 13733_ACEOF 13734if ac_fn_c_try_compile "$LINENO"; then : 13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13736$as_echo "no" >&6; } 13737else 13738 13739 13740$as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h 13741 13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13743$as_echo "yes" >&6; } 13744 PAM_MSG="yes (old library)" 13745 13746 13747fi 13748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13749fi 13750 13751case "$host" in 13752*-*-cygwin*) 13753 SSH_PRIVSEP_USER=CYGWIN_SSH_PRIVSEP_USER 13754 ;; 13755*) 13756 SSH_PRIVSEP_USER=sshd 13757 ;; 13758esac 13759 13760# Check whether --with-privsep-user was given. 13761if test "${with_privsep_user+set}" = set; then : 13762 withval=$with_privsep_user; 13763 if test -n "$withval" && test "x$withval" != "xno" && \ 13764 test "x${withval}" != "xyes"; then 13765 SSH_PRIVSEP_USER=$withval 13766 fi 13767 13768 13769fi 13770 13771if test "x$SSH_PRIVSEP_USER" = "xCYGWIN_SSH_PRIVSEP_USER" ; then 13772 13773cat >>confdefs.h <<_ACEOF 13774#define SSH_PRIVSEP_USER CYGWIN_SSH_PRIVSEP_USER 13775_ACEOF 13776 13777else 13778 13779cat >>confdefs.h <<_ACEOF 13780#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" 13781_ACEOF 13782 13783fi 13784 13785 13786if test "x$have_linux_no_new_privs" = "x1" ; then 13787ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" " 13788 #include <sys/types.h> 13789 #include <linux/seccomp.h> 13790 13791" 13792if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then : 13793 have_seccomp_filter=1 13794fi 13795 13796fi 13797if test "x$have_seccomp_filter" = "x1" ; then 13798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5 13799$as_echo_n "checking kernel for seccomp_filter support... " >&6; } 13800cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13801/* end confdefs.h. */ 13802 13803 #include <errno.h> 13804 #include <elf.h> 13805 #include <linux/audit.h> 13806 #include <linux/seccomp.h> 13807 #include <stdlib.h> 13808 #include <sys/prctl.h> 13809 13810int 13811main () 13812{ 13813 int i = $seccomp_audit_arch; 13814 errno = 0; 13815 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0); 13816 exit(errno == EFAULT ? 0 : 1); 13817 ; 13818 return 0; 13819} 13820_ACEOF 13821if ac_fn_c_try_link "$LINENO"; then : 13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13823$as_echo "yes" >&6; } 13824else 13825 13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13827$as_echo "no" >&6; } 13828 # Disable seccomp filter as a target 13829 have_seccomp_filter=0 13830 13831 13832fi 13833rm -f core conftest.err conftest.$ac_objext \ 13834 conftest$ac_exeext conftest.$ac_ext 13835fi 13836 13837# Decide which sandbox style to use 13838sandbox_arg="" 13839 13840# Check whether --with-sandbox was given. 13841if test "${with_sandbox+set}" = set; then : 13842 withval=$with_sandbox; 13843 if test "x$withval" = "xyes" ; then 13844 sandbox_arg="" 13845 else 13846 sandbox_arg="$withval" 13847 fi 13848 13849 13850fi 13851 13852 13853# Some platforms (seems to be the ones that have a kernel poll(2)-type 13854# function with which they implement select(2)) use an extra file descriptor 13855# when calling select(2), which means we can't use the rlimit sandbox. 13856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select works with descriptor rlimit" >&5 13857$as_echo_n "checking if select works with descriptor rlimit... " >&6; } 13858if test "$cross_compiling" = yes; then : 13859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 13860$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} 13861 13862else 13863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13864/* end confdefs.h. */ 13865 13866#include <sys/types.h> 13867#ifdef HAVE_SYS_TIME_H 13868# include <sys/time.h> 13869#endif 13870#include <sys/resource.h> 13871#ifdef HAVE_SYS_SELECT_H 13872# include <sys/select.h> 13873#endif 13874#include <errno.h> 13875#include <fcntl.h> 13876#include <stdlib.h> 13877 13878int 13879main () 13880{ 13881 13882 struct rlimit rl_zero; 13883 int fd, r; 13884 fd_set fds; 13885 struct timeval tv; 13886 13887 fd = open("/dev/null", O_RDONLY); 13888 FD_ZERO(&fds); 13889 FD_SET(fd, &fds); 13890 rl_zero.rlim_cur = rl_zero.rlim_max = 0; 13891 setrlimit(RLIMIT_FSIZE, &rl_zero); 13892 setrlimit(RLIMIT_NOFILE, &rl_zero); 13893 tv.tv_sec = 1; 13894 tv.tv_usec = 0; 13895 r = select(fd+1, &fds, NULL, NULL, &tv); 13896 exit (r == -1 ? 1 : 0); 13897 13898 ; 13899 return 0; 13900} 13901_ACEOF 13902if ac_fn_c_try_run "$LINENO"; then : 13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13904$as_echo "yes" >&6; } 13905 select_works_with_rlimit=yes 13906else 13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13908$as_echo "no" >&6; } 13909 select_works_with_rlimit=no 13910fi 13911rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13912 conftest.$ac_objext conftest.beam conftest.$ac_ext 13913fi 13914 13915 13916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5 13917$as_echo_n "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... " >&6; } 13918if test "$cross_compiling" = yes; then : 13919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 13920$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} 13921 13922else 13923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13924/* end confdefs.h. */ 13925 13926#include <sys/types.h> 13927#ifdef HAVE_SYS_TIME_H 13928# include <sys/time.h> 13929#endif 13930#include <sys/resource.h> 13931#include <errno.h> 13932#include <stdlib.h> 13933 13934int 13935main () 13936{ 13937 13938 struct rlimit rl_zero; 13939 int fd, r; 13940 fd_set fds; 13941 13942 rl_zero.rlim_cur = rl_zero.rlim_max = 0; 13943 r = setrlimit(RLIMIT_NOFILE, &rl_zero); 13944 exit (r == -1 ? 1 : 0); 13945 13946 ; 13947 return 0; 13948} 13949_ACEOF 13950if ac_fn_c_try_run "$LINENO"; then : 13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13952$as_echo "yes" >&6; } 13953 rlimit_nofile_zero_works=yes 13954else 13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13956$as_echo "no" >&6; } 13957 rlimit_nofile_zero_works=no 13958fi 13959rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13960 conftest.$ac_objext conftest.beam conftest.$ac_ext 13961fi 13962 13963 13964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5 13965$as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; } 13966if test "$cross_compiling" = yes; then : 13967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 13968$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} 13969 13970else 13971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13972/* end confdefs.h. */ 13973 13974#include <sys/types.h> 13975#include <sys/resource.h> 13976#include <stdlib.h> 13977 13978int 13979main () 13980{ 13981 13982 struct rlimit rl_zero; 13983 13984 rl_zero.rlim_cur = rl_zero.rlim_max = 0; 13985 exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0); 13986 13987 ; 13988 return 0; 13989} 13990_ACEOF 13991if ac_fn_c_try_run "$LINENO"; then : 13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13993$as_echo "yes" >&6; } 13994else 13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13996$as_echo "no" >&6; } 13997 13998$as_echo "#define SANDBOX_SKIP_RLIMIT_FSIZE 1" >>confdefs.h 13999 14000fi 14001rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14002 conftest.$ac_objext conftest.beam conftest.$ac_ext 14003fi 14004 14005 14006if test "x$sandbox_arg" = "xpledge" || \ 14007 ( test -z "$sandbox_arg" && test "x$ac_cv_func_pledge" = "xyes" ) ; then 14008 test "x$ac_cv_func_pledge" != "xyes" && \ 14009 as_fn_error $? "pledge sandbox requires pledge(2) support" "$LINENO" 5 14010 SANDBOX_STYLE="pledge" 14011 14012$as_echo "#define SANDBOX_PLEDGE 1" >>confdefs.h 14013 14014elif test "x$sandbox_arg" = "xsystrace" || \ 14015 ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then 14016 test "x$have_systr_policy_kill" != "x1" && \ 14017 as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5 14018 SANDBOX_STYLE="systrace" 14019 14020$as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h 14021 14022elif test "x$sandbox_arg" = "xdarwin" || \ 14023 ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \ 14024 test "x$ac_cv_header_sandbox_h" = "xyes") ; then 14025 test "x$ac_cv_func_sandbox_init" != "xyes" -o \ 14026 "x$ac_cv_header_sandbox_h" != "xyes" && \ 14027 as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5 14028 SANDBOX_STYLE="darwin" 14029 14030$as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h 14031 14032elif test "x$sandbox_arg" = "xseccomp_filter" || \ 14033 ( test -z "$sandbox_arg" && \ 14034 test "x$have_seccomp_filter" = "x1" && \ 14035 test "x$ac_cv_header_elf_h" = "xyes" && \ 14036 test "x$ac_cv_header_linux_audit_h" = "xyes" && \ 14037 test "x$ac_cv_header_linux_filter_h" = "xyes" && \ 14038 test "x$seccomp_audit_arch" != "x" && \ 14039 test "x$have_linux_no_new_privs" = "x1" && \ 14040 test "x$ac_cv_func_prctl" = "xyes" ) ; then 14041 test "x$seccomp_audit_arch" = "x" && \ 14042 as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5 14043 test "x$have_linux_no_new_privs" != "x1" && \ 14044 as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5 14045 test "x$have_seccomp_filter" != "x1" && \ 14046 as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5 14047 test "x$ac_cv_func_prctl" != "xyes" && \ 14048 as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5 14049 SANDBOX_STYLE="seccomp_filter" 14050 14051$as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h 14052 14053elif test "x$sandbox_arg" = "xcapsicum" || \ 14054 ( test -z "$sandbox_arg" && \ 14055 test "x$ac_cv_header_sys_capability_h" = "xyes" && \ 14056 test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then 14057 test "x$ac_cv_header_sys_capability_h" != "xyes" && \ 14058 as_fn_error $? "capsicum sandbox requires sys/capability.h header" "$LINENO" 5 14059 test "x$ac_cv_func_cap_rights_limit" != "xyes" && \ 14060 as_fn_error $? "capsicum sandbox requires cap_rights_limit function" "$LINENO" 5 14061 SANDBOX_STYLE="capsicum" 14062 14063$as_echo "#define SANDBOX_CAPSICUM 1" >>confdefs.h 14064 14065elif test "x$sandbox_arg" = "xrlimit" || \ 14066 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \ 14067 test "x$select_works_with_rlimit" = "xyes" && \ 14068 test "x$rlimit_nofile_zero_works" = "xyes" ) ; then 14069 test "x$ac_cv_func_setrlimit" != "xyes" && \ 14070 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5 14071 test "x$select_works_with_rlimit" != "xyes" && \ 14072 as_fn_error $? "rlimit sandbox requires select to work with rlimit" "$LINENO" 5 14073 SANDBOX_STYLE="rlimit" 14074 14075$as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h 14076 14077elif test "x$sandbox_arg" = "xsolaris" || \ 14078 ( test -z "$sandbox_arg" && test "x$SOLARIS_PRIVS" = "xyes" ) ; then 14079 SANDBOX_STYLE="solaris" 14080 14081$as_echo "#define SANDBOX_SOLARIS 1" >>confdefs.h 14082 14083elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \ 14084 test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then 14085 SANDBOX_STYLE="none" 14086 14087$as_echo "#define SANDBOX_NULL 1" >>confdefs.h 14088 14089else 14090 as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5 14091fi 14092 14093# Cheap hack to ensure NEWS-OS libraries are arranged right. 14094if test ! -z "$SONY" ; then 14095 LIBS="$LIBS -liberty"; 14096fi 14097 14098# Check for long long datatypes 14099ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 14100if test "x$ac_cv_type_long_long" = xyes; then : 14101 14102cat >>confdefs.h <<_ACEOF 14103#define HAVE_LONG_LONG 1 14104_ACEOF 14105 14106 14107fi 14108ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default" 14109if test "x$ac_cv_type_unsigned_long_long" = xyes; then : 14110 14111cat >>confdefs.h <<_ACEOF 14112#define HAVE_UNSIGNED_LONG_LONG 1 14113_ACEOF 14114 14115 14116fi 14117ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default" 14118if test "x$ac_cv_type_long_double" = xyes; then : 14119 14120cat >>confdefs.h <<_ACEOF 14121#define HAVE_LONG_DOUBLE 1 14122_ACEOF 14123 14124 14125fi 14126 14127 14128# Check datatype sizes 14129# The cast to long int works around a bug in the HP C Compiler 14130# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14131# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14132# This bug is HP SR number 8606223364. 14133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5 14134$as_echo_n "checking size of short int... " >&6; } 14135if ${ac_cv_sizeof_short_int+:} false; then : 14136 $as_echo_n "(cached) " >&6 14137else 14138 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then : 14139 14140else 14141 if test "$ac_cv_type_short_int" = yes; then 14142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14144as_fn_error 77 "cannot compute sizeof (short int) 14145See \`config.log' for more details" "$LINENO" 5; } 14146 else 14147 ac_cv_sizeof_short_int=0 14148 fi 14149fi 14150 14151fi 14152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5 14153$as_echo "$ac_cv_sizeof_short_int" >&6; } 14154 14155 14156 14157cat >>confdefs.h <<_ACEOF 14158#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int 14159_ACEOF 14160 14161 14162# The cast to long int works around a bug in the HP C Compiler 14163# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14164# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14165# This bug is HP SR number 8606223364. 14166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 14167$as_echo_n "checking size of int... " >&6; } 14168if ${ac_cv_sizeof_int+:} false; then : 14169 $as_echo_n "(cached) " >&6 14170else 14171 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 14172 14173else 14174 if test "$ac_cv_type_int" = yes; then 14175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14177as_fn_error 77 "cannot compute sizeof (int) 14178See \`config.log' for more details" "$LINENO" 5; } 14179 else 14180 ac_cv_sizeof_int=0 14181 fi 14182fi 14183 14184fi 14185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 14186$as_echo "$ac_cv_sizeof_int" >&6; } 14187 14188 14189 14190cat >>confdefs.h <<_ACEOF 14191#define SIZEOF_INT $ac_cv_sizeof_int 14192_ACEOF 14193 14194 14195# The cast to long int works around a bug in the HP C Compiler 14196# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14197# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14198# This bug is HP SR number 8606223364. 14199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 14200$as_echo_n "checking size of long int... " >&6; } 14201if ${ac_cv_sizeof_long_int+:} false; then : 14202 $as_echo_n "(cached) " >&6 14203else 14204 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : 14205 14206else 14207 if test "$ac_cv_type_long_int" = yes; then 14208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14210as_fn_error 77 "cannot compute sizeof (long int) 14211See \`config.log' for more details" "$LINENO" 5; } 14212 else 14213 ac_cv_sizeof_long_int=0 14214 fi 14215fi 14216 14217fi 14218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 14219$as_echo "$ac_cv_sizeof_long_int" >&6; } 14220 14221 14222 14223cat >>confdefs.h <<_ACEOF 14224#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int 14225_ACEOF 14226 14227 14228# The cast to long int works around a bug in the HP C Compiler 14229# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14230# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14231# This bug is HP SR number 8606223364. 14232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5 14233$as_echo_n "checking size of long long int... " >&6; } 14234if ${ac_cv_sizeof_long_long_int+:} false; then : 14235 $as_echo_n "(cached) " >&6 14236else 14237 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then : 14238 14239else 14240 if test "$ac_cv_type_long_long_int" = yes; then 14241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14243as_fn_error 77 "cannot compute sizeof (long long int) 14244See \`config.log' for more details" "$LINENO" 5; } 14245 else 14246 ac_cv_sizeof_long_long_int=0 14247 fi 14248fi 14249 14250fi 14251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5 14252$as_echo "$ac_cv_sizeof_long_long_int" >&6; } 14253 14254 14255 14256cat >>confdefs.h <<_ACEOF 14257#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int 14258_ACEOF 14259 14260 14261 14262# Sanity check long long for some platforms (AIX) 14263if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then 14264 ac_cv_sizeof_long_long_int=0 14265fi 14266 14267# compute LLONG_MIN and LLONG_MAX if we don't know them. 14268if test -z "$have_llong_max"; then 14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5 14270$as_echo_n "checking for max value of long long... " >&6; } 14271 if test "$cross_compiling" = yes; then : 14272 14273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 14274$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} 14275 14276 14277else 14278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14279/* end confdefs.h. */ 14280 14281#include <stdio.h> 14282/* Why is this so damn hard? */ 14283#ifdef __GNUC__ 14284# undef __GNUC__ 14285#endif 14286#define __USE_ISOC99 14287#include <limits.h> 14288#define DATA "conftest.llminmax" 14289#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a)) 14290 14291/* 14292 * printf in libc on some platforms (eg old Tru64) does not understand %lld so 14293 * we do this the hard way. 14294 */ 14295static int 14296fprint_ll(FILE *f, long long n) 14297{ 14298 unsigned int i; 14299 int l[sizeof(long long) * 8]; 14300 14301 if (n < 0) 14302 if (fprintf(f, "-") < 0) 14303 return -1; 14304 for (i = 0; n != 0; i++) { 14305 l[i] = my_abs(n % 10); 14306 n /= 10; 14307 } 14308 do { 14309 if (fprintf(f, "%d", l[--i]) < 0) 14310 return -1; 14311 } while (i != 0); 14312 if (fprintf(f, " ") < 0) 14313 return -1; 14314 return 0; 14315} 14316 14317int 14318main () 14319{ 14320 14321 FILE *f; 14322 long long i, llmin, llmax = 0; 14323 14324 if((f = fopen(DATA,"w")) == NULL) 14325 exit(1); 14326 14327#if defined(LLONG_MIN) && defined(LLONG_MAX) 14328 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n"); 14329 llmin = LLONG_MIN; 14330 llmax = LLONG_MAX; 14331#else 14332 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n"); 14333 /* This will work on one's complement and two's complement */ 14334 for (i = 1; i > llmax; i <<= 1, i++) 14335 llmax = i; 14336 llmin = llmax + 1LL; /* wrap */ 14337#endif 14338 14339 /* Sanity check */ 14340 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax 14341 || llmax - 1 > llmax || llmin == llmax || llmin == 0 14342 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) { 14343 fprintf(f, "unknown unknown\n"); 14344 exit(2); 14345 } 14346 14347 if (fprint_ll(f, llmin) < 0) 14348 exit(3); 14349 if (fprint_ll(f, llmax) < 0) 14350 exit(4); 14351 if (fclose(f) < 0) 14352 exit(5); 14353 exit(0); 14354 14355 ; 14356 return 0; 14357} 14358_ACEOF 14359if ac_fn_c_try_run "$LINENO"; then : 14360 14361 llong_min=`$AWK '{print $1}' conftest.llminmax` 14362 llong_max=`$AWK '{print $2}' conftest.llminmax` 14363 14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5 14365$as_echo "$llong_max" >&6; } 14366 14367cat >>confdefs.h <<_ACEOF 14368#define LLONG_MAX ${llong_max}LL 14369_ACEOF 14370 14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5 14372$as_echo_n "checking for min value of long long... " >&6; } 14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5 14374$as_echo "$llong_min" >&6; } 14375 14376cat >>confdefs.h <<_ACEOF 14377#define LLONG_MIN ${llong_min}LL 14378_ACEOF 14379 14380 14381else 14382 14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14384$as_echo "not found" >&6; } 14385 14386fi 14387rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14388 conftest.$ac_objext conftest.beam conftest.$ac_ext 14389fi 14390 14391fi 14392 14393 14394# More checks for data types 14395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5 14396$as_echo_n "checking for u_int type... " >&6; } 14397if ${ac_cv_have_u_int+:} false; then : 14398 $as_echo_n "(cached) " >&6 14399else 14400 14401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14402/* end confdefs.h. */ 14403 #include <sys/types.h> 14404int 14405main () 14406{ 14407 u_int a; a = 1; 14408 ; 14409 return 0; 14410} 14411_ACEOF 14412if ac_fn_c_try_compile "$LINENO"; then : 14413 ac_cv_have_u_int="yes" 14414else 14415 ac_cv_have_u_int="no" 14416 14417fi 14418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14419 14420fi 14421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5 14422$as_echo "$ac_cv_have_u_int" >&6; } 14423if test "x$ac_cv_have_u_int" = "xyes" ; then 14424 14425$as_echo "#define HAVE_U_INT 1" >>confdefs.h 14426 14427 have_u_int=1 14428fi 14429 14430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5 14431$as_echo_n "checking for intXX_t types... " >&6; } 14432if ${ac_cv_have_intxx_t+:} false; then : 14433 $as_echo_n "(cached) " >&6 14434else 14435 14436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14437/* end confdefs.h. */ 14438 #include <sys/types.h> 14439int 14440main () 14441{ 14442 int8_t a; int16_t b; int32_t c; a = b = c = 1; 14443 ; 14444 return 0; 14445} 14446_ACEOF 14447if ac_fn_c_try_compile "$LINENO"; then : 14448 ac_cv_have_intxx_t="yes" 14449else 14450 ac_cv_have_intxx_t="no" 14451 14452fi 14453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14454 14455fi 14456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5 14457$as_echo "$ac_cv_have_intxx_t" >&6; } 14458if test "x$ac_cv_have_intxx_t" = "xyes" ; then 14459 14460$as_echo "#define HAVE_INTXX_T 1" >>confdefs.h 14461 14462 have_intxx_t=1 14463fi 14464 14465if (test -z "$have_intxx_t" && \ 14466 test "x$ac_cv_header_stdint_h" = "xyes") 14467then 14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5 14469$as_echo_n "checking for intXX_t types in stdint.h... " >&6; } 14470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14471/* end confdefs.h. */ 14472 #include <stdint.h> 14473int 14474main () 14475{ 14476 int8_t a; int16_t b; int32_t c; a = b = c = 1; 14477 ; 14478 return 0; 14479} 14480_ACEOF 14481if ac_fn_c_try_compile "$LINENO"; then : 14482 14483 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h 14484 14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14486$as_echo "yes" >&6; } 14487 14488else 14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14490$as_echo "no" >&6; } 14491 14492fi 14493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14494fi 14495 14496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5 14497$as_echo_n "checking for int64_t type... " >&6; } 14498if ${ac_cv_have_int64_t+:} false; then : 14499 $as_echo_n "(cached) " >&6 14500else 14501 14502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14503/* end confdefs.h. */ 14504 14505#include <sys/types.h> 14506#ifdef HAVE_STDINT_H 14507# include <stdint.h> 14508#endif 14509#include <sys/socket.h> 14510#ifdef HAVE_SYS_BITYPES_H 14511# include <sys/bitypes.h> 14512#endif 14513 14514int 14515main () 14516{ 14517 14518int64_t a; a = 1; 14519 14520 ; 14521 return 0; 14522} 14523_ACEOF 14524if ac_fn_c_try_compile "$LINENO"; then : 14525 ac_cv_have_int64_t="yes" 14526else 14527 ac_cv_have_int64_t="no" 14528 14529fi 14530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14531 14532fi 14533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5 14534$as_echo "$ac_cv_have_int64_t" >&6; } 14535if test "x$ac_cv_have_int64_t" = "xyes" ; then 14536 14537$as_echo "#define HAVE_INT64_T 1" >>confdefs.h 14538 14539fi 14540 14541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5 14542$as_echo_n "checking for u_intXX_t types... " >&6; } 14543if ${ac_cv_have_u_intxx_t+:} false; then : 14544 $as_echo_n "(cached) " >&6 14545else 14546 14547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14548/* end confdefs.h. */ 14549 #include <sys/types.h> 14550int 14551main () 14552{ 14553 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; 14554 ; 14555 return 0; 14556} 14557_ACEOF 14558if ac_fn_c_try_compile "$LINENO"; then : 14559 ac_cv_have_u_intxx_t="yes" 14560else 14561 ac_cv_have_u_intxx_t="no" 14562 14563fi 14564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14565 14566fi 14567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5 14568$as_echo "$ac_cv_have_u_intxx_t" >&6; } 14569if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then 14570 14571$as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h 14572 14573 have_u_intxx_t=1 14574fi 14575 14576if test -z "$have_u_intxx_t" ; then 14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5 14578$as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; } 14579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14580/* end confdefs.h. */ 14581 #include <sys/socket.h> 14582int 14583main () 14584{ 14585 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; 14586 ; 14587 return 0; 14588} 14589_ACEOF 14590if ac_fn_c_try_compile "$LINENO"; then : 14591 14592 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h 14593 14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14595$as_echo "yes" >&6; } 14596 14597else 14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14599$as_echo "no" >&6; } 14600 14601fi 14602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14603fi 14604 14605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5 14606$as_echo_n "checking for u_int64_t types... " >&6; } 14607if ${ac_cv_have_u_int64_t+:} false; then : 14608 $as_echo_n "(cached) " >&6 14609else 14610 14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14612/* end confdefs.h. */ 14613 #include <sys/types.h> 14614int 14615main () 14616{ 14617 u_int64_t a; a = 1; 14618 ; 14619 return 0; 14620} 14621_ACEOF 14622if ac_fn_c_try_compile "$LINENO"; then : 14623 ac_cv_have_u_int64_t="yes" 14624else 14625 ac_cv_have_u_int64_t="no" 14626 14627fi 14628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14629 14630fi 14631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5 14632$as_echo "$ac_cv_have_u_int64_t" >&6; } 14633if test "x$ac_cv_have_u_int64_t" = "xyes" ; then 14634 14635$as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h 14636 14637 have_u_int64_t=1 14638fi 14639 14640if (test -z "$have_u_int64_t" && \ 14641 test "x$ac_cv_header_sys_bitypes_h" = "xyes") 14642then 14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5 14644$as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; } 14645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14646/* end confdefs.h. */ 14647 #include <sys/bitypes.h> 14648int 14649main () 14650{ 14651 u_int64_t a; a = 1 14652 ; 14653 return 0; 14654} 14655_ACEOF 14656if ac_fn_c_try_compile "$LINENO"; then : 14657 14658 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h 14659 14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14661$as_echo "yes" >&6; } 14662 14663else 14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14665$as_echo "no" >&6; } 14666 14667fi 14668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14669fi 14670 14671if test -z "$have_u_intxx_t" ; then 14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5 14673$as_echo_n "checking for uintXX_t types... " >&6; } 14674if ${ac_cv_have_uintxx_t+:} false; then : 14675 $as_echo_n "(cached) " >&6 14676else 14677 14678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14679/* end confdefs.h. */ 14680 14681#include <sys/types.h> 14682 14683int 14684main () 14685{ 14686 14687 uint8_t a; 14688 uint16_t b; 14689 uint32_t c; 14690 a = b = c = 1; 14691 14692 ; 14693 return 0; 14694} 14695_ACEOF 14696if ac_fn_c_try_compile "$LINENO"; then : 14697 ac_cv_have_uintxx_t="yes" 14698else 14699 ac_cv_have_uintxx_t="no" 14700 14701fi 14702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14703 14704fi 14705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5 14706$as_echo "$ac_cv_have_uintxx_t" >&6; } 14707 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then 14708 14709$as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h 14710 14711 fi 14712fi 14713 14714if (test -z "$have_uintxx_t" && \ 14715 test "x$ac_cv_header_stdint_h" = "xyes") 14716then 14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5 14718$as_echo_n "checking for uintXX_t types in stdint.h... " >&6; } 14719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14720/* end confdefs.h. */ 14721 #include <stdint.h> 14722int 14723main () 14724{ 14725 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; 14726 ; 14727 return 0; 14728} 14729_ACEOF 14730if ac_fn_c_try_compile "$LINENO"; then : 14731 14732 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h 14733 14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14735$as_echo "yes" >&6; } 14736 14737else 14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14739$as_echo "no" >&6; } 14740 14741fi 14742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14743fi 14744 14745if (test -z "$have_uintxx_t" && \ 14746 test "x$ac_cv_header_inttypes_h" = "xyes") 14747then 14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in inttypes.h" >&5 14749$as_echo_n "checking for uintXX_t types in inttypes.h... " >&6; } 14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14751/* end confdefs.h. */ 14752 #include <inttypes.h> 14753int 14754main () 14755{ 14756 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; 14757 ; 14758 return 0; 14759} 14760_ACEOF 14761if ac_fn_c_try_compile "$LINENO"; then : 14762 14763 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h 14764 14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14766$as_echo "yes" >&6; } 14767 14768else 14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14770$as_echo "no" >&6; } 14771 14772fi 14773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14774fi 14775 14776if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ 14777 test "x$ac_cv_header_sys_bitypes_h" = "xyes") 14778then 14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 14780$as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; } 14781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14782/* end confdefs.h. */ 14783 14784#include <sys/bitypes.h> 14785 14786int 14787main () 14788{ 14789 14790 int8_t a; int16_t b; int32_t c; 14791 u_int8_t e; u_int16_t f; u_int32_t g; 14792 a = b = c = e = f = g = 1; 14793 14794 ; 14795 return 0; 14796} 14797_ACEOF 14798if ac_fn_c_try_compile "$LINENO"; then : 14799 14800 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h 14801 14802 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h 14803 14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14805$as_echo "yes" >&6; } 14806 14807else 14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14809$as_echo "no" >&6; } 14810 14811fi 14812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14813fi 14814 14815 14816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5 14817$as_echo_n "checking for u_char... " >&6; } 14818if ${ac_cv_have_u_char+:} false; then : 14819 $as_echo_n "(cached) " >&6 14820else 14821 14822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14823/* end confdefs.h. */ 14824 #include <sys/types.h> 14825int 14826main () 14827{ 14828 u_char foo; foo = 125; 14829 ; 14830 return 0; 14831} 14832_ACEOF 14833if ac_fn_c_try_compile "$LINENO"; then : 14834 ac_cv_have_u_char="yes" 14835else 14836 ac_cv_have_u_char="no" 14837 14838fi 14839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14840 14841fi 14842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5 14843$as_echo "$ac_cv_have_u_char" >&6; } 14844if test "x$ac_cv_have_u_char" = "xyes" ; then 14845 14846$as_echo "#define HAVE_U_CHAR 1" >>confdefs.h 14847 14848fi 14849 14850ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" " 14851#include <sys/types.h> 14852#include <stdint.h> 14853 14854" 14855if test "x$ac_cv_type_intmax_t" = xyes; then : 14856 14857cat >>confdefs.h <<_ACEOF 14858#define HAVE_INTMAX_T 1 14859_ACEOF 14860 14861 14862fi 14863ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" " 14864#include <sys/types.h> 14865#include <stdint.h> 14866 14867" 14868if test "x$ac_cv_type_uintmax_t" = xyes; then : 14869 14870cat >>confdefs.h <<_ACEOF 14871#define HAVE_UINTMAX_T 1 14872_ACEOF 14873 14874 14875fi 14876 14877 14878 14879 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> 14880#include <sys/socket.h> 14881" 14882if test "x$ac_cv_type_socklen_t" = xyes; then : 14883 14884else 14885 14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 14887$as_echo_n "checking for socklen_t equivalent... " >&6; } 14888 if ${curl_cv_socklen_t_equiv+:} false; then : 14889 $as_echo_n "(cached) " >&6 14890else 14891 14892 # Systems have either "struct sockaddr *" or 14893 # "void *" as the second argument to getpeername 14894 curl_cv_socklen_t_equiv= 14895 for arg2 in "struct sockaddr" void; do 14896 for t in int size_t unsigned long "unsigned long"; do 14897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14898/* end confdefs.h. */ 14899 14900 #include <sys/types.h> 14901 #include <sys/socket.h> 14902 14903 int getpeername (int, $arg2 *, $t *); 14904 14905int 14906main () 14907{ 14908 14909 $t len; 14910 getpeername(0,0,&len); 14911 14912 ; 14913 return 0; 14914} 14915_ACEOF 14916if ac_fn_c_try_compile "$LINENO"; then : 14917 14918 curl_cv_socklen_t_equiv="$t" 14919 break 14920 14921fi 14922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14923 done 14924 done 14925 14926 if test "x$curl_cv_socklen_t_equiv" = x; then 14927 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5 14928 fi 14929 14930fi 14931 14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5 14933$as_echo "$curl_cv_socklen_t_equiv" >&6; } 14934 14935cat >>confdefs.h <<_ACEOF 14936#define socklen_t $curl_cv_socklen_t_equiv 14937_ACEOF 14938 14939fi 14940 14941 14942 14943ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h> 14944" 14945if test "x$ac_cv_type_sig_atomic_t" = xyes; then : 14946 14947cat >>confdefs.h <<_ACEOF 14948#define HAVE_SIG_ATOMIC_T 1 14949_ACEOF 14950 14951 14952fi 14953 14954ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" " 14955#include <sys/types.h> 14956#ifdef HAVE_SYS_BITYPES_H 14957#include <sys/bitypes.h> 14958#endif 14959#ifdef HAVE_SYS_STATFS_H 14960#include <sys/statfs.h> 14961#endif 14962#ifdef HAVE_SYS_STATVFS_H 14963#include <sys/statvfs.h> 14964#endif 14965 14966" 14967if test "x$ac_cv_type_fsblkcnt_t" = xyes; then : 14968 14969cat >>confdefs.h <<_ACEOF 14970#define HAVE_FSBLKCNT_T 1 14971_ACEOF 14972 14973 14974fi 14975ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" " 14976#include <sys/types.h> 14977#ifdef HAVE_SYS_BITYPES_H 14978#include <sys/bitypes.h> 14979#endif 14980#ifdef HAVE_SYS_STATFS_H 14981#include <sys/statfs.h> 14982#endif 14983#ifdef HAVE_SYS_STATVFS_H 14984#include <sys/statvfs.h> 14985#endif 14986 14987" 14988if test "x$ac_cv_type_fsfilcnt_t" = xyes; then : 14989 14990cat >>confdefs.h <<_ACEOF 14991#define HAVE_FSFILCNT_T 1 14992_ACEOF 14993 14994 14995fi 14996 14997 14998ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h> 14999#include <netinet/in.h> 15000" 15001if test "x$ac_cv_type_in_addr_t" = xyes; then : 15002 15003cat >>confdefs.h <<_ACEOF 15004#define HAVE_IN_ADDR_T 1 15005_ACEOF 15006 15007 15008fi 15009ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h> 15010#include <netinet/in.h> 15011" 15012if test "x$ac_cv_type_in_port_t" = xyes; then : 15013 15014cat >>confdefs.h <<_ACEOF 15015#define HAVE_IN_PORT_T 1 15016_ACEOF 15017 15018 15019fi 15020 15021 15022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5 15023$as_echo_n "checking for size_t... " >&6; } 15024if ${ac_cv_have_size_t+:} false; then : 15025 $as_echo_n "(cached) " >&6 15026else 15027 15028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15029/* end confdefs.h. */ 15030 #include <sys/types.h> 15031int 15032main () 15033{ 15034 size_t foo; foo = 1235; 15035 ; 15036 return 0; 15037} 15038_ACEOF 15039if ac_fn_c_try_compile "$LINENO"; then : 15040 ac_cv_have_size_t="yes" 15041else 15042 ac_cv_have_size_t="no" 15043 15044fi 15045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15046 15047fi 15048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5 15049$as_echo "$ac_cv_have_size_t" >&6; } 15050if test "x$ac_cv_have_size_t" = "xyes" ; then 15051 15052$as_echo "#define HAVE_SIZE_T 1" >>confdefs.h 15053 15054fi 15055 15056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 15057$as_echo_n "checking for ssize_t... " >&6; } 15058if ${ac_cv_have_ssize_t+:} false; then : 15059 $as_echo_n "(cached) " >&6 15060else 15061 15062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15063/* end confdefs.h. */ 15064 #include <sys/types.h> 15065int 15066main () 15067{ 15068 ssize_t foo; foo = 1235; 15069 ; 15070 return 0; 15071} 15072_ACEOF 15073if ac_fn_c_try_compile "$LINENO"; then : 15074 ac_cv_have_ssize_t="yes" 15075else 15076 ac_cv_have_ssize_t="no" 15077 15078fi 15079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15080 15081fi 15082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5 15083$as_echo "$ac_cv_have_ssize_t" >&6; } 15084if test "x$ac_cv_have_ssize_t" = "xyes" ; then 15085 15086$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h 15087 15088fi 15089 15090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5 15091$as_echo_n "checking for clock_t... " >&6; } 15092if ${ac_cv_have_clock_t+:} false; then : 15093 $as_echo_n "(cached) " >&6 15094else 15095 15096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15097/* end confdefs.h. */ 15098 #include <time.h> 15099int 15100main () 15101{ 15102 clock_t foo; foo = 1235; 15103 ; 15104 return 0; 15105} 15106_ACEOF 15107if ac_fn_c_try_compile "$LINENO"; then : 15108 ac_cv_have_clock_t="yes" 15109else 15110 ac_cv_have_clock_t="no" 15111 15112fi 15113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15114 15115fi 15116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5 15117$as_echo "$ac_cv_have_clock_t" >&6; } 15118if test "x$ac_cv_have_clock_t" = "xyes" ; then 15119 15120$as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h 15121 15122fi 15123 15124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5 15125$as_echo_n "checking for sa_family_t... " >&6; } 15126if ${ac_cv_have_sa_family_t+:} false; then : 15127 $as_echo_n "(cached) " >&6 15128else 15129 15130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15131/* end confdefs.h. */ 15132 15133#include <sys/types.h> 15134#include <sys/socket.h> 15135 15136int 15137main () 15138{ 15139 sa_family_t foo; foo = 1235; 15140 ; 15141 return 0; 15142} 15143_ACEOF 15144if ac_fn_c_try_compile "$LINENO"; then : 15145 ac_cv_have_sa_family_t="yes" 15146else 15147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15148/* end confdefs.h. */ 15149 15150#include <sys/types.h> 15151#include <sys/socket.h> 15152#include <netinet/in.h> 15153 15154int 15155main () 15156{ 15157 sa_family_t foo; foo = 1235; 15158 ; 15159 return 0; 15160} 15161_ACEOF 15162if ac_fn_c_try_compile "$LINENO"; then : 15163 ac_cv_have_sa_family_t="yes" 15164else 15165 ac_cv_have_sa_family_t="no" 15166 15167fi 15168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15169 15170fi 15171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15172 15173fi 15174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5 15175$as_echo "$ac_cv_have_sa_family_t" >&6; } 15176if test "x$ac_cv_have_sa_family_t" = "xyes" ; then 15177 15178$as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h 15179 15180fi 15181 15182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5 15183$as_echo_n "checking for pid_t... " >&6; } 15184if ${ac_cv_have_pid_t+:} false; then : 15185 $as_echo_n "(cached) " >&6 15186else 15187 15188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15189/* end confdefs.h. */ 15190 #include <sys/types.h> 15191int 15192main () 15193{ 15194 pid_t foo; foo = 1235; 15195 ; 15196 return 0; 15197} 15198_ACEOF 15199if ac_fn_c_try_compile "$LINENO"; then : 15200 ac_cv_have_pid_t="yes" 15201else 15202 ac_cv_have_pid_t="no" 15203 15204fi 15205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15206 15207fi 15208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5 15209$as_echo "$ac_cv_have_pid_t" >&6; } 15210if test "x$ac_cv_have_pid_t" = "xyes" ; then 15211 15212$as_echo "#define HAVE_PID_T 1" >>confdefs.h 15213 15214fi 15215 15216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5 15217$as_echo_n "checking for mode_t... " >&6; } 15218if ${ac_cv_have_mode_t+:} false; then : 15219 $as_echo_n "(cached) " >&6 15220else 15221 15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15223/* end confdefs.h. */ 15224 #include <sys/types.h> 15225int 15226main () 15227{ 15228 mode_t foo; foo = 1235; 15229 ; 15230 return 0; 15231} 15232_ACEOF 15233if ac_fn_c_try_compile "$LINENO"; then : 15234 ac_cv_have_mode_t="yes" 15235else 15236 ac_cv_have_mode_t="no" 15237 15238fi 15239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15240 15241fi 15242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5 15243$as_echo "$ac_cv_have_mode_t" >&6; } 15244if test "x$ac_cv_have_mode_t" = "xyes" ; then 15245 15246$as_echo "#define HAVE_MODE_T 1" >>confdefs.h 15247 15248fi 15249 15250 15251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 15252$as_echo_n "checking for struct sockaddr_storage... " >&6; } 15253if ${ac_cv_have_struct_sockaddr_storage+:} false; then : 15254 $as_echo_n "(cached) " >&6 15255else 15256 15257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15258/* end confdefs.h. */ 15259 15260#include <sys/types.h> 15261#include <sys/socket.h> 15262 15263int 15264main () 15265{ 15266 struct sockaddr_storage s; 15267 ; 15268 return 0; 15269} 15270_ACEOF 15271if ac_fn_c_try_compile "$LINENO"; then : 15272 ac_cv_have_struct_sockaddr_storage="yes" 15273else 15274 ac_cv_have_struct_sockaddr_storage="no" 15275 15276fi 15277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15278 15279fi 15280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5 15281$as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; } 15282if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then 15283 15284$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 15285 15286fi 15287 15288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5 15289$as_echo_n "checking for struct sockaddr_in6... " >&6; } 15290if ${ac_cv_have_struct_sockaddr_in6+:} false; then : 15291 $as_echo_n "(cached) " >&6 15292else 15293 15294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15295/* end confdefs.h. */ 15296 15297#include <sys/types.h> 15298#include <netinet/in.h> 15299 15300int 15301main () 15302{ 15303 struct sockaddr_in6 s; s.sin6_family = 0; 15304 ; 15305 return 0; 15306} 15307_ACEOF 15308if ac_fn_c_try_compile "$LINENO"; then : 15309 ac_cv_have_struct_sockaddr_in6="yes" 15310else 15311 ac_cv_have_struct_sockaddr_in6="no" 15312 15313fi 15314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15315 15316fi 15317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5 15318$as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; } 15319if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then 15320 15321$as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h 15322 15323fi 15324 15325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5 15326$as_echo_n "checking for struct in6_addr... " >&6; } 15327if ${ac_cv_have_struct_in6_addr+:} false; then : 15328 $as_echo_n "(cached) " >&6 15329else 15330 15331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15332/* end confdefs.h. */ 15333 15334#include <sys/types.h> 15335#include <netinet/in.h> 15336 15337int 15338main () 15339{ 15340 struct in6_addr s; s.s6_addr[0] = 0; 15341 ; 15342 return 0; 15343} 15344_ACEOF 15345if ac_fn_c_try_compile "$LINENO"; then : 15346 ac_cv_have_struct_in6_addr="yes" 15347else 15348 ac_cv_have_struct_in6_addr="no" 15349 15350fi 15351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15352 15353fi 15354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5 15355$as_echo "$ac_cv_have_struct_in6_addr" >&6; } 15356if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then 15357 15358$as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h 15359 15360 15361 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" " 15362#ifdef HAVE_SYS_TYPES_H 15363#include <sys/types.h> 15364#endif 15365#include <netinet/in.h> 15366 15367" 15368if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then : 15369 15370cat >>confdefs.h <<_ACEOF 15371#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 15372_ACEOF 15373 15374 15375fi 15376 15377fi 15378 15379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5 15380$as_echo_n "checking for struct addrinfo... " >&6; } 15381if ${ac_cv_have_struct_addrinfo+:} false; then : 15382 $as_echo_n "(cached) " >&6 15383else 15384 15385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15386/* end confdefs.h. */ 15387 15388#include <sys/types.h> 15389#include <sys/socket.h> 15390#include <netdb.h> 15391 15392int 15393main () 15394{ 15395 struct addrinfo s; s.ai_flags = AI_PASSIVE; 15396 ; 15397 return 0; 15398} 15399_ACEOF 15400if ac_fn_c_try_compile "$LINENO"; then : 15401 ac_cv_have_struct_addrinfo="yes" 15402else 15403 ac_cv_have_struct_addrinfo="no" 15404 15405fi 15406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15407 15408fi 15409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5 15410$as_echo "$ac_cv_have_struct_addrinfo" >&6; } 15411if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then 15412 15413$as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h 15414 15415fi 15416 15417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 15418$as_echo_n "checking for struct timeval... " >&6; } 15419if ${ac_cv_have_struct_timeval+:} false; then : 15420 $as_echo_n "(cached) " >&6 15421else 15422 15423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15424/* end confdefs.h. */ 15425 #include <sys/time.h> 15426int 15427main () 15428{ 15429 struct timeval tv; tv.tv_sec = 1; 15430 ; 15431 return 0; 15432} 15433_ACEOF 15434if ac_fn_c_try_compile "$LINENO"; then : 15435 ac_cv_have_struct_timeval="yes" 15436else 15437 ac_cv_have_struct_timeval="no" 15438 15439fi 15440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15441 15442fi 15443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5 15444$as_echo "$ac_cv_have_struct_timeval" >&6; } 15445if test "x$ac_cv_have_struct_timeval" = "xyes" ; then 15446 15447$as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h 15448 15449 have_struct_timeval=1 15450fi 15451 15452ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default" 15453if test "x$ac_cv_type_struct_timespec" = xyes; then : 15454 15455cat >>confdefs.h <<_ACEOF 15456#define HAVE_STRUCT_TIMESPEC 1 15457_ACEOF 15458 15459 15460fi 15461 15462 15463# We need int64_t or else certian parts of the compile will fail. 15464if test "x$ac_cv_have_int64_t" = "xno" && \ 15465 test "x$ac_cv_sizeof_long_int" != "x8" && \ 15466 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then 15467 echo "OpenSSH requires int64_t support. Contact your vendor or install" 15468 echo "an alternative compiler (I.E., GCC) before continuing." 15469 echo "" 15470 exit 1; 15471else 15472 if test "$cross_compiling" = yes; then : 15473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 15474$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} 15475 15476else 15477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15478/* end confdefs.h. */ 15479 15480#include <stdio.h> 15481#include <string.h> 15482#ifdef HAVE_SNPRINTF 15483main() 15484{ 15485 char buf[50]; 15486 char expected_out[50]; 15487 int mazsize = 50 ; 15488#if (SIZEOF_LONG_INT == 8) 15489 long int num = 0x7fffffffffffffff; 15490#else 15491 long long num = 0x7fffffffffffffffll; 15492#endif 15493 strcpy(expected_out, "9223372036854775807"); 15494 snprintf(buf, mazsize, "%lld", num); 15495 if(strcmp(buf, expected_out) != 0) 15496 exit(1); 15497 exit(0); 15498} 15499#else 15500main() { exit(0); } 15501#endif 15502 15503_ACEOF 15504if ac_fn_c_try_run "$LINENO"; then : 15505 true 15506else 15507 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h 15508 15509fi 15510rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15511 conftest.$ac_objext conftest.beam conftest.$ac_ext 15512fi 15513 15514fi 15515 15516 15517# look for field 'ut_host' in header 'utmp.h' 15518 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 15519 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host 15520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5 15521$as_echo_n "checking for ut_host field in utmp.h... " >&6; } 15522 if eval \${$ossh_varname+:} false; then : 15523 $as_echo_n "(cached) " >&6 15524else 15525 15526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15527/* end confdefs.h. */ 15528#include <utmp.h> 15529 15530_ACEOF 15531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15532 $EGREP "ut_host" >/dev/null 2>&1; then : 15533 eval "$ossh_varname=yes" 15534else 15535 eval "$ossh_varname=no" 15536fi 15537rm -f conftest* 15538 15539fi 15540 15541 ossh_result=`eval 'echo $'"$ossh_varname"` 15542 if test -n "`echo $ossh_varname`"; then 15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 15544$as_echo "$ossh_result" >&6; } 15545 if test "x$ossh_result" = "xyes"; then 15546 15547$as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h 15548 15549 fi 15550 else 15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15552$as_echo "no" >&6; } 15553 fi 15554 15555 15556# look for field 'ut_host' in header 'utmpx.h' 15557 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 15558 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host 15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5 15560$as_echo_n "checking for ut_host field in utmpx.h... " >&6; } 15561 if eval \${$ossh_varname+:} false; then : 15562 $as_echo_n "(cached) " >&6 15563else 15564 15565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15566/* end confdefs.h. */ 15567#include <utmpx.h> 15568 15569_ACEOF 15570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15571 $EGREP "ut_host" >/dev/null 2>&1; then : 15572 eval "$ossh_varname=yes" 15573else 15574 eval "$ossh_varname=no" 15575fi 15576rm -f conftest* 15577 15578fi 15579 15580 ossh_result=`eval 'echo $'"$ossh_varname"` 15581 if test -n "`echo $ossh_varname`"; then 15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 15583$as_echo "$ossh_result" >&6; } 15584 if test "x$ossh_result" = "xyes"; then 15585 15586$as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h 15587 15588 fi 15589 else 15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15591$as_echo "no" >&6; } 15592 fi 15593 15594 15595# look for field 'syslen' in header 'utmpx.h' 15596 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 15597 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen 15598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5 15599$as_echo_n "checking for syslen field in utmpx.h... " >&6; } 15600 if eval \${$ossh_varname+:} false; then : 15601 $as_echo_n "(cached) " >&6 15602else 15603 15604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15605/* end confdefs.h. */ 15606#include <utmpx.h> 15607 15608_ACEOF 15609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15610 $EGREP "syslen" >/dev/null 2>&1; then : 15611 eval "$ossh_varname=yes" 15612else 15613 eval "$ossh_varname=no" 15614fi 15615rm -f conftest* 15616 15617fi 15618 15619 ossh_result=`eval 'echo $'"$ossh_varname"` 15620 if test -n "`echo $ossh_varname`"; then 15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 15622$as_echo "$ossh_result" >&6; } 15623 if test "x$ossh_result" = "xyes"; then 15624 15625$as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h 15626 15627 fi 15628 else 15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15630$as_echo "no" >&6; } 15631 fi 15632 15633 15634# look for field 'ut_pid' in header 'utmp.h' 15635 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 15636 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid 15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5 15638$as_echo_n "checking for ut_pid field in utmp.h... " >&6; } 15639 if eval \${$ossh_varname+:} false; then : 15640 $as_echo_n "(cached) " >&6 15641else 15642 15643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15644/* end confdefs.h. */ 15645#include <utmp.h> 15646 15647_ACEOF 15648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15649 $EGREP "ut_pid" >/dev/null 2>&1; then : 15650 eval "$ossh_varname=yes" 15651else 15652 eval "$ossh_varname=no" 15653fi 15654rm -f conftest* 15655 15656fi 15657 15658 ossh_result=`eval 'echo $'"$ossh_varname"` 15659 if test -n "`echo $ossh_varname`"; then 15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 15661$as_echo "$ossh_result" >&6; } 15662 if test "x$ossh_result" = "xyes"; then 15663 15664$as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h 15665 15666 fi 15667 else 15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15669$as_echo "no" >&6; } 15670 fi 15671 15672 15673# look for field 'ut_type' in header 'utmp.h' 15674 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 15675 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type 15676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5 15677$as_echo_n "checking for ut_type field in utmp.h... " >&6; } 15678 if eval \${$ossh_varname+:} false; then : 15679 $as_echo_n "(cached) " >&6 15680else 15681 15682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15683/* end confdefs.h. */ 15684#include <utmp.h> 15685 15686_ACEOF 15687if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15688 $EGREP "ut_type" >/dev/null 2>&1; then : 15689 eval "$ossh_varname=yes" 15690else 15691 eval "$ossh_varname=no" 15692fi 15693rm -f conftest* 15694 15695fi 15696 15697 ossh_result=`eval 'echo $'"$ossh_varname"` 15698 if test -n "`echo $ossh_varname`"; then 15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 15700$as_echo "$ossh_result" >&6; } 15701 if test "x$ossh_result" = "xyes"; then 15702 15703$as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h 15704 15705 fi 15706 else 15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15708$as_echo "no" >&6; } 15709 fi 15710 15711 15712# look for field 'ut_type' in header 'utmpx.h' 15713 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 15714 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type 15715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5 15716$as_echo_n "checking for ut_type field in utmpx.h... " >&6; } 15717 if eval \${$ossh_varname+:} false; then : 15718 $as_echo_n "(cached) " >&6 15719else 15720 15721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15722/* end confdefs.h. */ 15723#include <utmpx.h> 15724 15725_ACEOF 15726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15727 $EGREP "ut_type" >/dev/null 2>&1; then : 15728 eval "$ossh_varname=yes" 15729else 15730 eval "$ossh_varname=no" 15731fi 15732rm -f conftest* 15733 15734fi 15735 15736 ossh_result=`eval 'echo $'"$ossh_varname"` 15737 if test -n "`echo $ossh_varname`"; then 15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 15739$as_echo "$ossh_result" >&6; } 15740 if test "x$ossh_result" = "xyes"; then 15741 15742$as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h 15743 15744 fi 15745 else 15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15747$as_echo "no" >&6; } 15748 fi 15749 15750 15751# look for field 'ut_tv' in header 'utmp.h' 15752 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 15753 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv 15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5 15755$as_echo_n "checking for ut_tv field in utmp.h... " >&6; } 15756 if eval \${$ossh_varname+:} false; then : 15757 $as_echo_n "(cached) " >&6 15758else 15759 15760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15761/* end confdefs.h. */ 15762#include <utmp.h> 15763 15764_ACEOF 15765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15766 $EGREP "ut_tv" >/dev/null 2>&1; then : 15767 eval "$ossh_varname=yes" 15768else 15769 eval "$ossh_varname=no" 15770fi 15771rm -f conftest* 15772 15773fi 15774 15775 ossh_result=`eval 'echo $'"$ossh_varname"` 15776 if test -n "`echo $ossh_varname`"; then 15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 15778$as_echo "$ossh_result" >&6; } 15779 if test "x$ossh_result" = "xyes"; then 15780 15781$as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h 15782 15783 fi 15784 else 15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15786$as_echo "no" >&6; } 15787 fi 15788 15789 15790# look for field 'ut_id' in header 'utmp.h' 15791 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 15792 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id 15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5 15794$as_echo_n "checking for ut_id field in utmp.h... " >&6; } 15795 if eval \${$ossh_varname+:} false; then : 15796 $as_echo_n "(cached) " >&6 15797else 15798 15799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15800/* end confdefs.h. */ 15801#include <utmp.h> 15802 15803_ACEOF 15804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15805 $EGREP "ut_id" >/dev/null 2>&1; then : 15806 eval "$ossh_varname=yes" 15807else 15808 eval "$ossh_varname=no" 15809fi 15810rm -f conftest* 15811 15812fi 15813 15814 ossh_result=`eval 'echo $'"$ossh_varname"` 15815 if test -n "`echo $ossh_varname`"; then 15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 15817$as_echo "$ossh_result" >&6; } 15818 if test "x$ossh_result" = "xyes"; then 15819 15820$as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h 15821 15822 fi 15823 else 15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15825$as_echo "no" >&6; } 15826 fi 15827 15828 15829# look for field 'ut_id' in header 'utmpx.h' 15830 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 15831 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id 15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5 15833$as_echo_n "checking for ut_id field in utmpx.h... " >&6; } 15834 if eval \${$ossh_varname+:} false; then : 15835 $as_echo_n "(cached) " >&6 15836else 15837 15838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15839/* end confdefs.h. */ 15840#include <utmpx.h> 15841 15842_ACEOF 15843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15844 $EGREP "ut_id" >/dev/null 2>&1; then : 15845 eval "$ossh_varname=yes" 15846else 15847 eval "$ossh_varname=no" 15848fi 15849rm -f conftest* 15850 15851fi 15852 15853 ossh_result=`eval 'echo $'"$ossh_varname"` 15854 if test -n "`echo $ossh_varname`"; then 15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 15856$as_echo "$ossh_result" >&6; } 15857 if test "x$ossh_result" = "xyes"; then 15858 15859$as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h 15860 15861 fi 15862 else 15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15864$as_echo "no" >&6; } 15865 fi 15866 15867 15868# look for field 'ut_addr' in header 'utmp.h' 15869 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 15870 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr 15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5 15872$as_echo_n "checking for ut_addr field in utmp.h... " >&6; } 15873 if eval \${$ossh_varname+:} false; then : 15874 $as_echo_n "(cached) " >&6 15875else 15876 15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15878/* end confdefs.h. */ 15879#include <utmp.h> 15880 15881_ACEOF 15882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15883 $EGREP "ut_addr" >/dev/null 2>&1; then : 15884 eval "$ossh_varname=yes" 15885else 15886 eval "$ossh_varname=no" 15887fi 15888rm -f conftest* 15889 15890fi 15891 15892 ossh_result=`eval 'echo $'"$ossh_varname"` 15893 if test -n "`echo $ossh_varname`"; then 15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 15895$as_echo "$ossh_result" >&6; } 15896 if test "x$ossh_result" = "xyes"; then 15897 15898$as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h 15899 15900 fi 15901 else 15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15903$as_echo "no" >&6; } 15904 fi 15905 15906 15907# look for field 'ut_addr' in header 'utmpx.h' 15908 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 15909 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr 15910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5 15911$as_echo_n "checking for ut_addr field in utmpx.h... " >&6; } 15912 if eval \${$ossh_varname+:} false; then : 15913 $as_echo_n "(cached) " >&6 15914else 15915 15916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15917/* end confdefs.h. */ 15918#include <utmpx.h> 15919 15920_ACEOF 15921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15922 $EGREP "ut_addr" >/dev/null 2>&1; then : 15923 eval "$ossh_varname=yes" 15924else 15925 eval "$ossh_varname=no" 15926fi 15927rm -f conftest* 15928 15929fi 15930 15931 ossh_result=`eval 'echo $'"$ossh_varname"` 15932 if test -n "`echo $ossh_varname`"; then 15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 15934$as_echo "$ossh_result" >&6; } 15935 if test "x$ossh_result" = "xyes"; then 15936 15937$as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h 15938 15939 fi 15940 else 15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15942$as_echo "no" >&6; } 15943 fi 15944 15945 15946# look for field 'ut_addr_v6' in header 'utmp.h' 15947 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 15948 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 15949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5 15950$as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; } 15951 if eval \${$ossh_varname+:} false; then : 15952 $as_echo_n "(cached) " >&6 15953else 15954 15955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15956/* end confdefs.h. */ 15957#include <utmp.h> 15958 15959_ACEOF 15960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15961 $EGREP "ut_addr_v6" >/dev/null 2>&1; then : 15962 eval "$ossh_varname=yes" 15963else 15964 eval "$ossh_varname=no" 15965fi 15966rm -f conftest* 15967 15968fi 15969 15970 ossh_result=`eval 'echo $'"$ossh_varname"` 15971 if test -n "`echo $ossh_varname`"; then 15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 15973$as_echo "$ossh_result" >&6; } 15974 if test "x$ossh_result" = "xyes"; then 15975 15976$as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h 15977 15978 fi 15979 else 15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15981$as_echo "no" >&6; } 15982 fi 15983 15984 15985# look for field 'ut_addr_v6' in header 'utmpx.h' 15986 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 15987 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 15988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5 15989$as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; } 15990 if eval \${$ossh_varname+:} false; then : 15991 $as_echo_n "(cached) " >&6 15992else 15993 15994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15995/* end confdefs.h. */ 15996#include <utmpx.h> 15997 15998_ACEOF 15999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16000 $EGREP "ut_addr_v6" >/dev/null 2>&1; then : 16001 eval "$ossh_varname=yes" 16002else 16003 eval "$ossh_varname=no" 16004fi 16005rm -f conftest* 16006 16007fi 16008 16009 ossh_result=`eval 'echo $'"$ossh_varname"` 16010 if test -n "`echo $ossh_varname`"; then 16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 16012$as_echo "$ossh_result" >&6; } 16013 if test "x$ossh_result" = "xyes"; then 16014 16015$as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h 16016 16017 fi 16018 else 16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16020$as_echo "no" >&6; } 16021 fi 16022 16023 16024# look for field 'ut_exit' in header 'utmp.h' 16025 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 16026 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit 16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5 16028$as_echo_n "checking for ut_exit field in utmp.h... " >&6; } 16029 if eval \${$ossh_varname+:} false; then : 16030 $as_echo_n "(cached) " >&6 16031else 16032 16033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16034/* end confdefs.h. */ 16035#include <utmp.h> 16036 16037_ACEOF 16038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16039 $EGREP "ut_exit" >/dev/null 2>&1; then : 16040 eval "$ossh_varname=yes" 16041else 16042 eval "$ossh_varname=no" 16043fi 16044rm -f conftest* 16045 16046fi 16047 16048 ossh_result=`eval 'echo $'"$ossh_varname"` 16049 if test -n "`echo $ossh_varname`"; then 16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 16051$as_echo "$ossh_result" >&6; } 16052 if test "x$ossh_result" = "xyes"; then 16053 16054$as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h 16055 16056 fi 16057 else 16058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16059$as_echo "no" >&6; } 16060 fi 16061 16062 16063# look for field 'ut_time' in header 'utmp.h' 16064 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 16065 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time 16066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5 16067$as_echo_n "checking for ut_time field in utmp.h... " >&6; } 16068 if eval \${$ossh_varname+:} false; then : 16069 $as_echo_n "(cached) " >&6 16070else 16071 16072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16073/* end confdefs.h. */ 16074#include <utmp.h> 16075 16076_ACEOF 16077if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16078 $EGREP "ut_time" >/dev/null 2>&1; then : 16079 eval "$ossh_varname=yes" 16080else 16081 eval "$ossh_varname=no" 16082fi 16083rm -f conftest* 16084 16085fi 16086 16087 ossh_result=`eval 'echo $'"$ossh_varname"` 16088 if test -n "`echo $ossh_varname`"; then 16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 16090$as_echo "$ossh_result" >&6; } 16091 if test "x$ossh_result" = "xyes"; then 16092 16093$as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h 16094 16095 fi 16096 else 16097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16098$as_echo "no" >&6; } 16099 fi 16100 16101 16102# look for field 'ut_time' in header 'utmpx.h' 16103 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 16104 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time 16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5 16106$as_echo_n "checking for ut_time field in utmpx.h... " >&6; } 16107 if eval \${$ossh_varname+:} false; then : 16108 $as_echo_n "(cached) " >&6 16109else 16110 16111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16112/* end confdefs.h. */ 16113#include <utmpx.h> 16114 16115_ACEOF 16116if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16117 $EGREP "ut_time" >/dev/null 2>&1; then : 16118 eval "$ossh_varname=yes" 16119else 16120 eval "$ossh_varname=no" 16121fi 16122rm -f conftest* 16123 16124fi 16125 16126 ossh_result=`eval 'echo $'"$ossh_varname"` 16127 if test -n "`echo $ossh_varname`"; then 16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 16129$as_echo "$ossh_result" >&6; } 16130 if test "x$ossh_result" = "xyes"; then 16131 16132$as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h 16133 16134 fi 16135 else 16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16137$as_echo "no" >&6; } 16138 fi 16139 16140 16141# look for field 'ut_tv' in header 'utmpx.h' 16142 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 16143 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv 16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5 16145$as_echo_n "checking for ut_tv field in utmpx.h... " >&6; } 16146 if eval \${$ossh_varname+:} false; then : 16147 $as_echo_n "(cached) " >&6 16148else 16149 16150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16151/* end confdefs.h. */ 16152#include <utmpx.h> 16153 16154_ACEOF 16155if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16156 $EGREP "ut_tv" >/dev/null 2>&1; then : 16157 eval "$ossh_varname=yes" 16158else 16159 eval "$ossh_varname=no" 16160fi 16161rm -f conftest* 16162 16163fi 16164 16165 ossh_result=`eval 'echo $'"$ossh_varname"` 16166 if test -n "`echo $ossh_varname`"; then 16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 16168$as_echo "$ossh_result" >&6; } 16169 if test "x$ossh_result" = "xyes"; then 16170 16171$as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h 16172 16173 fi 16174 else 16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16176$as_echo "no" >&6; } 16177 fi 16178 16179 16180ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" 16181if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : 16182 16183cat >>confdefs.h <<_ACEOF 16184#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 16185_ACEOF 16186 16187 16188fi 16189 16190ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " 16191#include <sys/types.h> 16192#include <pwd.h> 16193 16194" 16195if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : 16196 16197cat >>confdefs.h <<_ACEOF 16198#define HAVE_STRUCT_PASSWD_PW_GECOS 1 16199_ACEOF 16200 16201 16202fi 16203ac_fn_c_check_member "$LINENO" "struct passwd" "pw_class" "ac_cv_member_struct_passwd_pw_class" " 16204#include <sys/types.h> 16205#include <pwd.h> 16206 16207" 16208if test "x$ac_cv_member_struct_passwd_pw_class" = xyes; then : 16209 16210cat >>confdefs.h <<_ACEOF 16211#define HAVE_STRUCT_PASSWD_PW_CLASS 1 16212_ACEOF 16213 16214 16215fi 16216ac_fn_c_check_member "$LINENO" "struct passwd" "pw_change" "ac_cv_member_struct_passwd_pw_change" " 16217#include <sys/types.h> 16218#include <pwd.h> 16219 16220" 16221if test "x$ac_cv_member_struct_passwd_pw_change" = xyes; then : 16222 16223cat >>confdefs.h <<_ACEOF 16224#define HAVE_STRUCT_PASSWD_PW_CHANGE 1 16225_ACEOF 16226 16227 16228fi 16229ac_fn_c_check_member "$LINENO" "struct passwd" "pw_expire" "ac_cv_member_struct_passwd_pw_expire" " 16230#include <sys/types.h> 16231#include <pwd.h> 16232 16233" 16234if test "x$ac_cv_member_struct_passwd_pw_expire" = xyes; then : 16235 16236cat >>confdefs.h <<_ACEOF 16237#define HAVE_STRUCT_PASSWD_PW_EXPIRE 1 16238_ACEOF 16239 16240 16241fi 16242 16243 16244ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" " 16245#include <stdio.h> 16246#if HAVE_SYS_TYPES_H 16247# include <sys/types.h> 16248#endif 16249#include <netinet/in.h> 16250#include <arpa/nameser.h> 16251#include <resolv.h> 16252 16253" 16254if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then : 16255 16256else 16257 16258$as_echo "#define __res_state state" >>confdefs.h 16259 16260fi 16261 16262 16263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5 16264$as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; } 16265if ${ac_cv_have_ss_family_in_struct_ss+:} false; then : 16266 $as_echo_n "(cached) " >&6 16267else 16268 16269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16270/* end confdefs.h. */ 16271 16272#include <sys/types.h> 16273#include <sys/socket.h> 16274 16275int 16276main () 16277{ 16278 struct sockaddr_storage s; s.ss_family = 1; 16279 ; 16280 return 0; 16281} 16282_ACEOF 16283if ac_fn_c_try_compile "$LINENO"; then : 16284 ac_cv_have_ss_family_in_struct_ss="yes" 16285else 16286 ac_cv_have_ss_family_in_struct_ss="no" 16287fi 16288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16289 16290fi 16291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5 16292$as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; } 16293if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then 16294 16295$as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h 16296 16297fi 16298 16299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5 16300$as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; } 16301if ${ac_cv_have___ss_family_in_struct_ss+:} false; then : 16302 $as_echo_n "(cached) " >&6 16303else 16304 16305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16306/* end confdefs.h. */ 16307 16308#include <sys/types.h> 16309#include <sys/socket.h> 16310 16311int 16312main () 16313{ 16314 struct sockaddr_storage s; s.__ss_family = 1; 16315 ; 16316 return 0; 16317} 16318_ACEOF 16319if ac_fn_c_try_compile "$LINENO"; then : 16320 ac_cv_have___ss_family_in_struct_ss="yes" 16321else 16322 ac_cv_have___ss_family_in_struct_ss="no" 16323 16324fi 16325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16326 16327fi 16328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5 16329$as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; } 16330if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then 16331 16332$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h 16333 16334fi 16335 16336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5 16337$as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; } 16338if ${ac_cv_have_accrights_in_msghdr+:} false; then : 16339 $as_echo_n "(cached) " >&6 16340else 16341 16342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16343/* end confdefs.h. */ 16344 16345#include <sys/types.h> 16346#include <sys/socket.h> 16347#include <sys/uio.h> 16348 16349int 16350main () 16351{ 16352 16353#ifdef msg_accrights 16354#error "msg_accrights is a macro" 16355exit(1); 16356#endif 16357struct msghdr m; 16358m.msg_accrights = 0; 16359exit(0); 16360 16361 ; 16362 return 0; 16363} 16364_ACEOF 16365if ac_fn_c_try_compile "$LINENO"; then : 16366 ac_cv_have_accrights_in_msghdr="yes" 16367else 16368 ac_cv_have_accrights_in_msghdr="no" 16369 16370fi 16371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16372 16373fi 16374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5 16375$as_echo "$ac_cv_have_accrights_in_msghdr" >&6; } 16376if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then 16377 16378$as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h 16379 16380fi 16381 16382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5 16383$as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; } 16384cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16385/* end confdefs.h. */ 16386 16387#include <sys/param.h> 16388#include <sys/stat.h> 16389#ifdef HAVE_SYS_TIME_H 16390# include <sys/time.h> 16391#endif 16392#ifdef HAVE_SYS_MOUNT_H 16393#include <sys/mount.h> 16394#endif 16395#ifdef HAVE_SYS_STATVFS_H 16396#include <sys/statvfs.h> 16397#endif 16398 16399int 16400main () 16401{ 16402 struct statvfs s; s.f_fsid = 0; 16403 ; 16404 return 0; 16405} 16406_ACEOF 16407if ac_fn_c_try_compile "$LINENO"; then : 16408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16409$as_echo "yes" >&6; } 16410else 16411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16412$as_echo "no" >&6; } 16413 16414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5 16415$as_echo_n "checking if fsid_t has member val... " >&6; } 16416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16417/* end confdefs.h. */ 16418 16419#include <sys/types.h> 16420#include <sys/statvfs.h> 16421 16422int 16423main () 16424{ 16425 fsid_t t; t.val[0] = 0; 16426 ; 16427 return 0; 16428} 16429_ACEOF 16430if ac_fn_c_try_compile "$LINENO"; then : 16431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16432$as_echo "yes" >&6; } 16433 16434$as_echo "#define FSID_HAS_VAL 1" >>confdefs.h 16435 16436else 16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16438$as_echo "no" >&6; } 16439fi 16440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16441 16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5 16443$as_echo_n "checking if f_fsid has member __val... " >&6; } 16444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16445/* end confdefs.h. */ 16446 16447#include <sys/types.h> 16448#include <sys/statvfs.h> 16449 16450int 16451main () 16452{ 16453 fsid_t t; t.__val[0] = 0; 16454 ; 16455 return 0; 16456} 16457_ACEOF 16458if ac_fn_c_try_compile "$LINENO"; then : 16459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16460$as_echo "yes" >&6; } 16461 16462$as_echo "#define FSID_HAS___VAL 1" >>confdefs.h 16463 16464else 16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16466$as_echo "no" >&6; } 16467fi 16468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16469 16470fi 16471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16472 16473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5 16474$as_echo_n "checking for msg_control field in struct msghdr... " >&6; } 16475if ${ac_cv_have_control_in_msghdr+:} false; then : 16476 $as_echo_n "(cached) " >&6 16477else 16478 16479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16480/* end confdefs.h. */ 16481 16482#include <sys/types.h> 16483#include <sys/socket.h> 16484#include <sys/uio.h> 16485 16486int 16487main () 16488{ 16489 16490#ifdef msg_control 16491#error "msg_control is a macro" 16492exit(1); 16493#endif 16494struct msghdr m; 16495m.msg_control = 0; 16496exit(0); 16497 16498 ; 16499 return 0; 16500} 16501_ACEOF 16502if ac_fn_c_try_compile "$LINENO"; then : 16503 ac_cv_have_control_in_msghdr="yes" 16504else 16505 ac_cv_have_control_in_msghdr="no" 16506 16507fi 16508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16509 16510fi 16511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5 16512$as_echo "$ac_cv_have_control_in_msghdr" >&6; } 16513if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then 16514 16515$as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h 16516 16517fi 16518 16519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5 16520$as_echo_n "checking if libc defines __progname... " >&6; } 16521if ${ac_cv_libc_defines___progname+:} false; then : 16522 $as_echo_n "(cached) " >&6 16523else 16524 16525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16526/* end confdefs.h. */ 16527 16528int 16529main () 16530{ 16531 extern char *__progname; printf("%s", __progname); 16532 ; 16533 return 0; 16534} 16535_ACEOF 16536if ac_fn_c_try_link "$LINENO"; then : 16537 ac_cv_libc_defines___progname="yes" 16538else 16539 ac_cv_libc_defines___progname="no" 16540 16541fi 16542rm -f core conftest.err conftest.$ac_objext \ 16543 conftest$ac_exeext conftest.$ac_ext 16544 16545fi 16546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5 16547$as_echo "$ac_cv_libc_defines___progname" >&6; } 16548if test "x$ac_cv_libc_defines___progname" = "xyes" ; then 16549 16550$as_echo "#define HAVE___PROGNAME 1" >>confdefs.h 16551 16552fi 16553 16554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5 16555$as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; } 16556if ${ac_cv_cc_implements___FUNCTION__+:} false; then : 16557 $as_echo_n "(cached) " >&6 16558else 16559 16560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16561/* end confdefs.h. */ 16562 #include <stdio.h> 16563int 16564main () 16565{ 16566 printf("%s", __FUNCTION__); 16567 ; 16568 return 0; 16569} 16570_ACEOF 16571if ac_fn_c_try_link "$LINENO"; then : 16572 ac_cv_cc_implements___FUNCTION__="yes" 16573else 16574 ac_cv_cc_implements___FUNCTION__="no" 16575 16576fi 16577rm -f core conftest.err conftest.$ac_objext \ 16578 conftest$ac_exeext conftest.$ac_ext 16579 16580fi 16581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5 16582$as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; } 16583if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then 16584 16585$as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h 16586 16587fi 16588 16589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5 16590$as_echo_n "checking whether $CC implements __func__... " >&6; } 16591if ${ac_cv_cc_implements___func__+:} false; then : 16592 $as_echo_n "(cached) " >&6 16593else 16594 16595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16596/* end confdefs.h. */ 16597 #include <stdio.h> 16598int 16599main () 16600{ 16601 printf("%s", __func__); 16602 ; 16603 return 0; 16604} 16605_ACEOF 16606if ac_fn_c_try_link "$LINENO"; then : 16607 ac_cv_cc_implements___func__="yes" 16608else 16609 ac_cv_cc_implements___func__="no" 16610 16611fi 16612rm -f core conftest.err conftest.$ac_objext \ 16613 conftest$ac_exeext conftest.$ac_ext 16614 16615fi 16616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5 16617$as_echo "$ac_cv_cc_implements___func__" >&6; } 16618if test "x$ac_cv_cc_implements___func__" = "xyes" ; then 16619 16620$as_echo "#define HAVE___func__ 1" >>confdefs.h 16621 16622fi 16623 16624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5 16625$as_echo_n "checking whether va_copy exists... " >&6; } 16626if ${ac_cv_have_va_copy+:} false; then : 16627 $as_echo_n "(cached) " >&6 16628else 16629 16630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16631/* end confdefs.h. */ 16632 16633#include <stdarg.h> 16634va_list x,y; 16635 16636int 16637main () 16638{ 16639 va_copy(x,y); 16640 ; 16641 return 0; 16642} 16643_ACEOF 16644if ac_fn_c_try_link "$LINENO"; then : 16645 ac_cv_have_va_copy="yes" 16646else 16647 ac_cv_have_va_copy="no" 16648 16649fi 16650rm -f core conftest.err conftest.$ac_objext \ 16651 conftest$ac_exeext conftest.$ac_ext 16652 16653fi 16654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5 16655$as_echo "$ac_cv_have_va_copy" >&6; } 16656if test "x$ac_cv_have_va_copy" = "xyes" ; then 16657 16658$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h 16659 16660fi 16661 16662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5 16663$as_echo_n "checking whether __va_copy exists... " >&6; } 16664if ${ac_cv_have___va_copy+:} false; then : 16665 $as_echo_n "(cached) " >&6 16666else 16667 16668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16669/* end confdefs.h. */ 16670 16671#include <stdarg.h> 16672va_list x,y; 16673 16674int 16675main () 16676{ 16677 __va_copy(x,y); 16678 ; 16679 return 0; 16680} 16681_ACEOF 16682if ac_fn_c_try_link "$LINENO"; then : 16683 ac_cv_have___va_copy="yes" 16684else 16685 ac_cv_have___va_copy="no" 16686 16687fi 16688rm -f core conftest.err conftest.$ac_objext \ 16689 conftest$ac_exeext conftest.$ac_ext 16690 16691fi 16692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5 16693$as_echo "$ac_cv_have___va_copy" >&6; } 16694if test "x$ac_cv_have___va_copy" = "xyes" ; then 16695 16696$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h 16697 16698fi 16699 16700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5 16701$as_echo_n "checking whether getopt has optreset support... " >&6; } 16702if ${ac_cv_have_getopt_optreset+:} false; then : 16703 $as_echo_n "(cached) " >&6 16704else 16705 16706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16707/* end confdefs.h. */ 16708 #include <getopt.h> 16709int 16710main () 16711{ 16712 extern int optreset; optreset = 0; 16713 ; 16714 return 0; 16715} 16716_ACEOF 16717if ac_fn_c_try_link "$LINENO"; then : 16718 ac_cv_have_getopt_optreset="yes" 16719else 16720 ac_cv_have_getopt_optreset="no" 16721 16722fi 16723rm -f core conftest.err conftest.$ac_objext \ 16724 conftest$ac_exeext conftest.$ac_ext 16725 16726fi 16727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5 16728$as_echo "$ac_cv_have_getopt_optreset" >&6; } 16729if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then 16730 16731$as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h 16732 16733fi 16734 16735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5 16736$as_echo_n "checking if libc defines sys_errlist... " >&6; } 16737if ${ac_cv_libc_defines_sys_errlist+:} false; then : 16738 $as_echo_n "(cached) " >&6 16739else 16740 16741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16742/* end confdefs.h. */ 16743 16744int 16745main () 16746{ 16747 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); 16748 ; 16749 return 0; 16750} 16751_ACEOF 16752if ac_fn_c_try_link "$LINENO"; then : 16753 ac_cv_libc_defines_sys_errlist="yes" 16754else 16755 ac_cv_libc_defines_sys_errlist="no" 16756 16757fi 16758rm -f core conftest.err conftest.$ac_objext \ 16759 conftest$ac_exeext conftest.$ac_ext 16760 16761fi 16762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5 16763$as_echo "$ac_cv_libc_defines_sys_errlist" >&6; } 16764if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then 16765 16766$as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h 16767 16768fi 16769 16770 16771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5 16772$as_echo_n "checking if libc defines sys_nerr... " >&6; } 16773if ${ac_cv_libc_defines_sys_nerr+:} false; then : 16774 $as_echo_n "(cached) " >&6 16775else 16776 16777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16778/* end confdefs.h. */ 16779 16780int 16781main () 16782{ 16783 extern int sys_nerr; printf("%i", sys_nerr); 16784 ; 16785 return 0; 16786} 16787_ACEOF 16788if ac_fn_c_try_link "$LINENO"; then : 16789 ac_cv_libc_defines_sys_nerr="yes" 16790else 16791 ac_cv_libc_defines_sys_nerr="no" 16792 16793fi 16794rm -f core conftest.err conftest.$ac_objext \ 16795 conftest$ac_exeext conftest.$ac_ext 16796 16797fi 16798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5 16799$as_echo "$ac_cv_libc_defines_sys_nerr" >&6; } 16800if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then 16801 16802$as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h 16803 16804fi 16805 16806# Check libraries needed by DNS fingerprint support 16807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5 16808$as_echo_n "checking for library containing getrrsetbyname... " >&6; } 16809if ${ac_cv_search_getrrsetbyname+:} false; then : 16810 $as_echo_n "(cached) " >&6 16811else 16812 ac_func_search_save_LIBS=$LIBS 16813cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16814/* end confdefs.h. */ 16815 16816/* Override any GCC internal prototype to avoid an error. 16817 Use char because int might match the return type of a GCC 16818 builtin and then its argument prototype would still apply. */ 16819#ifdef __cplusplus 16820extern "C" 16821#endif 16822char getrrsetbyname (); 16823int 16824main () 16825{ 16826return getrrsetbyname (); 16827 ; 16828 return 0; 16829} 16830_ACEOF 16831for ac_lib in '' resolv; do 16832 if test -z "$ac_lib"; then 16833 ac_res="none required" 16834 else 16835 ac_res=-l$ac_lib 16836 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16837 fi 16838 if ac_fn_c_try_link "$LINENO"; then : 16839 ac_cv_search_getrrsetbyname=$ac_res 16840fi 16841rm -f core conftest.err conftest.$ac_objext \ 16842 conftest$ac_exeext 16843 if ${ac_cv_search_getrrsetbyname+:} false; then : 16844 break 16845fi 16846done 16847if ${ac_cv_search_getrrsetbyname+:} false; then : 16848 16849else 16850 ac_cv_search_getrrsetbyname=no 16851fi 16852rm conftest.$ac_ext 16853LIBS=$ac_func_search_save_LIBS 16854fi 16855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5 16856$as_echo "$ac_cv_search_getrrsetbyname" >&6; } 16857ac_res=$ac_cv_search_getrrsetbyname 16858if test "$ac_res" != no; then : 16859 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16860 16861$as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h 16862 16863else 16864 16865 # Needed by our getrrsetbyname() 16866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5 16867$as_echo_n "checking for library containing res_query... " >&6; } 16868if ${ac_cv_search_res_query+:} false; then : 16869 $as_echo_n "(cached) " >&6 16870else 16871 ac_func_search_save_LIBS=$LIBS 16872cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16873/* end confdefs.h. */ 16874 16875/* Override any GCC internal prototype to avoid an error. 16876 Use char because int might match the return type of a GCC 16877 builtin and then its argument prototype would still apply. */ 16878#ifdef __cplusplus 16879extern "C" 16880#endif 16881char res_query (); 16882int 16883main () 16884{ 16885return res_query (); 16886 ; 16887 return 0; 16888} 16889_ACEOF 16890for ac_lib in '' resolv; do 16891 if test -z "$ac_lib"; then 16892 ac_res="none required" 16893 else 16894 ac_res=-l$ac_lib 16895 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16896 fi 16897 if ac_fn_c_try_link "$LINENO"; then : 16898 ac_cv_search_res_query=$ac_res 16899fi 16900rm -f core conftest.err conftest.$ac_objext \ 16901 conftest$ac_exeext 16902 if ${ac_cv_search_res_query+:} false; then : 16903 break 16904fi 16905done 16906if ${ac_cv_search_res_query+:} false; then : 16907 16908else 16909 ac_cv_search_res_query=no 16910fi 16911rm conftest.$ac_ext 16912LIBS=$ac_func_search_save_LIBS 16913fi 16914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5 16915$as_echo "$ac_cv_search_res_query" >&6; } 16916ac_res=$ac_cv_search_res_query 16917if test "$ac_res" != no; then : 16918 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16919 16920fi 16921 16922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5 16923$as_echo_n "checking for library containing dn_expand... " >&6; } 16924if ${ac_cv_search_dn_expand+:} false; then : 16925 $as_echo_n "(cached) " >&6 16926else 16927 ac_func_search_save_LIBS=$LIBS 16928cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16929/* end confdefs.h. */ 16930 16931/* Override any GCC internal prototype to avoid an error. 16932 Use char because int might match the return type of a GCC 16933 builtin and then its argument prototype would still apply. */ 16934#ifdef __cplusplus 16935extern "C" 16936#endif 16937char dn_expand (); 16938int 16939main () 16940{ 16941return dn_expand (); 16942 ; 16943 return 0; 16944} 16945_ACEOF 16946for ac_lib in '' resolv; do 16947 if test -z "$ac_lib"; then 16948 ac_res="none required" 16949 else 16950 ac_res=-l$ac_lib 16951 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16952 fi 16953 if ac_fn_c_try_link "$LINENO"; then : 16954 ac_cv_search_dn_expand=$ac_res 16955fi 16956rm -f core conftest.err conftest.$ac_objext \ 16957 conftest$ac_exeext 16958 if ${ac_cv_search_dn_expand+:} false; then : 16959 break 16960fi 16961done 16962if ${ac_cv_search_dn_expand+:} false; then : 16963 16964else 16965 ac_cv_search_dn_expand=no 16966fi 16967rm conftest.$ac_ext 16968LIBS=$ac_func_search_save_LIBS 16969fi 16970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5 16971$as_echo "$ac_cv_search_dn_expand" >&6; } 16972ac_res=$ac_cv_search_dn_expand 16973if test "$ac_res" != no; then : 16974 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16975 16976fi 16977 16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5 16979$as_echo_n "checking if res_query will link... " >&6; } 16980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16981/* end confdefs.h. */ 16982 16983#include <sys/types.h> 16984#include <netinet/in.h> 16985#include <arpa/nameser.h> 16986#include <netdb.h> 16987#include <resolv.h> 16988 16989int 16990main () 16991{ 16992 16993 res_query (0, 0, 0, 0, 0); 16994 16995 ; 16996 return 0; 16997} 16998_ACEOF 16999if ac_fn_c_try_link "$LINENO"; then : 17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17001$as_echo "yes" >&6; } 17002else 17003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17004$as_echo "no" >&6; } 17005 saved_LIBS="$LIBS" 17006 LIBS="$LIBS -lresolv" 17007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5 17008$as_echo_n "checking for res_query in -lresolv... " >&6; } 17009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17010/* end confdefs.h. */ 17011 17012#include <sys/types.h> 17013#include <netinet/in.h> 17014#include <arpa/nameser.h> 17015#include <netdb.h> 17016#include <resolv.h> 17017 17018int 17019main () 17020{ 17021 17022 res_query (0, 0, 0, 0, 0); 17023 17024 ; 17025 return 0; 17026} 17027_ACEOF 17028if ac_fn_c_try_link "$LINENO"; then : 17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17030$as_echo "yes" >&6; } 17031else 17032 LIBS="$saved_LIBS" 17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17034$as_echo "no" >&6; } 17035fi 17036rm -f core conftest.err conftest.$ac_objext \ 17037 conftest$ac_exeext conftest.$ac_ext 17038 17039fi 17040rm -f core conftest.err conftest.$ac_objext \ 17041 conftest$ac_exeext conftest.$ac_ext 17042 for ac_func in _getshort _getlong 17043do : 17044 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17045ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17046if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17047 cat >>confdefs.h <<_ACEOF 17048#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17049_ACEOF 17050 17051fi 17052done 17053 17054 ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h> 17055 #include <arpa/nameser.h> 17056" 17057if test "x$ac_cv_have_decl__getshort" = xyes; then : 17058 ac_have_decl=1 17059else 17060 ac_have_decl=0 17061fi 17062 17063cat >>confdefs.h <<_ACEOF 17064#define HAVE_DECL__GETSHORT $ac_have_decl 17065_ACEOF 17066ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h> 17067 #include <arpa/nameser.h> 17068" 17069if test "x$ac_cv_have_decl__getlong" = xyes; then : 17070 ac_have_decl=1 17071else 17072 ac_have_decl=0 17073fi 17074 17075cat >>confdefs.h <<_ACEOF 17076#define HAVE_DECL__GETLONG $ac_have_decl 17077_ACEOF 17078 17079 ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h> 17080" 17081if test "x$ac_cv_member_HEADER_ad" = xyes; then : 17082 17083$as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h 17084 17085fi 17086 17087 17088fi 17089 17090 17091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5 17092$as_echo_n "checking if struct __res_state _res is an extern... " >&6; } 17093cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17094/* end confdefs.h. */ 17095 17096#include <stdio.h> 17097#if HAVE_SYS_TYPES_H 17098# include <sys/types.h> 17099#endif 17100#include <netinet/in.h> 17101#include <arpa/nameser.h> 17102#include <resolv.h> 17103extern struct __res_state _res; 17104 17105int 17106main () 17107{ 17108 17109struct __res_state *volatile p = &_res; /* force resolution of _res */ 17110return 0; 17111 17112 ; 17113 return 0; 17114} 17115_ACEOF 17116if ac_fn_c_try_link "$LINENO"; then : 17117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17118$as_echo "yes" >&6; } 17119 17120$as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h 17121 17122 17123else 17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17125$as_echo "no" >&6; } 17126 17127fi 17128rm -f core conftest.err conftest.$ac_objext \ 17129 conftest$ac_exeext conftest.$ac_ext 17130 17131# Check whether user wants SELinux support 17132SELINUX_MSG="no" 17133LIBSELINUX="" 17134 17135# Check whether --with-selinux was given. 17136if test "${with_selinux+set}" = set; then : 17137 withval=$with_selinux; if test "x$withval" != "xno" ; then 17138 save_LIBS="$LIBS" 17139 17140$as_echo "#define WITH_SELINUX 1" >>confdefs.h 17141 17142 SELINUX_MSG="yes" 17143 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" 17144if test "x$ac_cv_header_selinux_selinux_h" = xyes; then : 17145 17146else 17147 as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5 17148fi 17149 17150 17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5 17152$as_echo_n "checking for setexeccon in -lselinux... " >&6; } 17153if ${ac_cv_lib_selinux_setexeccon+:} false; then : 17154 $as_echo_n "(cached) " >&6 17155else 17156 ac_check_lib_save_LIBS=$LIBS 17157LIBS="-lselinux $LIBS" 17158cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17159/* end confdefs.h. */ 17160 17161/* Override any GCC internal prototype to avoid an error. 17162 Use char because int might match the return type of a GCC 17163 builtin and then its argument prototype would still apply. */ 17164#ifdef __cplusplus 17165extern "C" 17166#endif 17167char setexeccon (); 17168int 17169main () 17170{ 17171return setexeccon (); 17172 ; 17173 return 0; 17174} 17175_ACEOF 17176if ac_fn_c_try_link "$LINENO"; then : 17177 ac_cv_lib_selinux_setexeccon=yes 17178else 17179 ac_cv_lib_selinux_setexeccon=no 17180fi 17181rm -f core conftest.err conftest.$ac_objext \ 17182 conftest$ac_exeext conftest.$ac_ext 17183LIBS=$ac_check_lib_save_LIBS 17184fi 17185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5 17186$as_echo "$ac_cv_lib_selinux_setexeccon" >&6; } 17187if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then : 17188 LIBSELINUX="-lselinux" 17189 LIBS="$LIBS -lselinux" 17190 17191else 17192 as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5 17193fi 17194 17195 SSHLIBS="$SSHLIBS $LIBSELINUX" 17196 SSHDLIBS="$SSHDLIBS $LIBSELINUX" 17197 for ac_func in getseuserbyname get_default_context_with_level 17198do : 17199 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17200ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17201if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17202 cat >>confdefs.h <<_ACEOF 17203#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17204_ACEOF 17205 17206fi 17207done 17208 17209 LIBS="$save_LIBS" 17210 fi 17211 17212fi 17213 17214 17215 17216 17217# Check whether user wants Kerberos 5 support 17218KRB5_MSG="no" 17219 17220# Check whether --with-kerberos5 was given. 17221if test "${with_kerberos5+set}" = set; then : 17222 withval=$with_kerberos5; if test "x$withval" != "xno" ; then 17223 if test "x$withval" = "xyes" ; then 17224 KRB5ROOT="/usr/local" 17225 else 17226 KRB5ROOT=${withval} 17227 fi 17228 17229 17230$as_echo "#define KRB5 1" >>confdefs.h 17231 17232 KRB5_MSG="yes" 17233 17234 if test -n "$ac_tool_prefix"; then 17235 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args. 17236set dummy ${ac_tool_prefix}krb5-config; ac_word=$2 17237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17238$as_echo_n "checking for $ac_word... " >&6; } 17239if ${ac_cv_path_KRB5CONF+:} false; then : 17240 $as_echo_n "(cached) " >&6 17241else 17242 case $KRB5CONF in 17243 [\\/]* | ?:[\\/]*) 17244 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path. 17245 ;; 17246 *) 17247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17248as_dummy="$KRB5ROOT/bin:$PATH" 17249for as_dir in $as_dummy 17250do 17251 IFS=$as_save_IFS 17252 test -z "$as_dir" && as_dir=. 17253 for ac_exec_ext in '' $ac_executable_extensions; do 17254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17255 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext" 17256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17257 break 2 17258 fi 17259done 17260 done 17261IFS=$as_save_IFS 17262 17263 ;; 17264esac 17265fi 17266KRB5CONF=$ac_cv_path_KRB5CONF 17267if test -n "$KRB5CONF"; then 17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5 17269$as_echo "$KRB5CONF" >&6; } 17270else 17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17272$as_echo "no" >&6; } 17273fi 17274 17275 17276fi 17277if test -z "$ac_cv_path_KRB5CONF"; then 17278 ac_pt_KRB5CONF=$KRB5CONF 17279 # Extract the first word of "krb5-config", so it can be a program name with args. 17280set dummy krb5-config; ac_word=$2 17281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17282$as_echo_n "checking for $ac_word... " >&6; } 17283if ${ac_cv_path_ac_pt_KRB5CONF+:} false; then : 17284 $as_echo_n "(cached) " >&6 17285else 17286 case $ac_pt_KRB5CONF in 17287 [\\/]* | ?:[\\/]*) 17288 ac_cv_path_ac_pt_KRB5CONF="$ac_pt_KRB5CONF" # Let the user override the test with a path. 17289 ;; 17290 *) 17291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17292as_dummy="$KRB5ROOT/bin:$PATH" 17293for as_dir in $as_dummy 17294do 17295 IFS=$as_save_IFS 17296 test -z "$as_dir" && as_dir=. 17297 for ac_exec_ext in '' $ac_executable_extensions; do 17298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17299 ac_cv_path_ac_pt_KRB5CONF="$as_dir/$ac_word$ac_exec_ext" 17300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17301 break 2 17302 fi 17303done 17304 done 17305IFS=$as_save_IFS 17306 17307 ;; 17308esac 17309fi 17310ac_pt_KRB5CONF=$ac_cv_path_ac_pt_KRB5CONF 17311if test -n "$ac_pt_KRB5CONF"; then 17312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONF" >&5 17313$as_echo "$ac_pt_KRB5CONF" >&6; } 17314else 17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17316$as_echo "no" >&6; } 17317fi 17318 17319 if test "x$ac_pt_KRB5CONF" = x; then 17320 KRB5CONF="$KRB5ROOT/bin/krb5-config" 17321 else 17322 case $cross_compiling:$ac_tool_warned in 17323yes:) 17324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17326ac_tool_warned=yes ;; 17327esac 17328 KRB5CONF=$ac_pt_KRB5CONF 17329 fi 17330else 17331 KRB5CONF="$ac_cv_path_KRB5CONF" 17332fi 17333 17334 if test -x $KRB5CONF ; then 17335 K5CFLAGS="`$KRB5CONF --cflags`" 17336 K5LIBS="`$KRB5CONF --libs`" 17337 CPPFLAGS="$CPPFLAGS $K5CFLAGS" 17338 17339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5 17340$as_echo_n "checking for gssapi support... " >&6; } 17341 if $KRB5CONF | grep gssapi >/dev/null ; then 17342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17343$as_echo "yes" >&6; } 17344 17345$as_echo "#define GSSAPI 1" >>confdefs.h 17346 17347 GSSCFLAGS="`$KRB5CONF --cflags gssapi`" 17348 GSSLIBS="`$KRB5CONF --libs gssapi`" 17349 CPPFLAGS="$CPPFLAGS $GSSCFLAGS" 17350 else 17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17352$as_echo "no" >&6; } 17353 fi 17354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 17355$as_echo_n "checking whether we are using Heimdal... " >&6; } 17356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17357/* end confdefs.h. */ 17358 #include <krb5.h> 17359 17360int 17361main () 17362{ 17363 char *tmp = heimdal_version; 17364 ; 17365 return 0; 17366} 17367_ACEOF 17368if ac_fn_c_try_compile "$LINENO"; then : 17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17370$as_echo "yes" >&6; } 17371 17372$as_echo "#define HEIMDAL 1" >>confdefs.h 17373 17374else 17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17376$as_echo "no" >&6; } 17377 17378fi 17379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17380 else 17381 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" 17382 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" 17383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 17384$as_echo_n "checking whether we are using Heimdal... " >&6; } 17385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17386/* end confdefs.h. */ 17387 #include <krb5.h> 17388 17389int 17390main () 17391{ 17392 char *tmp = heimdal_version; 17393 ; 17394 return 0; 17395} 17396_ACEOF 17397if ac_fn_c_try_compile "$LINENO"; then : 17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17399$as_echo "yes" >&6; } 17400 $as_echo "#define HEIMDAL 1" >>confdefs.h 17401 17402 K5LIBS="-lkrb5" 17403 K5LIBS="$K5LIBS -lcom_err -lasn1" 17404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5 17405$as_echo_n "checking for net_write in -lroken... " >&6; } 17406if ${ac_cv_lib_roken_net_write+:} false; then : 17407 $as_echo_n "(cached) " >&6 17408else 17409 ac_check_lib_save_LIBS=$LIBS 17410LIBS="-lroken $LIBS" 17411cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17412/* end confdefs.h. */ 17413 17414/* Override any GCC internal prototype to avoid an error. 17415 Use char because int might match the return type of a GCC 17416 builtin and then its argument prototype would still apply. */ 17417#ifdef __cplusplus 17418extern "C" 17419#endif 17420char net_write (); 17421int 17422main () 17423{ 17424return net_write (); 17425 ; 17426 return 0; 17427} 17428_ACEOF 17429if ac_fn_c_try_link "$LINENO"; then : 17430 ac_cv_lib_roken_net_write=yes 17431else 17432 ac_cv_lib_roken_net_write=no 17433fi 17434rm -f core conftest.err conftest.$ac_objext \ 17435 conftest$ac_exeext conftest.$ac_ext 17436LIBS=$ac_check_lib_save_LIBS 17437fi 17438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5 17439$as_echo "$ac_cv_lib_roken_net_write" >&6; } 17440if test "x$ac_cv_lib_roken_net_write" = xyes; then : 17441 K5LIBS="$K5LIBS -lroken" 17442fi 17443 17444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 17445$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } 17446if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then : 17447 $as_echo_n "(cached) " >&6 17448else 17449 ac_check_lib_save_LIBS=$LIBS 17450LIBS="-ldes $LIBS" 17451cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17452/* end confdefs.h. */ 17453 17454/* Override any GCC internal prototype to avoid an error. 17455 Use char because int might match the return type of a GCC 17456 builtin and then its argument prototype would still apply. */ 17457#ifdef __cplusplus 17458extern "C" 17459#endif 17460char des_cbc_encrypt (); 17461int 17462main () 17463{ 17464return des_cbc_encrypt (); 17465 ; 17466 return 0; 17467} 17468_ACEOF 17469if ac_fn_c_try_link "$LINENO"; then : 17470 ac_cv_lib_des_des_cbc_encrypt=yes 17471else 17472 ac_cv_lib_des_des_cbc_encrypt=no 17473fi 17474rm -f core conftest.err conftest.$ac_objext \ 17475 conftest$ac_exeext conftest.$ac_ext 17476LIBS=$ac_check_lib_save_LIBS 17477fi 17478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 17479$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } 17480if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then : 17481 K5LIBS="$K5LIBS -ldes" 17482fi 17483 17484 17485else 17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17487$as_echo "no" >&6; } 17488 K5LIBS="-lkrb5 -lk5crypto -lcom_err" 17489 17490fi 17491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5 17493$as_echo_n "checking for library containing dn_expand... " >&6; } 17494if ${ac_cv_search_dn_expand+:} false; then : 17495 $as_echo_n "(cached) " >&6 17496else 17497 ac_func_search_save_LIBS=$LIBS 17498cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17499/* end confdefs.h. */ 17500 17501/* Override any GCC internal prototype to avoid an error. 17502 Use char because int might match the return type of a GCC 17503 builtin and then its argument prototype would still apply. */ 17504#ifdef __cplusplus 17505extern "C" 17506#endif 17507char dn_expand (); 17508int 17509main () 17510{ 17511return dn_expand (); 17512 ; 17513 return 0; 17514} 17515_ACEOF 17516for ac_lib in '' resolv; do 17517 if test -z "$ac_lib"; then 17518 ac_res="none required" 17519 else 17520 ac_res=-l$ac_lib 17521 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17522 fi 17523 if ac_fn_c_try_link "$LINENO"; then : 17524 ac_cv_search_dn_expand=$ac_res 17525fi 17526rm -f core conftest.err conftest.$ac_objext \ 17527 conftest$ac_exeext 17528 if ${ac_cv_search_dn_expand+:} false; then : 17529 break 17530fi 17531done 17532if ${ac_cv_search_dn_expand+:} false; then : 17533 17534else 17535 ac_cv_search_dn_expand=no 17536fi 17537rm conftest.$ac_ext 17538LIBS=$ac_func_search_save_LIBS 17539fi 17540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5 17541$as_echo "$ac_cv_search_dn_expand" >&6; } 17542ac_res=$ac_cv_search_dn_expand 17543if test "$ac_res" != no; then : 17544 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17545 17546fi 17547 17548 17549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5 17550$as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; } 17551if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then : 17552 $as_echo_n "(cached) " >&6 17553else 17554 ac_check_lib_save_LIBS=$LIBS 17555LIBS="-lgssapi_krb5 $LIBS" 17556cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17557/* end confdefs.h. */ 17558 17559/* Override any GCC internal prototype to avoid an error. 17560 Use char because int might match the return type of a GCC 17561 builtin and then its argument prototype would still apply. */ 17562#ifdef __cplusplus 17563extern "C" 17564#endif 17565char gss_init_sec_context (); 17566int 17567main () 17568{ 17569return gss_init_sec_context (); 17570 ; 17571 return 0; 17572} 17573_ACEOF 17574if ac_fn_c_try_link "$LINENO"; then : 17575 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes 17576else 17577 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no 17578fi 17579rm -f core conftest.err conftest.$ac_objext \ 17580 conftest$ac_exeext conftest.$ac_ext 17581LIBS=$ac_check_lib_save_LIBS 17582fi 17583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 17584$as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } 17585if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then : 17586 $as_echo "#define GSSAPI 1" >>confdefs.h 17587 17588 GSSLIBS="-lgssapi_krb5" 17589else 17590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5 17591$as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; } 17592if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then : 17593 $as_echo_n "(cached) " >&6 17594else 17595 ac_check_lib_save_LIBS=$LIBS 17596LIBS="-lgssapi $LIBS" 17597cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17598/* end confdefs.h. */ 17599 17600/* Override any GCC internal prototype to avoid an error. 17601 Use char because int might match the return type of a GCC 17602 builtin and then its argument prototype would still apply. */ 17603#ifdef __cplusplus 17604extern "C" 17605#endif 17606char gss_init_sec_context (); 17607int 17608main () 17609{ 17610return gss_init_sec_context (); 17611 ; 17612 return 0; 17613} 17614_ACEOF 17615if ac_fn_c_try_link "$LINENO"; then : 17616 ac_cv_lib_gssapi_gss_init_sec_context=yes 17617else 17618 ac_cv_lib_gssapi_gss_init_sec_context=no 17619fi 17620rm -f core conftest.err conftest.$ac_objext \ 17621 conftest$ac_exeext conftest.$ac_ext 17622LIBS=$ac_check_lib_save_LIBS 17623fi 17624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 17625$as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } 17626if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then : 17627 $as_echo "#define GSSAPI 1" >>confdefs.h 17628 17629 GSSLIBS="-lgssapi" 17630else 17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgss" >&5 17632$as_echo_n "checking for gss_init_sec_context in -lgss... " >&6; } 17633if ${ac_cv_lib_gss_gss_init_sec_context+:} false; then : 17634 $as_echo_n "(cached) " >&6 17635else 17636 ac_check_lib_save_LIBS=$LIBS 17637LIBS="-lgss $LIBS" 17638cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17639/* end confdefs.h. */ 17640 17641/* Override any GCC internal prototype to avoid an error. 17642 Use char because int might match the return type of a GCC 17643 builtin and then its argument prototype would still apply. */ 17644#ifdef __cplusplus 17645extern "C" 17646#endif 17647char gss_init_sec_context (); 17648int 17649main () 17650{ 17651return gss_init_sec_context (); 17652 ; 17653 return 0; 17654} 17655_ACEOF 17656if ac_fn_c_try_link "$LINENO"; then : 17657 ac_cv_lib_gss_gss_init_sec_context=yes 17658else 17659 ac_cv_lib_gss_gss_init_sec_context=no 17660fi 17661rm -f core conftest.err conftest.$ac_objext \ 17662 conftest$ac_exeext conftest.$ac_ext 17663LIBS=$ac_check_lib_save_LIBS 17664fi 17665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_init_sec_context" >&5 17666$as_echo "$ac_cv_lib_gss_gss_init_sec_context" >&6; } 17667if test "x$ac_cv_lib_gss_gss_init_sec_context" = xyes; then : 17668 $as_echo "#define GSSAPI 1" >>confdefs.h 17669 17670 GSSLIBS="-lgss" 17671else 17672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 17673$as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} 17674fi 17675 17676 17677fi 17678 17679 17680fi 17681 17682 17683 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" 17684if test "x$ac_cv_header_gssapi_h" = xyes; then : 17685 17686else 17687 unset ac_cv_header_gssapi_h 17688 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" 17689 for ac_header in gssapi.h 17690do : 17691 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" 17692if test "x$ac_cv_header_gssapi_h" = xyes; then : 17693 cat >>confdefs.h <<_ACEOF 17694#define HAVE_GSSAPI_H 1 17695_ACEOF 17696 17697else 17698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 17699$as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} 17700 17701fi 17702 17703done 17704 17705 17706 17707fi 17708 17709 17710 17711 oldCPP="$CPPFLAGS" 17712 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" 17713 ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default" 17714if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then : 17715 17716else 17717 CPPFLAGS="$oldCPP" 17718fi 17719 17720 17721 17722 fi 17723 if test ! -z "$need_dash_r" ; then 17724 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" 17725 fi 17726 if test ! -z "$blibpath" ; then 17727 blibpath="$blibpath:${KRB5ROOT}/lib" 17728 fi 17729 17730 for ac_header in gssapi.h gssapi/gssapi.h 17731do : 17732 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17733ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17734if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17735 cat >>confdefs.h <<_ACEOF 17736#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17737_ACEOF 17738 17739fi 17740 17741done 17742 17743 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h 17744do : 17745 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17746ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17747if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17748 cat >>confdefs.h <<_ACEOF 17749#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17750_ACEOF 17751 17752fi 17753 17754done 17755 17756 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h 17757do : 17758 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17759ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17760if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17761 cat >>confdefs.h <<_ACEOF 17762#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17763_ACEOF 17764 17765fi 17766 17767done 17768 17769 17770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5 17771$as_echo_n "checking for library containing k_hasafs... " >&6; } 17772if ${ac_cv_search_k_hasafs+:} false; then : 17773 $as_echo_n "(cached) " >&6 17774else 17775 ac_func_search_save_LIBS=$LIBS 17776cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17777/* end confdefs.h. */ 17778 17779/* Override any GCC internal prototype to avoid an error. 17780 Use char because int might match the return type of a GCC 17781 builtin and then its argument prototype would still apply. */ 17782#ifdef __cplusplus 17783extern "C" 17784#endif 17785char k_hasafs (); 17786int 17787main () 17788{ 17789return k_hasafs (); 17790 ; 17791 return 0; 17792} 17793_ACEOF 17794for ac_lib in '' kafs; do 17795 if test -z "$ac_lib"; then 17796 ac_res="none required" 17797 else 17798 ac_res=-l$ac_lib 17799 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17800 fi 17801 if ac_fn_c_try_link "$LINENO"; then : 17802 ac_cv_search_k_hasafs=$ac_res 17803fi 17804rm -f core conftest.err conftest.$ac_objext \ 17805 conftest$ac_exeext 17806 if ${ac_cv_search_k_hasafs+:} false; then : 17807 break 17808fi 17809done 17810if ${ac_cv_search_k_hasafs+:} false; then : 17811 17812else 17813 ac_cv_search_k_hasafs=no 17814fi 17815rm conftest.$ac_ext 17816LIBS=$ac_func_search_save_LIBS 17817fi 17818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5 17819$as_echo "$ac_cv_search_k_hasafs" >&6; } 17820ac_res=$ac_cv_search_k_hasafs 17821if test "$ac_res" != no; then : 17822 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17823 17824$as_echo "#define USE_AFS 1" >>confdefs.h 17825 17826fi 17827 17828 17829 ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" " 17830#ifdef HAVE_GSSAPI_H 17831# include <gssapi.h> 17832#elif defined(HAVE_GSSAPI_GSSAPI_H) 17833# include <gssapi/gssapi.h> 17834#endif 17835 17836#ifdef HAVE_GSSAPI_GENERIC_H 17837# include <gssapi_generic.h> 17838#elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H) 17839# include <gssapi/gssapi_generic.h> 17840#endif 17841 17842" 17843if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then : 17844 ac_have_decl=1 17845else 17846 ac_have_decl=0 17847fi 17848 17849cat >>confdefs.h <<_ACEOF 17850#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE $ac_have_decl 17851_ACEOF 17852 17853 saved_LIBS="$LIBS" 17854 LIBS="$LIBS $K5LIBS" 17855 for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message 17856do : 17857 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17858ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17859if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17860 cat >>confdefs.h <<_ACEOF 17861#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17862_ACEOF 17863 17864fi 17865done 17866 17867 LIBS="$saved_LIBS" 17868 17869 fi 17870 17871 17872fi 17873 17874 17875 17876 17877# Looking for programs, paths and files 17878 17879PRIVSEP_PATH=/var/empty 17880 17881# Check whether --with-privsep-path was given. 17882if test "${with_privsep_path+set}" = set; then : 17883 withval=$with_privsep_path; 17884 if test -n "$withval" && test "x$withval" != "xno" && \ 17885 test "x${withval}" != "xyes"; then 17886 PRIVSEP_PATH=$withval 17887 fi 17888 17889 17890fi 17891 17892 17893 17894 17895# Check whether --with-xauth was given. 17896if test "${with_xauth+set}" = set; then : 17897 withval=$with_xauth; 17898 if test -n "$withval" && test "x$withval" != "xno" && \ 17899 test "x${withval}" != "xyes"; then 17900 xauth_path=$withval 17901 fi 17902 17903else 17904 17905 TestPath="$PATH" 17906 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" 17907 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" 17908 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" 17909 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" 17910 # Extract the first word of "xauth", so it can be a program name with args. 17911set dummy xauth; ac_word=$2 17912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17913$as_echo_n "checking for $ac_word... " >&6; } 17914if ${ac_cv_path_xauth_path+:} false; then : 17915 $as_echo_n "(cached) " >&6 17916else 17917 case $xauth_path in 17918 [\\/]* | ?:[\\/]*) 17919 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. 17920 ;; 17921 *) 17922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17923for as_dir in $TestPath 17924do 17925 IFS=$as_save_IFS 17926 test -z "$as_dir" && as_dir=. 17927 for ac_exec_ext in '' $ac_executable_extensions; do 17928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17929 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" 17930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17931 break 2 17932 fi 17933done 17934 done 17935IFS=$as_save_IFS 17936 17937 ;; 17938esac 17939fi 17940xauth_path=$ac_cv_path_xauth_path 17941if test -n "$xauth_path"; then 17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5 17943$as_echo "$xauth_path" >&6; } 17944else 17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17946$as_echo "no" >&6; } 17947fi 17948 17949 17950 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then 17951 xauth_path="/usr/openwin/bin/xauth" 17952 fi 17953 17954 17955fi 17956 17957 17958STRIP_OPT=-s 17959# Check whether --enable-strip was given. 17960if test "${enable_strip+set}" = set; then : 17961 enableval=$enable_strip; 17962 if test "x$enableval" = "xno" ; then 17963 STRIP_OPT= 17964 fi 17965 17966 17967fi 17968 17969 17970 17971if test -z "$xauth_path" ; then 17972 XAUTH_PATH="undefined" 17973 17974else 17975 17976cat >>confdefs.h <<_ACEOF 17977#define XAUTH_PATH "$xauth_path" 17978_ACEOF 17979 17980 XAUTH_PATH=$xauth_path 17981 17982fi 17983 17984# Check for mail directory 17985 17986# Check whether --with-maildir was given. 17987if test "${with_maildir+set}" = set; then : 17988 withval=$with_maildir; 17989 if test "X$withval" != X && test "x$withval" != xno && \ 17990 test "x${withval}" != xyes; then 17991 17992cat >>confdefs.h <<_ACEOF 17993#define MAIL_DIRECTORY "$withval" 17994_ACEOF 17995 17996 fi 17997 17998else 17999 18000 if test "X$maildir" != "X"; then 18001 cat >>confdefs.h <<_ACEOF 18002#define MAIL_DIRECTORY "$maildir" 18003_ACEOF 18004 18005 else 18006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5 18007$as_echo_n "checking Discovering system mail directory... " >&6; } 18008 if test "$cross_compiling" = yes; then : 18009 18010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5 18011$as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;} 18012 18013 18014else 18015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18016/* end confdefs.h. */ 18017 18018#include <stdio.h> 18019#include <string.h> 18020#ifdef HAVE_PATHS_H 18021#include <paths.h> 18022#endif 18023#ifdef HAVE_MAILLOCK_H 18024#include <maillock.h> 18025#endif 18026#define DATA "conftest.maildir" 18027 18028int 18029main () 18030{ 18031 18032 FILE *fd; 18033 int rc; 18034 18035 fd = fopen(DATA,"w"); 18036 if(fd == NULL) 18037 exit(1); 18038 18039#if defined (_PATH_MAILDIR) 18040 if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0) 18041 exit(1); 18042#elif defined (MAILDIR) 18043 if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0) 18044 exit(1); 18045#elif defined (_PATH_MAIL) 18046 if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0) 18047 exit(1); 18048#else 18049 exit (2); 18050#endif 18051 18052 exit(0); 18053 18054 ; 18055 return 0; 18056} 18057_ACEOF 18058if ac_fn_c_try_run "$LINENO"; then : 18059 18060 maildir_what=`awk -F: '{print $1}' conftest.maildir` 18061 maildir=`awk -F: '{print $2}' conftest.maildir \ 18062 | sed 's|/$||'` 18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5 18064$as_echo "Using: $maildir from $maildir_what" >&6; } 18065 if test "x$maildir_what" != "x_PATH_MAILDIR"; then 18066 cat >>confdefs.h <<_ACEOF 18067#define MAIL_DIRECTORY "$maildir" 18068_ACEOF 18069 18070 fi 18071 18072else 18073 18074 if test "X$ac_status" = "X2";then 18075# our test program didn't find it. Default to /var/spool/mail 18076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5 18077$as_echo "Using: default value of /var/spool/mail" >&6; } 18078 cat >>confdefs.h <<_ACEOF 18079#define MAIL_DIRECTORY "/var/spool/mail" 18080_ACEOF 18081 18082 else 18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5 18084$as_echo "*** not found ***" >&6; } 18085 fi 18086 18087fi 18088rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18089 conftest.$ac_objext conftest.beam conftest.$ac_ext 18090fi 18091 18092 fi 18093 18094 18095fi 18096 # maildir 18097 18098if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then 18099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 18100$as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} 18101 disable_ptmx_check=yes 18102fi 18103if test -z "$no_dev_ptmx" ; then 18104 if test "x$disable_ptmx_check" != "xyes" ; then 18105 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh` 18106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5 18107$as_echo_n "checking for \"/dev/ptmx\"... " >&6; } 18108if eval \${$as_ac_File+:} false; then : 18109 $as_echo_n "(cached) " >&6 18110else 18111 test "$cross_compiling" = yes && 18112 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18113if test -r ""/dev/ptmx""; then 18114 eval "$as_ac_File=yes" 18115else 18116 eval "$as_ac_File=no" 18117fi 18118fi 18119eval ac_res=\$$as_ac_File 18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18121$as_echo "$ac_res" >&6; } 18122if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 18123 18124 18125cat >>confdefs.h <<_ACEOF 18126#define HAVE_DEV_PTMX 1 18127_ACEOF 18128 18129 have_dev_ptmx=1 18130 18131 18132fi 18133 18134 fi 18135fi 18136 18137if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then 18138 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh` 18139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5 18140$as_echo_n "checking for \"/dev/ptc\"... " >&6; } 18141if eval \${$as_ac_File+:} false; then : 18142 $as_echo_n "(cached) " >&6 18143else 18144 test "$cross_compiling" = yes && 18145 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18146if test -r ""/dev/ptc""; then 18147 eval "$as_ac_File=yes" 18148else 18149 eval "$as_ac_File=no" 18150fi 18151fi 18152eval ac_res=\$$as_ac_File 18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18154$as_echo "$ac_res" >&6; } 18155if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 18156 18157 18158cat >>confdefs.h <<_ACEOF 18159#define HAVE_DEV_PTS_AND_PTC 1 18160_ACEOF 18161 18162 have_dev_ptc=1 18163 18164 18165fi 18166 18167else 18168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5 18169$as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} 18170fi 18171 18172# Options from here on. Some of these are preset by platform above 18173 18174# Check whether --with-mantype was given. 18175if test "${with_mantype+set}" = set; then : 18176 withval=$with_mantype; 18177 case "$withval" in 18178 man|cat|doc) 18179 MANTYPE=$withval 18180 ;; 18181 *) 18182 as_fn_error $? "invalid man type: $withval" "$LINENO" 5 18183 ;; 18184 esac 18185 18186 18187fi 18188 18189if test -z "$MANTYPE"; then 18190 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" 18191 for ac_prog in nroff awf 18192do 18193 # Extract the first word of "$ac_prog", so it can be a program name with args. 18194set dummy $ac_prog; ac_word=$2 18195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18196$as_echo_n "checking for $ac_word... " >&6; } 18197if ${ac_cv_path_NROFF+:} false; then : 18198 $as_echo_n "(cached) " >&6 18199else 18200 case $NROFF in 18201 [\\/]* | ?:[\\/]*) 18202 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. 18203 ;; 18204 *) 18205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18206for as_dir in $TestPath 18207do 18208 IFS=$as_save_IFS 18209 test -z "$as_dir" && as_dir=. 18210 for ac_exec_ext in '' $ac_executable_extensions; do 18211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18212 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" 18213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18214 break 2 18215 fi 18216done 18217 done 18218IFS=$as_save_IFS 18219 18220 ;; 18221esac 18222fi 18223NROFF=$ac_cv_path_NROFF 18224if test -n "$NROFF"; then 18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 18226$as_echo "$NROFF" >&6; } 18227else 18228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18229$as_echo "no" >&6; } 18230fi 18231 18232 18233 test -n "$NROFF" && break 18234done 18235test -n "$NROFF" || NROFF="/bin/false" 18236 18237 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then 18238 MANTYPE=doc 18239 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then 18240 MANTYPE=man 18241 else 18242 MANTYPE=cat 18243 fi 18244fi 18245 18246if test "$MANTYPE" = "doc"; then 18247 mansubdir=man; 18248else 18249 mansubdir=$MANTYPE; 18250fi 18251 18252 18253# Check whether to enable MD5 passwords 18254MD5_MSG="no" 18255 18256# Check whether --with-md5-passwords was given. 18257if test "${with_md5_passwords+set}" = set; then : 18258 withval=$with_md5_passwords; 18259 if test "x$withval" != "xno" ; then 18260 18261$as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h 18262 18263 MD5_MSG="yes" 18264 fi 18265 18266 18267fi 18268 18269 18270# Whether to disable shadow password support 18271 18272# Check whether --with-shadow was given. 18273if test "${with_shadow+set}" = set; then : 18274 withval=$with_shadow; 18275 if test "x$withval" = "xno" ; then 18276 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h 18277 18278 disable_shadow=yes 18279 fi 18280 18281 18282fi 18283 18284 18285if test -z "$disable_shadow" ; then 18286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5 18287$as_echo_n "checking if the systems has expire shadow information... " >&6; } 18288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18289/* end confdefs.h. */ 18290 18291#include <sys/types.h> 18292#include <shadow.h> 18293struct spwd sp; 18294 18295int 18296main () 18297{ 18298 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; 18299 ; 18300 return 0; 18301} 18302_ACEOF 18303if ac_fn_c_try_compile "$LINENO"; then : 18304 sp_expire_available=yes 18305fi 18306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18307 18308 if test "x$sp_expire_available" = "xyes" ; then 18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18310$as_echo "yes" >&6; } 18311 18312$as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h 18313 18314 else 18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18316$as_echo "no" >&6; } 18317 fi 18318fi 18319 18320# Use ip address instead of hostname in $DISPLAY 18321if test ! -z "$IPADDR_IN_DISPLAY" ; then 18322 DISPLAY_HACK_MSG="yes" 18323 18324$as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h 18325 18326else 18327 DISPLAY_HACK_MSG="no" 18328 18329# Check whether --with-ipaddr-display was given. 18330if test "${with_ipaddr_display+set}" = set; then : 18331 withval=$with_ipaddr_display; 18332 if test "x$withval" != "xno" ; then 18333 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h 18334 18335 DISPLAY_HACK_MSG="yes" 18336 fi 18337 18338 18339fi 18340 18341fi 18342 18343# check for /etc/default/login and use it if present. 18344# Check whether --enable-etc-default-login was given. 18345if test "${enable_etc_default_login+set}" = set; then : 18346 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then 18347 { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5 18348$as_echo "$as_me: /etc/default/login handling disabled" >&6;} 18349 etc_default_login=no 18350 else 18351 etc_default_login=yes 18352 fi 18353else 18354 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; 18355 then 18356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5 18357$as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;} 18358 etc_default_login=no 18359 else 18360 etc_default_login=yes 18361 fi 18362 18363fi 18364 18365 18366if test "x$etc_default_login" != "xno"; then 18367 as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh` 18368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5 18369$as_echo_n "checking for \"/etc/default/login\"... " >&6; } 18370if eval \${$as_ac_File+:} false; then : 18371 $as_echo_n "(cached) " >&6 18372else 18373 test "$cross_compiling" = yes && 18374 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18375if test -r ""/etc/default/login""; then 18376 eval "$as_ac_File=yes" 18377else 18378 eval "$as_ac_File=no" 18379fi 18380fi 18381eval ac_res=\$$as_ac_File 18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18383$as_echo "$ac_res" >&6; } 18384if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 18385 external_path_file=/etc/default/login 18386fi 18387 18388 if test "x$external_path_file" = "x/etc/default/login"; then 18389 18390$as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h 18391 18392 fi 18393fi 18394 18395if test $ac_cv_func_login_getcapbool = "yes" && \ 18396 test $ac_cv_header_login_cap_h = "yes" ; then 18397 external_path_file=/etc/login.conf 18398fi 18399 18400# Whether to mess with the default path 18401SERVER_PATH_MSG="(default)" 18402 18403# Check whether --with-default-path was given. 18404if test "${with_default_path+set}" = set; then : 18405 withval=$with_default_path; 18406 if test "x$external_path_file" = "x/etc/login.conf" ; then 18407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 18408--with-default-path=PATH has no effect on this system. 18409Edit /etc/login.conf instead." >&5 18410$as_echo "$as_me: WARNING: 18411--with-default-path=PATH has no effect on this system. 18412Edit /etc/login.conf instead." >&2;} 18413 elif test "x$withval" != "xno" ; then 18414 if test ! -z "$external_path_file" ; then 18415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 18416--with-default-path=PATH will only be used if PATH is not defined in 18417$external_path_file ." >&5 18418$as_echo "$as_me: WARNING: 18419--with-default-path=PATH will only be used if PATH is not defined in 18420$external_path_file ." >&2;} 18421 fi 18422 user_path="$withval" 18423 SERVER_PATH_MSG="$withval" 18424 fi 18425 18426else 18427 if test "x$external_path_file" = "x/etc/login.conf" ; then 18428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 18429$as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} 18430 else 18431 if test ! -z "$external_path_file" ; then 18432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 18433If PATH is defined in $external_path_file, ensure the path to scp is included, 18434otherwise scp will not work." >&5 18435$as_echo "$as_me: WARNING: 18436If PATH is defined in $external_path_file, ensure the path to scp is included, 18437otherwise scp will not work." >&2;} 18438 fi 18439 if test "$cross_compiling" = yes; then : 18440 user_path="/usr/bin:/bin:/usr/sbin:/sbin" 18441 18442else 18443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18444/* end confdefs.h. */ 18445 18446/* find out what STDPATH is */ 18447#include <stdio.h> 18448#ifdef HAVE_PATHS_H 18449# include <paths.h> 18450#endif 18451#ifndef _PATH_STDPATH 18452# ifdef _PATH_USERPATH /* Irix */ 18453# define _PATH_STDPATH _PATH_USERPATH 18454# else 18455# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" 18456# endif 18457#endif 18458#include <sys/types.h> 18459#include <sys/stat.h> 18460#include <fcntl.h> 18461#define DATA "conftest.stdpath" 18462 18463int 18464main () 18465{ 18466 18467 FILE *fd; 18468 int rc; 18469 18470 fd = fopen(DATA,"w"); 18471 if(fd == NULL) 18472 exit(1); 18473 18474 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) 18475 exit(1); 18476 18477 exit(0); 18478 18479 ; 18480 return 0; 18481} 18482_ACEOF 18483if ac_fn_c_try_run "$LINENO"; then : 18484 user_path=`cat conftest.stdpath` 18485else 18486 user_path="/usr/bin:/bin:/usr/sbin:/sbin" 18487fi 18488rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18489 conftest.$ac_objext conftest.beam conftest.$ac_ext 18490fi 18491 18492# make sure $bindir is in USER_PATH so scp will work 18493 t_bindir="${bindir}" 18494 while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do 18495 t_bindir=`eval echo ${t_bindir}` 18496 case $t_bindir in 18497 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; 18498 esac 18499 case $t_bindir in 18500 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; 18501 esac 18502 done 18503 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 18504 if test $? -ne 0 ; then 18505 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 18506 if test $? -ne 0 ; then 18507 user_path=$user_path:$t_bindir 18508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5 18509$as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; } 18510 fi 18511 fi 18512 fi 18513 18514fi 18515 18516if test "x$external_path_file" != "x/etc/login.conf" ; then 18517 18518cat >>confdefs.h <<_ACEOF 18519#define USER_PATH "$user_path" 18520_ACEOF 18521 18522 18523fi 18524 18525# Set superuser path separately to user path 18526 18527# Check whether --with-superuser-path was given. 18528if test "${with_superuser_path+set}" = set; then : 18529 withval=$with_superuser_path; 18530 if test -n "$withval" && test "x$withval" != "xno" && \ 18531 test "x${withval}" != "xyes"; then 18532 18533cat >>confdefs.h <<_ACEOF 18534#define SUPERUSER_PATH "$withval" 18535_ACEOF 18536 18537 superuser_path=$withval 18538 fi 18539 18540 18541fi 18542 18543 18544 18545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 18546$as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; } 18547IPV4_IN6_HACK_MSG="no" 18548 18549# Check whether --with-4in6 was given. 18550if test "${with_4in6+set}" = set; then : 18551 withval=$with_4in6; 18552 if test "x$withval" != "xno" ; then 18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18554$as_echo "yes" >&6; } 18555 18556$as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h 18557 18558 IPV4_IN6_HACK_MSG="yes" 18559 else 18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18561$as_echo "no" >&6; } 18562 fi 18563 18564else 18565 18566 if test "x$inet6_default_4in6" = "xyes"; then 18567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 18568$as_echo "yes (default)" >&6; } 18569 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h 18570 18571 IPV4_IN6_HACK_MSG="yes" 18572 else 18573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 18574$as_echo "no (default)" >&6; } 18575 fi 18576 18577 18578fi 18579 18580 18581# Whether to enable BSD auth support 18582BSD_AUTH_MSG=no 18583 18584# Check whether --with-bsd-auth was given. 18585if test "${with_bsd_auth+set}" = set; then : 18586 withval=$with_bsd_auth; 18587 if test "x$withval" != "xno" ; then 18588 18589$as_echo "#define BSD_AUTH 1" >>confdefs.h 18590 18591 BSD_AUTH_MSG=yes 18592 fi 18593 18594 18595fi 18596 18597 18598# Where to place sshd.pid 18599piddir=/var/run 18600# make sure the directory exists 18601if test ! -d $piddir ; then 18602 piddir=`eval echo ${sysconfdir}` 18603 case $piddir in 18604 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; 18605 esac 18606fi 18607 18608 18609# Check whether --with-pid-dir was given. 18610if test "${with_pid_dir+set}" = set; then : 18611 withval=$with_pid_dir; 18612 if test -n "$withval" && test "x$withval" != "xno" && \ 18613 test "x${withval}" != "xyes"; then 18614 piddir=$withval 18615 if test ! -d $piddir ; then 18616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5 18617$as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} 18618 fi 18619 fi 18620 18621 18622fi 18623 18624 18625 18626cat >>confdefs.h <<_ACEOF 18627#define _PATH_SSH_PIDDIR "$piddir" 18628_ACEOF 18629 18630 18631 18632# Check whether --enable-lastlog was given. 18633if test "${enable_lastlog+set}" = set; then : 18634 enableval=$enable_lastlog; 18635 if test "x$enableval" = "xno" ; then 18636 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h 18637 18638 fi 18639 18640 18641fi 18642 18643# Check whether --enable-utmp was given. 18644if test "${enable_utmp+set}" = set; then : 18645 enableval=$enable_utmp; 18646 if test "x$enableval" = "xno" ; then 18647 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h 18648 18649 fi 18650 18651 18652fi 18653 18654# Check whether --enable-utmpx was given. 18655if test "${enable_utmpx+set}" = set; then : 18656 enableval=$enable_utmpx; 18657 if test "x$enableval" = "xno" ; then 18658 18659$as_echo "#define DISABLE_UTMPX 1" >>confdefs.h 18660 18661 fi 18662 18663 18664fi 18665 18666# Check whether --enable-wtmp was given. 18667if test "${enable_wtmp+set}" = set; then : 18668 enableval=$enable_wtmp; 18669 if test "x$enableval" = "xno" ; then 18670 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h 18671 18672 fi 18673 18674 18675fi 18676 18677# Check whether --enable-wtmpx was given. 18678if test "${enable_wtmpx+set}" = set; then : 18679 enableval=$enable_wtmpx; 18680 if test "x$enableval" = "xno" ; then 18681 18682$as_echo "#define DISABLE_WTMPX 1" >>confdefs.h 18683 18684 fi 18685 18686 18687fi 18688 18689# Check whether --enable-libutil was given. 18690if test "${enable_libutil+set}" = set; then : 18691 enableval=$enable_libutil; 18692 if test "x$enableval" = "xno" ; then 18693 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h 18694 18695 fi 18696 18697 18698fi 18699 18700# Check whether --enable-pututline was given. 18701if test "${enable_pututline+set}" = set; then : 18702 enableval=$enable_pututline; 18703 if test "x$enableval" = "xno" ; then 18704 18705$as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h 18706 18707 fi 18708 18709 18710fi 18711 18712# Check whether --enable-pututxline was given. 18713if test "${enable_pututxline+set}" = set; then : 18714 enableval=$enable_pututxline; 18715 if test "x$enableval" = "xno" ; then 18716 18717$as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h 18718 18719 fi 18720 18721 18722fi 18723 18724 18725# Check whether --with-lastlog was given. 18726if test "${with_lastlog+set}" = set; then : 18727 withval=$with_lastlog; 18728 if test "x$withval" = "xno" ; then 18729 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h 18730 18731 elif test -n "$withval" && test "x${withval}" != "xyes"; then 18732 conf_lastlog_location=$withval 18733 fi 18734 18735 18736fi 18737 18738 18739 18740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5 18741$as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; } 18742cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18743/* end confdefs.h. */ 18744 18745#include <sys/types.h> 18746#include <utmp.h> 18747#ifdef HAVE_LASTLOG_H 18748# include <lastlog.h> 18749#endif 18750#ifdef HAVE_PATHS_H 18751# include <paths.h> 18752#endif 18753#ifdef HAVE_LOGIN_H 18754# include <login.h> 18755#endif 18756 18757int 18758main () 18759{ 18760 char *lastlog = LASTLOG_FILE; 18761 ; 18762 return 0; 18763} 18764_ACEOF 18765if ac_fn_c_try_compile "$LINENO"; then : 18766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18767$as_echo "yes" >&6; } 18768else 18769 18770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18771$as_echo "no" >&6; } 18772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5 18773$as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; } 18774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18775/* end confdefs.h. */ 18776 18777#include <sys/types.h> 18778#include <utmp.h> 18779#ifdef HAVE_LASTLOG_H 18780# include <lastlog.h> 18781#endif 18782#ifdef HAVE_PATHS_H 18783# include <paths.h> 18784#endif 18785 18786int 18787main () 18788{ 18789 char *lastlog = _PATH_LASTLOG; 18790 ; 18791 return 0; 18792} 18793_ACEOF 18794if ac_fn_c_try_compile "$LINENO"; then : 18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18796$as_echo "yes" >&6; } 18797else 18798 18799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18800$as_echo "no" >&6; } 18801 system_lastlog_path=no 18802 18803fi 18804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18805 18806fi 18807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18808 18809if test -z "$conf_lastlog_location"; then 18810 if test x"$system_lastlog_path" = x"no" ; then 18811 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do 18812 if (test -d "$f" || test -f "$f") ; then 18813 conf_lastlog_location=$f 18814 fi 18815 done 18816 if test -z "$conf_lastlog_location"; then 18817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5 18818$as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} 18819 fi 18820 fi 18821fi 18822 18823if test -n "$conf_lastlog_location"; then 18824 18825cat >>confdefs.h <<_ACEOF 18826#define CONF_LASTLOG_FILE "$conf_lastlog_location" 18827_ACEOF 18828 18829fi 18830 18831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5 18832$as_echo_n "checking if your system defines UTMP_FILE... " >&6; } 18833cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18834/* end confdefs.h. */ 18835 18836#include <sys/types.h> 18837#include <utmp.h> 18838#ifdef HAVE_PATHS_H 18839# include <paths.h> 18840#endif 18841 18842int 18843main () 18844{ 18845 char *utmp = UTMP_FILE; 18846 ; 18847 return 0; 18848} 18849_ACEOF 18850if ac_fn_c_try_compile "$LINENO"; then : 18851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18852$as_echo "yes" >&6; } 18853else 18854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18855$as_echo "no" >&6; } 18856 system_utmp_path=no 18857 18858fi 18859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18860if test -z "$conf_utmp_location"; then 18861 if test x"$system_utmp_path" = x"no" ; then 18862 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do 18863 if test -f $f ; then 18864 conf_utmp_location=$f 18865 fi 18866 done 18867 if test -z "$conf_utmp_location"; then 18868 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h 18869 18870 fi 18871 fi 18872fi 18873if test -n "$conf_utmp_location"; then 18874 18875cat >>confdefs.h <<_ACEOF 18876#define CONF_UTMP_FILE "$conf_utmp_location" 18877_ACEOF 18878 18879fi 18880 18881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5 18882$as_echo_n "checking if your system defines WTMP_FILE... " >&6; } 18883cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18884/* end confdefs.h. */ 18885 18886#include <sys/types.h> 18887#include <utmp.h> 18888#ifdef HAVE_PATHS_H 18889# include <paths.h> 18890#endif 18891 18892int 18893main () 18894{ 18895 char *wtmp = WTMP_FILE; 18896 ; 18897 return 0; 18898} 18899_ACEOF 18900if ac_fn_c_try_compile "$LINENO"; then : 18901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18902$as_echo "yes" >&6; } 18903else 18904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18905$as_echo "no" >&6; } 18906 system_wtmp_path=no 18907 18908fi 18909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18910if test -z "$conf_wtmp_location"; then 18911 if test x"$system_wtmp_path" = x"no" ; then 18912 for f in /usr/adm/wtmp /var/log/wtmp; do 18913 if test -f $f ; then 18914 conf_wtmp_location=$f 18915 fi 18916 done 18917 if test -z "$conf_wtmp_location"; then 18918 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h 18919 18920 fi 18921 fi 18922fi 18923if test -n "$conf_wtmp_location"; then 18924 18925cat >>confdefs.h <<_ACEOF 18926#define CONF_WTMP_FILE "$conf_wtmp_location" 18927_ACEOF 18928 18929fi 18930 18931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5 18932$as_echo_n "checking if your system defines WTMPX_FILE... " >&6; } 18933cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18934/* end confdefs.h. */ 18935 18936#include <sys/types.h> 18937#include <utmp.h> 18938#ifdef HAVE_UTMPX_H 18939#include <utmpx.h> 18940#endif 18941#ifdef HAVE_PATHS_H 18942# include <paths.h> 18943#endif 18944 18945int 18946main () 18947{ 18948 char *wtmpx = WTMPX_FILE; 18949 ; 18950 return 0; 18951} 18952_ACEOF 18953if ac_fn_c_try_compile "$LINENO"; then : 18954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18955$as_echo "yes" >&6; } 18956else 18957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18958$as_echo "no" >&6; } 18959 system_wtmpx_path=no 18960 18961fi 18962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18963if test -z "$conf_wtmpx_location"; then 18964 if test x"$system_wtmpx_path" = x"no" ; then 18965 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h 18966 18967 fi 18968else 18969 18970cat >>confdefs.h <<_ACEOF 18971#define CONF_WTMPX_FILE "$conf_wtmpx_location" 18972_ACEOF 18973 18974fi 18975 18976 18977if test ! -z "$blibpath" ; then 18978 LDFLAGS="$LDFLAGS $blibflags$blibpath" 18979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 18980$as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} 18981fi 18982 18983ac_fn_c_check_member "$LINENO" "struct lastlog" "ll_line" "ac_cv_member_struct_lastlog_ll_line" " 18984#ifdef HAVE_SYS_TYPES_H 18985#include <sys/types.h> 18986#endif 18987#ifdef HAVE_UTMP_H 18988#include <utmp.h> 18989#endif 18990#ifdef HAVE_UTMPX_H 18991#include <utmpx.h> 18992#endif 18993#ifdef HAVE_LASTLOG_H 18994#include <lastlog.h> 18995#endif 18996 18997" 18998if test "x$ac_cv_member_struct_lastlog_ll_line" = xyes; then : 18999 19000else 19001 19002 if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then 19003 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h 19004 19005 fi 19006 19007fi 19008 19009 19010ac_fn_c_check_member "$LINENO" "struct utmp" "ut_line" "ac_cv_member_struct_utmp_ut_line" " 19011#ifdef HAVE_SYS_TYPES_H 19012#include <sys/types.h> 19013#endif 19014#ifdef HAVE_UTMP_H 19015#include <utmp.h> 19016#endif 19017#ifdef HAVE_UTMPX_H 19018#include <utmpx.h> 19019#endif 19020#ifdef HAVE_LASTLOG_H 19021#include <lastlog.h> 19022#endif 19023 19024" 19025if test "x$ac_cv_member_struct_utmp_ut_line" = xyes; then : 19026 19027else 19028 19029 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h 19030 19031 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h 19032 19033 19034fi 19035 19036 19037CFLAGS="$CFLAGS $werror_flags" 19038 19039if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then 19040 TEST_SSH_IPV6=no 19041else 19042 TEST_SSH_IPV6=yes 19043fi 19044ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default" 19045if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then : 19046 TEST_SSH_IPV6=no 19047fi 19048 19049TEST_SSH_IPV6=$TEST_SSH_IPV6 19050 19051TEST_SSH_UTF8=$TEST_SSH_UTF8 19052 19053TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS 19054 19055UNSUPPORTED_ALGORITHMS=$unsupported_algorithms 19056 19057 19058 19059ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh" 19060 19061cat >confcache <<\_ACEOF 19062# This file is a shell script that caches the results of configure 19063# tests run on this system so they can be shared between configure 19064# scripts and configure runs, see configure's option --config-cache. 19065# It is not useful on other systems. If it contains results you don't 19066# want to keep, you may remove or edit it. 19067# 19068# config.status only pays attention to the cache file if you give it 19069# the --recheck option to rerun configure. 19070# 19071# `ac_cv_env_foo' variables (set or unset) will be overridden when 19072# loading this file, other *unset* `ac_cv_foo' will be assigned the 19073# following values. 19074 19075_ACEOF 19076 19077# The following way of writing the cache mishandles newlines in values, 19078# but we know of no workaround that is simple, portable, and efficient. 19079# So, we kill variables containing newlines. 19080# Ultrix sh set writes to stderr and can't be redirected directly, 19081# and sets the high bit in the cache file unless we assign to the vars. 19082( 19083 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19084 eval ac_val=\$$ac_var 19085 case $ac_val in #( 19086 *${as_nl}*) 19087 case $ac_var in #( 19088 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19089$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19090 esac 19091 case $ac_var in #( 19092 _ | IFS | as_nl) ;; #( 19093 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19094 *) { eval $ac_var=; unset $ac_var;} ;; 19095 esac ;; 19096 esac 19097 done 19098 19099 (set) 2>&1 | 19100 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19101 *${as_nl}ac_space=\ *) 19102 # `set' does not quote correctly, so add quotes: double-quote 19103 # substitution turns \\\\ into \\, and sed turns \\ into \. 19104 sed -n \ 19105 "s/'/'\\\\''/g; 19106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19107 ;; #( 19108 *) 19109 # `set' quotes correctly as required by POSIX, so do not add quotes. 19110 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19111 ;; 19112 esac | 19113 sort 19114) | 19115 sed ' 19116 /^ac_cv_env_/b end 19117 t clear 19118 :clear 19119 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19120 t end 19121 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19122 :end' >>confcache 19123if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19124 if test -w "$cache_file"; then 19125 if test "x$cache_file" != "x/dev/null"; then 19126 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19127$as_echo "$as_me: updating cache $cache_file" >&6;} 19128 if test ! -f "$cache_file" || test -h "$cache_file"; then 19129 cat confcache >"$cache_file" 19130 else 19131 case $cache_file in #( 19132 */* | ?:*) 19133 mv -f confcache "$cache_file"$$ && 19134 mv -f "$cache_file"$$ "$cache_file" ;; #( 19135 *) 19136 mv -f confcache "$cache_file" ;; 19137 esac 19138 fi 19139 fi 19140 else 19141 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19142$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19143 fi 19144fi 19145rm -f confcache 19146 19147test "x$prefix" = xNONE && prefix=$ac_default_prefix 19148# Let make expand exec_prefix. 19149test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19150 19151DEFS=-DHAVE_CONFIG_H 19152 19153ac_libobjs= 19154ac_ltlibobjs= 19155U= 19156for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19157 # 1. Remove the extension, and $U if already installed. 19158 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19159 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19160 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19161 # will be set to the directory where LIBOBJS objects are built. 19162 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19163 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19164done 19165LIBOBJS=$ac_libobjs 19166 19167LTLIBOBJS=$ac_ltlibobjs 19168 19169 19170 19171 19172: "${CONFIG_STATUS=./config.status}" 19173ac_write_fail=0 19174ac_clean_files_save=$ac_clean_files 19175ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19176{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19177$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19178as_write_fail=0 19179cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19180#! $SHELL 19181# Generated by $as_me. 19182# Run this file to recreate the current configuration. 19183# Compiler output produced by configure, useful for debugging 19184# configure, is in config.log if it exists. 19185 19186debug=false 19187ac_cs_recheck=false 19188ac_cs_silent=false 19189 19190SHELL=\${CONFIG_SHELL-$SHELL} 19191export SHELL 19192_ASEOF 19193cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19194## -------------------- ## 19195## M4sh Initialization. ## 19196## -------------------- ## 19197 19198# Be more Bourne compatible 19199DUALCASE=1; export DUALCASE # for MKS sh 19200if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19201 emulate sh 19202 NULLCMD=: 19203 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19204 # is contrary to our usage. Disable this feature. 19205 alias -g '${1+"$@"}'='"$@"' 19206 setopt NO_GLOB_SUBST 19207else 19208 case `(set -o) 2>/dev/null` in #( 19209 *posix*) : 19210 set -o posix ;; #( 19211 *) : 19212 ;; 19213esac 19214fi 19215 19216 19217as_nl=' 19218' 19219export as_nl 19220# Printing a long string crashes Solaris 7 /usr/bin/printf. 19221as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19222as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19223as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19224# Prefer a ksh shell builtin over an external printf program on Solaris, 19225# but without wasting forks for bash or zsh. 19226if test -z "$BASH_VERSION$ZSH_VERSION" \ 19227 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19228 as_echo='print -r --' 19229 as_echo_n='print -rn --' 19230elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19231 as_echo='printf %s\n' 19232 as_echo_n='printf %s' 19233else 19234 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19235 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19236 as_echo_n='/usr/ucb/echo -n' 19237 else 19238 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19239 as_echo_n_body='eval 19240 arg=$1; 19241 case $arg in #( 19242 *"$as_nl"*) 19243 expr "X$arg" : "X\\(.*\\)$as_nl"; 19244 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19245 esac; 19246 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19247 ' 19248 export as_echo_n_body 19249 as_echo_n='sh -c $as_echo_n_body as_echo' 19250 fi 19251 export as_echo_body 19252 as_echo='sh -c $as_echo_body as_echo' 19253fi 19254 19255# The user is always right. 19256if test "${PATH_SEPARATOR+set}" != set; then 19257 PATH_SEPARATOR=: 19258 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19259 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19260 PATH_SEPARATOR=';' 19261 } 19262fi 19263 19264 19265# IFS 19266# We need space, tab and new line, in precisely that order. Quoting is 19267# there to prevent editors from complaining about space-tab. 19268# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19269# splitting by setting IFS to empty value.) 19270IFS=" "" $as_nl" 19271 19272# Find who we are. Look in the path if we contain no directory separator. 19273as_myself= 19274case $0 in #(( 19275 *[\\/]* ) as_myself=$0 ;; 19276 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19277for as_dir in $PATH 19278do 19279 IFS=$as_save_IFS 19280 test -z "$as_dir" && as_dir=. 19281 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19282 done 19283IFS=$as_save_IFS 19284 19285 ;; 19286esac 19287# We did not find ourselves, most probably we were run as `sh COMMAND' 19288# in which case we are not to be found in the path. 19289if test "x$as_myself" = x; then 19290 as_myself=$0 19291fi 19292if test ! -f "$as_myself"; then 19293 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19294 exit 1 19295fi 19296 19297# Unset variables that we do not need and which cause bugs (e.g. in 19298# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19299# suppresses any "Segmentation fault" message there. '((' could 19300# trigger a bug in pdksh 5.2.14. 19301for as_var in BASH_ENV ENV MAIL MAILPATH 19302do eval test x\${$as_var+set} = xset \ 19303 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19304done 19305PS1='$ ' 19306PS2='> ' 19307PS4='+ ' 19308 19309# NLS nuisances. 19310LC_ALL=C 19311export LC_ALL 19312LANGUAGE=C 19313export LANGUAGE 19314 19315# CDPATH. 19316(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19317 19318 19319# as_fn_error STATUS ERROR [LINENO LOG_FD] 19320# ---------------------------------------- 19321# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19322# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19323# script with STATUS, using 1 if that was 0. 19324as_fn_error () 19325{ 19326 as_status=$1; test $as_status -eq 0 && as_status=1 19327 if test "$4"; then 19328 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19329 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19330 fi 19331 $as_echo "$as_me: error: $2" >&2 19332 as_fn_exit $as_status 19333} # as_fn_error 19334 19335 19336# as_fn_set_status STATUS 19337# ----------------------- 19338# Set $? to STATUS, without forking. 19339as_fn_set_status () 19340{ 19341 return $1 19342} # as_fn_set_status 19343 19344# as_fn_exit STATUS 19345# ----------------- 19346# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19347as_fn_exit () 19348{ 19349 set +e 19350 as_fn_set_status $1 19351 exit $1 19352} # as_fn_exit 19353 19354# as_fn_unset VAR 19355# --------------- 19356# Portably unset VAR. 19357as_fn_unset () 19358{ 19359 { eval $1=; unset $1;} 19360} 19361as_unset=as_fn_unset 19362# as_fn_append VAR VALUE 19363# ---------------------- 19364# Append the text in VALUE to the end of the definition contained in VAR. Take 19365# advantage of any shell optimizations that allow amortized linear growth over 19366# repeated appends, instead of the typical quadratic growth present in naive 19367# implementations. 19368if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19369 eval 'as_fn_append () 19370 { 19371 eval $1+=\$2 19372 }' 19373else 19374 as_fn_append () 19375 { 19376 eval $1=\$$1\$2 19377 } 19378fi # as_fn_append 19379 19380# as_fn_arith ARG... 19381# ------------------ 19382# Perform arithmetic evaluation on the ARGs, and store the result in the 19383# global $as_val. Take advantage of shells that can avoid forks. The arguments 19384# must be portable across $(()) and expr. 19385if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19386 eval 'as_fn_arith () 19387 { 19388 as_val=$(( $* )) 19389 }' 19390else 19391 as_fn_arith () 19392 { 19393 as_val=`expr "$@" || test $? -eq 1` 19394 } 19395fi # as_fn_arith 19396 19397 19398if expr a : '\(a\)' >/dev/null 2>&1 && 19399 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19400 as_expr=expr 19401else 19402 as_expr=false 19403fi 19404 19405if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19406 as_basename=basename 19407else 19408 as_basename=false 19409fi 19410 19411if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19412 as_dirname=dirname 19413else 19414 as_dirname=false 19415fi 19416 19417as_me=`$as_basename -- "$0" || 19418$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19419 X"$0" : 'X\(//\)$' \| \ 19420 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19421$as_echo X/"$0" | 19422 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19423 s//\1/ 19424 q 19425 } 19426 /^X\/\(\/\/\)$/{ 19427 s//\1/ 19428 q 19429 } 19430 /^X\/\(\/\).*/{ 19431 s//\1/ 19432 q 19433 } 19434 s/.*/./; q'` 19435 19436# Avoid depending upon Character Ranges. 19437as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19438as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19439as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19440as_cr_digits='0123456789' 19441as_cr_alnum=$as_cr_Letters$as_cr_digits 19442 19443ECHO_C= ECHO_N= ECHO_T= 19444case `echo -n x` in #((((( 19445-n*) 19446 case `echo 'xy\c'` in 19447 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19448 xy) ECHO_C='\c';; 19449 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19450 ECHO_T=' ';; 19451 esac;; 19452*) 19453 ECHO_N='-n';; 19454esac 19455 19456rm -f conf$$ conf$$.exe conf$$.file 19457if test -d conf$$.dir; then 19458 rm -f conf$$.dir/conf$$.file 19459else 19460 rm -f conf$$.dir 19461 mkdir conf$$.dir 2>/dev/null 19462fi 19463if (echo >conf$$.file) 2>/dev/null; then 19464 if ln -s conf$$.file conf$$ 2>/dev/null; then 19465 as_ln_s='ln -s' 19466 # ... but there are two gotchas: 19467 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19468 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19469 # In both cases, we have to default to `cp -pR'. 19470 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19471 as_ln_s='cp -pR' 19472 elif ln conf$$.file conf$$ 2>/dev/null; then 19473 as_ln_s=ln 19474 else 19475 as_ln_s='cp -pR' 19476 fi 19477else 19478 as_ln_s='cp -pR' 19479fi 19480rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19481rmdir conf$$.dir 2>/dev/null 19482 19483 19484# as_fn_mkdir_p 19485# ------------- 19486# Create "$as_dir" as a directory, including parents if necessary. 19487as_fn_mkdir_p () 19488{ 19489 19490 case $as_dir in #( 19491 -*) as_dir=./$as_dir;; 19492 esac 19493 test -d "$as_dir" || eval $as_mkdir_p || { 19494 as_dirs= 19495 while :; do 19496 case $as_dir in #( 19497 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19498 *) as_qdir=$as_dir;; 19499 esac 19500 as_dirs="'$as_qdir' $as_dirs" 19501 as_dir=`$as_dirname -- "$as_dir" || 19502$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19503 X"$as_dir" : 'X\(//\)[^/]' \| \ 19504 X"$as_dir" : 'X\(//\)$' \| \ 19505 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19506$as_echo X"$as_dir" | 19507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19508 s//\1/ 19509 q 19510 } 19511 /^X\(\/\/\)[^/].*/{ 19512 s//\1/ 19513 q 19514 } 19515 /^X\(\/\/\)$/{ 19516 s//\1/ 19517 q 19518 } 19519 /^X\(\/\).*/{ 19520 s//\1/ 19521 q 19522 } 19523 s/.*/./; q'` 19524 test -d "$as_dir" && break 19525 done 19526 test -z "$as_dirs" || eval "mkdir $as_dirs" 19527 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19528 19529 19530} # as_fn_mkdir_p 19531if mkdir -p . 2>/dev/null; then 19532 as_mkdir_p='mkdir -p "$as_dir"' 19533else 19534 test -d ./-p && rmdir ./-p 19535 as_mkdir_p=false 19536fi 19537 19538 19539# as_fn_executable_p FILE 19540# ----------------------- 19541# Test if FILE is an executable regular file. 19542as_fn_executable_p () 19543{ 19544 test -f "$1" && test -x "$1" 19545} # as_fn_executable_p 19546as_test_x='test -x' 19547as_executable_p=as_fn_executable_p 19548 19549# Sed expression to map a string onto a valid CPP name. 19550as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19551 19552# Sed expression to map a string onto a valid variable name. 19553as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19554 19555 19556exec 6>&1 19557## ----------------------------------- ## 19558## Main body of $CONFIG_STATUS script. ## 19559## ----------------------------------- ## 19560_ASEOF 19561test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19562 19563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19564# Save the log message, to keep $0 and so on meaningful, and to 19565# report actual input values of CONFIG_FILES etc. instead of their 19566# values after options handling. 19567ac_log=" 19568This file was extended by OpenSSH $as_me Portable, which was 19569generated by GNU Autoconf 2.69. Invocation command line was 19570 19571 CONFIG_FILES = $CONFIG_FILES 19572 CONFIG_HEADERS = $CONFIG_HEADERS 19573 CONFIG_LINKS = $CONFIG_LINKS 19574 CONFIG_COMMANDS = $CONFIG_COMMANDS 19575 $ $0 $@ 19576 19577on `(hostname || uname -n) 2>/dev/null | sed 1q` 19578" 19579 19580_ACEOF 19581 19582case $ac_config_files in *" 19583"*) set x $ac_config_files; shift; ac_config_files=$*;; 19584esac 19585 19586case $ac_config_headers in *" 19587"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19588esac 19589 19590 19591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19592# Files that config.status was made for. 19593config_files="$ac_config_files" 19594config_headers="$ac_config_headers" 19595 19596_ACEOF 19597 19598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19599ac_cs_usage="\ 19600\`$as_me' instantiates files and other configuration actions 19601from templates according to the current configuration. Unless the files 19602and actions are specified as TAGs, all are instantiated by default. 19603 19604Usage: $0 [OPTION]... [TAG]... 19605 19606 -h, --help print this help, then exit 19607 -V, --version print version number and configuration settings, then exit 19608 --config print configuration, then exit 19609 -q, --quiet, --silent 19610 do not print progress messages 19611 -d, --debug don't remove temporary files 19612 --recheck update $as_me by reconfiguring in the same conditions 19613 --file=FILE[:TEMPLATE] 19614 instantiate the configuration file FILE 19615 --header=FILE[:TEMPLATE] 19616 instantiate the configuration header FILE 19617 19618Configuration files: 19619$config_files 19620 19621Configuration headers: 19622$config_headers 19623 19624Report bugs to <openssh-unix-dev@mindrot.org>." 19625 19626_ACEOF 19627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19628ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19629ac_cs_version="\\ 19630OpenSSH config.status Portable 19631configured by $0, generated by GNU Autoconf 2.69, 19632 with options \\"\$ac_cs_config\\" 19633 19634Copyright (C) 2012 Free Software Foundation, Inc. 19635This config.status script is free software; the Free Software Foundation 19636gives unlimited permission to copy, distribute and modify it." 19637 19638ac_pwd='$ac_pwd' 19639srcdir='$srcdir' 19640INSTALL='$INSTALL' 19641AWK='$AWK' 19642test -n "\$AWK" || AWK=awk 19643_ACEOF 19644 19645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19646# The default lists apply if the user does not specify any file. 19647ac_need_defaults=: 19648while test $# != 0 19649do 19650 case $1 in 19651 --*=?*) 19652 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19653 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19654 ac_shift=: 19655 ;; 19656 --*=) 19657 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19658 ac_optarg= 19659 ac_shift=: 19660 ;; 19661 *) 19662 ac_option=$1 19663 ac_optarg=$2 19664 ac_shift=shift 19665 ;; 19666 esac 19667 19668 case $ac_option in 19669 # Handling of the options. 19670 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19671 ac_cs_recheck=: ;; 19672 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19673 $as_echo "$ac_cs_version"; exit ;; 19674 --config | --confi | --conf | --con | --co | --c ) 19675 $as_echo "$ac_cs_config"; exit ;; 19676 --debug | --debu | --deb | --de | --d | -d ) 19677 debug=: ;; 19678 --file | --fil | --fi | --f ) 19679 $ac_shift 19680 case $ac_optarg in 19681 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19682 '') as_fn_error $? "missing file argument" ;; 19683 esac 19684 as_fn_append CONFIG_FILES " '$ac_optarg'" 19685 ac_need_defaults=false;; 19686 --header | --heade | --head | --hea ) 19687 $ac_shift 19688 case $ac_optarg in 19689 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19690 esac 19691 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19692 ac_need_defaults=false;; 19693 --he | --h) 19694 # Conflict between --help and --header 19695 as_fn_error $? "ambiguous option: \`$1' 19696Try \`$0 --help' for more information.";; 19697 --help | --hel | -h ) 19698 $as_echo "$ac_cs_usage"; exit ;; 19699 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19700 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19701 ac_cs_silent=: ;; 19702 19703 # This is an error. 19704 -*) as_fn_error $? "unrecognized option: \`$1' 19705Try \`$0 --help' for more information." ;; 19706 19707 *) as_fn_append ac_config_targets " $1" 19708 ac_need_defaults=false ;; 19709 19710 esac 19711 shift 19712done 19713 19714ac_configure_extra_args= 19715 19716if $ac_cs_silent; then 19717 exec 6>/dev/null 19718 ac_configure_extra_args="$ac_configure_extra_args --silent" 19719fi 19720 19721_ACEOF 19722cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19723if \$ac_cs_recheck; then 19724 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19725 shift 19726 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19727 CONFIG_SHELL='$SHELL' 19728 export CONFIG_SHELL 19729 exec "\$@" 19730fi 19731 19732_ACEOF 19733cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19734exec 5>>config.log 19735{ 19736 echo 19737 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19738## Running $as_me. ## 19739_ASBOX 19740 $as_echo "$ac_log" 19741} >&5 19742 19743_ACEOF 19744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19745_ACEOF 19746 19747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19748 19749# Handling of arguments. 19750for ac_config_target in $ac_config_targets 19751do 19752 case $ac_config_target in 19753 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19754 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19755 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; 19756 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; 19757 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;; 19758 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; 19759 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;; 19760 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;; 19761 19762 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19763 esac 19764done 19765 19766 19767# If the user did not use the arguments to specify the items to instantiate, 19768# then the envvar interface is used. Set only those that are not. 19769# We use the long form for the default assignment because of an extremely 19770# bizarre bug on SunOS 4.1.3. 19771if $ac_need_defaults; then 19772 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19773 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19774fi 19775 19776# Have a temporary directory for convenience. Make it in the build tree 19777# simply because there is no reason against having it here, and in addition, 19778# creating and moving files from /tmp can sometimes cause problems. 19779# Hook for its removal unless debugging. 19780# Note that there is a small window in which the directory will not be cleaned: 19781# after its creation but before its name has been assigned to `$tmp'. 19782$debug || 19783{ 19784 tmp= ac_tmp= 19785 trap 'exit_status=$? 19786 : "${ac_tmp:=$tmp}" 19787 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19788' 0 19789 trap 'as_fn_exit 1' 1 2 13 15 19790} 19791# Create a (secure) tmp directory for tmp files. 19792 19793{ 19794 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19795 test -d "$tmp" 19796} || 19797{ 19798 tmp=./conf$$-$RANDOM 19799 (umask 077 && mkdir "$tmp") 19800} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19801ac_tmp=$tmp 19802 19803# Set up the scripts for CONFIG_FILES section. 19804# No need to generate them if there are no CONFIG_FILES. 19805# This happens for instance with `./config.status config.h'. 19806if test -n "$CONFIG_FILES"; then 19807 19808 19809ac_cr=`echo X | tr X '\015'` 19810# On cygwin, bash can eat \r inside `` if the user requested igncr. 19811# But we know of no other shell where ac_cr would be empty at this 19812# point, so we can use a bashism as a fallback. 19813if test "x$ac_cr" = x; then 19814 eval ac_cr=\$\'\\r\' 19815fi 19816ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19817if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19818 ac_cs_awk_cr='\\r' 19819else 19820 ac_cs_awk_cr=$ac_cr 19821fi 19822 19823echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19824_ACEOF 19825 19826 19827{ 19828 echo "cat >conf$$subs.awk <<_ACEOF" && 19829 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19830 echo "_ACEOF" 19831} >conf$$subs.sh || 19832 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19833ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19834ac_delim='%!_!# ' 19835for ac_last_try in false false false false false :; do 19836 . ./conf$$subs.sh || 19837 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19838 19839 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19840 if test $ac_delim_n = $ac_delim_num; then 19841 break 19842 elif $ac_last_try; then 19843 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19844 else 19845 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19846 fi 19847done 19848rm -f conf$$subs.sh 19849 19850cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19851cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19852_ACEOF 19853sed -n ' 19854h 19855s/^/S["/; s/!.*/"]=/ 19856p 19857g 19858s/^[^!]*!// 19859:repl 19860t repl 19861s/'"$ac_delim"'$// 19862t delim 19863:nl 19864h 19865s/\(.\{148\}\)..*/\1/ 19866t more1 19867s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19868p 19869n 19870b repl 19871:more1 19872s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19873p 19874g 19875s/.\{148\}// 19876t nl 19877:delim 19878h 19879s/\(.\{148\}\)..*/\1/ 19880t more2 19881s/["\\]/\\&/g; s/^/"/; s/$/"/ 19882p 19883b 19884:more2 19885s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19886p 19887g 19888s/.\{148\}// 19889t delim 19890' <conf$$subs.awk | sed ' 19891/^[^""]/{ 19892 N 19893 s/\n// 19894} 19895' >>$CONFIG_STATUS || ac_write_fail=1 19896rm -f conf$$subs.awk 19897cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19898_ACAWK 19899cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19900 for (key in S) S_is_set[key] = 1 19901 FS = "" 19902 19903} 19904{ 19905 line = $ 0 19906 nfields = split(line, field, "@") 19907 substed = 0 19908 len = length(field[1]) 19909 for (i = 2; i < nfields; i++) { 19910 key = field[i] 19911 keylen = length(key) 19912 if (S_is_set[key]) { 19913 value = S[key] 19914 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19915 len += length(value) + length(field[++i]) 19916 substed = 1 19917 } else 19918 len += 1 + keylen 19919 } 19920 19921 print line 19922} 19923 19924_ACAWK 19925_ACEOF 19926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19927if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19928 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19929else 19930 cat 19931fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19932 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19933_ACEOF 19934 19935# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19936# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19937# trailing colons and then remove the whole line if VPATH becomes empty 19938# (actually we leave an empty line to preserve line numbers). 19939if test "x$srcdir" = x.; then 19940 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19941h 19942s/// 19943s/^/:/ 19944s/[ ]*$/:/ 19945s/:\$(srcdir):/:/g 19946s/:\${srcdir}:/:/g 19947s/:@srcdir@:/:/g 19948s/^:*// 19949s/:*$// 19950x 19951s/\(=[ ]*\).*/\1/ 19952G 19953s/\n// 19954s/^[^=]*=[ ]*$// 19955}' 19956fi 19957 19958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19959fi # test -n "$CONFIG_FILES" 19960 19961# Set up the scripts for CONFIG_HEADERS section. 19962# No need to generate them if there are no CONFIG_HEADERS. 19963# This happens for instance with `./config.status Makefile'. 19964if test -n "$CONFIG_HEADERS"; then 19965cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19966BEGIN { 19967_ACEOF 19968 19969# Transform confdefs.h into an awk script `defines.awk', embedded as 19970# here-document in config.status, that substitutes the proper values into 19971# config.h.in to produce config.h. 19972 19973# Create a delimiter string that does not exist in confdefs.h, to ease 19974# handling of long lines. 19975ac_delim='%!_!# ' 19976for ac_last_try in false false :; do 19977 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19978 if test -z "$ac_tt"; then 19979 break 19980 elif $ac_last_try; then 19981 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19982 else 19983 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19984 fi 19985done 19986 19987# For the awk script, D is an array of macro values keyed by name, 19988# likewise P contains macro parameters if any. Preserve backslash 19989# newline sequences. 19990 19991ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19992sed -n ' 19993s/.\{148\}/&'"$ac_delim"'/g 19994t rset 19995:rset 19996s/^[ ]*#[ ]*define[ ][ ]*/ / 19997t def 19998d 19999:def 20000s/\\$// 20001t bsnl 20002s/["\\]/\\&/g 20003s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20004D["\1"]=" \3"/p 20005s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20006d 20007:bsnl 20008s/["\\]/\\&/g 20009s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20010D["\1"]=" \3\\\\\\n"\\/p 20011t cont 20012s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20013t cont 20014d 20015:cont 20016n 20017s/.\{148\}/&'"$ac_delim"'/g 20018t clear 20019:clear 20020s/\\$// 20021t bsnlc 20022s/["\\]/\\&/g; s/^/"/; s/$/"/p 20023d 20024:bsnlc 20025s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20026b cont 20027' <confdefs.h | sed ' 20028s/'"$ac_delim"'/"\\\ 20029"/g' >>$CONFIG_STATUS || ac_write_fail=1 20030 20031cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20032 for (key in D) D_is_set[key] = 1 20033 FS = "" 20034} 20035/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20036 line = \$ 0 20037 split(line, arg, " ") 20038 if (arg[1] == "#") { 20039 defundef = arg[2] 20040 mac1 = arg[3] 20041 } else { 20042 defundef = substr(arg[1], 2) 20043 mac1 = arg[2] 20044 } 20045 split(mac1, mac2, "(") #) 20046 macro = mac2[1] 20047 prefix = substr(line, 1, index(line, defundef) - 1) 20048 if (D_is_set[macro]) { 20049 # Preserve the white space surrounding the "#". 20050 print prefix "define", macro P[macro] D[macro] 20051 next 20052 } else { 20053 # Replace #undef with comments. This is necessary, for example, 20054 # in the case of _POSIX_SOURCE, which is predefined and required 20055 # on some systems where configure will not decide to define it. 20056 if (defundef == "undef") { 20057 print "/*", prefix defundef, macro, "*/" 20058 next 20059 } 20060 } 20061} 20062{ print } 20063_ACAWK 20064_ACEOF 20065cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20066 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20067fi # test -n "$CONFIG_HEADERS" 20068 20069 20070eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 20071shift 20072for ac_tag 20073do 20074 case $ac_tag in 20075 :[FHLC]) ac_mode=$ac_tag; continue;; 20076 esac 20077 case $ac_mode$ac_tag in 20078 :[FHL]*:*);; 20079 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20080 :[FH]-) ac_tag=-:-;; 20081 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20082 esac 20083 ac_save_IFS=$IFS 20084 IFS=: 20085 set x $ac_tag 20086 IFS=$ac_save_IFS 20087 shift 20088 ac_file=$1 20089 shift 20090 20091 case $ac_mode in 20092 :L) ac_source=$1;; 20093 :[FH]) 20094 ac_file_inputs= 20095 for ac_f 20096 do 20097 case $ac_f in 20098 -) ac_f="$ac_tmp/stdin";; 20099 *) # Look for the file first in the build tree, then in the source tree 20100 # (if the path is not absolute). The absolute path cannot be DOS-style, 20101 # because $ac_f cannot contain `:'. 20102 test -f "$ac_f" || 20103 case $ac_f in 20104 [\\/$]*) false;; 20105 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20106 esac || 20107 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20108 esac 20109 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20110 as_fn_append ac_file_inputs " '$ac_f'" 20111 done 20112 20113 # Let's still pretend it is `configure' which instantiates (i.e., don't 20114 # use $as_me), people would be surprised to read: 20115 # /* config.h. Generated by config.status. */ 20116 configure_input='Generated from '` 20117 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20118 `' by configure.' 20119 if test x"$ac_file" != x-; then 20120 configure_input="$ac_file. $configure_input" 20121 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20122$as_echo "$as_me: creating $ac_file" >&6;} 20123 fi 20124 # Neutralize special characters interpreted by sed in replacement strings. 20125 case $configure_input in #( 20126 *\&* | *\|* | *\\* ) 20127 ac_sed_conf_input=`$as_echo "$configure_input" | 20128 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20129 *) ac_sed_conf_input=$configure_input;; 20130 esac 20131 20132 case $ac_tag in 20133 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20134 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20135 esac 20136 ;; 20137 esac 20138 20139 ac_dir=`$as_dirname -- "$ac_file" || 20140$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20141 X"$ac_file" : 'X\(//\)[^/]' \| \ 20142 X"$ac_file" : 'X\(//\)$' \| \ 20143 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20144$as_echo X"$ac_file" | 20145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20146 s//\1/ 20147 q 20148 } 20149 /^X\(\/\/\)[^/].*/{ 20150 s//\1/ 20151 q 20152 } 20153 /^X\(\/\/\)$/{ 20154 s//\1/ 20155 q 20156 } 20157 /^X\(\/\).*/{ 20158 s//\1/ 20159 q 20160 } 20161 s/.*/./; q'` 20162 as_dir="$ac_dir"; as_fn_mkdir_p 20163 ac_builddir=. 20164 20165case "$ac_dir" in 20166.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20167*) 20168 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20169 # A ".." for each directory in $ac_dir_suffix. 20170 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20171 case $ac_top_builddir_sub in 20172 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20173 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20174 esac ;; 20175esac 20176ac_abs_top_builddir=$ac_pwd 20177ac_abs_builddir=$ac_pwd$ac_dir_suffix 20178# for backward compatibility: 20179ac_top_builddir=$ac_top_build_prefix 20180 20181case $srcdir in 20182 .) # We are building in place. 20183 ac_srcdir=. 20184 ac_top_srcdir=$ac_top_builddir_sub 20185 ac_abs_top_srcdir=$ac_pwd ;; 20186 [\\/]* | ?:[\\/]* ) # Absolute name. 20187 ac_srcdir=$srcdir$ac_dir_suffix; 20188 ac_top_srcdir=$srcdir 20189 ac_abs_top_srcdir=$srcdir ;; 20190 *) # Relative name. 20191 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20192 ac_top_srcdir=$ac_top_build_prefix$srcdir 20193 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20194esac 20195ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20196 20197 20198 case $ac_mode in 20199 :F) 20200 # 20201 # CONFIG_FILE 20202 # 20203 20204 case $INSTALL in 20205 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20206 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20207 esac 20208_ACEOF 20209 20210cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20211# If the template does not know about datarootdir, expand it. 20212# FIXME: This hack should be removed a few years after 2.60. 20213ac_datarootdir_hack=; ac_datarootdir_seen= 20214ac_sed_dataroot=' 20215/datarootdir/ { 20216 p 20217 q 20218} 20219/@datadir@/p 20220/@docdir@/p 20221/@infodir@/p 20222/@localedir@/p 20223/@mandir@/p' 20224case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20225*datarootdir*) ac_datarootdir_seen=yes;; 20226*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20228$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20229_ACEOF 20230cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20231 ac_datarootdir_hack=' 20232 s&@datadir@&$datadir&g 20233 s&@docdir@&$docdir&g 20234 s&@infodir@&$infodir&g 20235 s&@localedir@&$localedir&g 20236 s&@mandir@&$mandir&g 20237 s&\\\${datarootdir}&$datarootdir&g' ;; 20238esac 20239_ACEOF 20240 20241# Neutralize VPATH when `$srcdir' = `.'. 20242# Shell code in configure.ac might set extrasub. 20243# FIXME: do we really want to maintain this feature? 20244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20245ac_sed_extra="$ac_vpsub 20246$extrasub 20247_ACEOF 20248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20249:t 20250/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20251s|@configure_input@|$ac_sed_conf_input|;t t 20252s&@top_builddir@&$ac_top_builddir_sub&;t t 20253s&@top_build_prefix@&$ac_top_build_prefix&;t t 20254s&@srcdir@&$ac_srcdir&;t t 20255s&@abs_srcdir@&$ac_abs_srcdir&;t t 20256s&@top_srcdir@&$ac_top_srcdir&;t t 20257s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20258s&@builddir@&$ac_builddir&;t t 20259s&@abs_builddir@&$ac_abs_builddir&;t t 20260s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20261s&@INSTALL@&$ac_INSTALL&;t t 20262$ac_datarootdir_hack 20263" 20264eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20265 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20266 20267test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20268 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20269 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20270 "$ac_tmp/out"`; test -z "$ac_out"; } && 20271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20272which seems to be undefined. Please make sure it is defined" >&5 20273$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20274which seems to be undefined. Please make sure it is defined" >&2;} 20275 20276 rm -f "$ac_tmp/stdin" 20277 case $ac_file in 20278 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20279 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20280 esac \ 20281 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20282 ;; 20283 :H) 20284 # 20285 # CONFIG_HEADER 20286 # 20287 if test x"$ac_file" != x-; then 20288 { 20289 $as_echo "/* $configure_input */" \ 20290 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20291 } >"$ac_tmp/config.h" \ 20292 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20293 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20294 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20295$as_echo "$as_me: $ac_file is unchanged" >&6;} 20296 else 20297 rm -f "$ac_file" 20298 mv "$ac_tmp/config.h" "$ac_file" \ 20299 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20300 fi 20301 else 20302 $as_echo "/* $configure_input */" \ 20303 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20304 || as_fn_error $? "could not create -" "$LINENO" 5 20305 fi 20306 ;; 20307 20308 20309 esac 20310 20311done # for ac_tag 20312 20313 20314as_fn_exit 0 20315_ACEOF 20316ac_clean_files=$ac_clean_files_save 20317 20318test $ac_write_fail = 0 || 20319 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20320 20321 20322# configure is writing to config.log, and then calls config.status. 20323# config.status does its own redirection, appending to config.log. 20324# Unfortunately, on DOS this fails, as config.log is still kept open 20325# by configure, so config.status won't be able to write to it; its 20326# output is simply discarded. So we exec the FD to /dev/null, 20327# effectively closing config.log, so it can be properly (re)opened and 20328# appended to by config.status. When coming back to configure, we 20329# need to make the FD available again. 20330if test "$no_create" != yes; then 20331 ac_cs_success=: 20332 ac_config_status_args= 20333 test "$silent" = yes && 20334 ac_config_status_args="$ac_config_status_args --quiet" 20335 exec 5>/dev/null 20336 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20337 exec 5>>config.log 20338 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20339 # would make configure fail if this is the last instruction. 20340 $ac_cs_success || as_fn_exit 1 20341fi 20342if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20344$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20345fi 20346 20347 20348# Print summary of options 20349 20350# Someone please show me a better way :) 20351A=`eval echo ${prefix}` ; A=`eval echo ${A}` 20352B=`eval echo ${bindir}` ; B=`eval echo ${B}` 20353C=`eval echo ${sbindir}` ; C=`eval echo ${C}` 20354D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` 20355E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` 20356F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` 20357G=`eval echo ${piddir}` ; G=`eval echo ${G}` 20358H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` 20359I=`eval echo ${user_path}` ; I=`eval echo ${I}` 20360J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` 20361 20362echo "" 20363echo "OpenSSH has been configured with the following options:" 20364echo " User binaries: $B" 20365echo " System binaries: $C" 20366echo " Configuration files: $D" 20367echo " Askpass program: $E" 20368echo " Manual pages: $F" 20369echo " PID file: $G" 20370echo " Privilege separation chroot path: $H" 20371if test "x$external_path_file" = "x/etc/login.conf" ; then 20372echo " At runtime, sshd will use the path defined in $external_path_file" 20373echo " Make sure the path to scp is present, otherwise scp will not work" 20374else 20375echo " sshd default user PATH: $I" 20376 if test ! -z "$external_path_file"; then 20377echo " (If PATH is set in $external_path_file it will be used instead. If" 20378echo " used, ensure the path to scp is present, otherwise scp will not work.)" 20379 fi 20380fi 20381if test ! -z "$superuser_path" ; then 20382echo " sshd superuser user PATH: $J" 20383fi 20384echo " Manpage format: $MANTYPE" 20385echo " PAM support: $PAM_MSG" 20386echo " OSF SIA support: $SIA_MSG" 20387echo " KerberosV support: $KRB5_MSG" 20388echo " SELinux support: $SELINUX_MSG" 20389echo " Smartcard support: $SCARD_MSG" 20390echo " S/KEY support: $SKEY_MSG" 20391echo " MD5 password support: $MD5_MSG" 20392echo " libedit support: $LIBEDIT_MSG" 20393echo " libldns support: $LDNS_MSG" 20394echo " Solaris process contract support: $SPC_MSG" 20395echo " Solaris project support: $SP_MSG" 20396echo " Solaris privilege support: $SPP_MSG" 20397echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" 20398echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" 20399echo " BSD Auth support: $BSD_AUTH_MSG" 20400echo " Random number source: $RAND_MSG" 20401echo " Privsep sandbox style: $SANDBOX_STYLE" 20402 20403echo "" 20404 20405echo " Host: ${host}" 20406echo " Compiler: ${CC}" 20407echo " Compiler flags: ${CFLAGS}" 20408echo "Preprocessor flags: ${CPPFLAGS}" 20409echo " Linker flags: ${LDFLAGS}" 20410echo " Libraries: ${LIBS}" 20411if test ! -z "${SSHDLIBS}"; then 20412echo " +for sshd: ${SSHDLIBS}" 20413fi 20414if test ! -z "${SSHLIBS}"; then 20415echo " +for ssh: ${SSHLIBS}" 20416fi 20417 20418echo "" 20419 20420if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then 20421 echo "SVR4 style packages are supported with \"make package\"" 20422 echo "" 20423fi 20424 20425if test "x$PAM_MSG" = "xyes" ; then 20426 echo "PAM is enabled. You may need to install a PAM control file " 20427 echo "for sshd, otherwise password authentication may fail. " 20428 echo "Example PAM control files can be found in the contrib/ " 20429 echo "subdirectory" 20430 echo "" 20431fi 20432 20433if test ! -z "$NO_PEERCHECK" ; then 20434 echo "WARNING: the operating system that you are using does not" 20435 echo "appear to support getpeereid(), getpeerucred() or the" 20436 echo "SO_PEERCRED getsockopt() option. These facilities are used to" 20437 echo "enforce security checks to prevent unauthorised connections to" 20438 echo "ssh-agent. Their absence increases the risk that a malicious" 20439 echo "user can connect to your agent." 20440 echo "" 20441fi 20442 20443if test "$AUDIT_MODULE" = "bsm" ; then 20444 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." 20445 echo "See the Solaris section in README.platform for details." 20446fi 20447