configure (239849) | configure (248613) |
---|---|
1#! /bin/sh | 1#! /bin/sh |
2# From configure.ac Revision: 1.496 . | 2# From configure.ac Revision: 1.518 . |
3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.68 for OpenSSH Portable. 5# 6# Report bugs to <openssh-unix-dev@mindrot.org>. 7# 8# 9# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 10# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software --- 598 unchanged lines hidden (view full) --- 609piddir 610user_path 611mansubdir 612MANTYPE 613XAUTH_PATH 614STRIP_OPT 615xauth_path 616PRIVSEP_PATH | 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.68 for OpenSSH Portable. 5# 6# Report bugs to <openssh-unix-dev@mindrot.org>. 7# 8# 9# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 10# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software --- 598 unchanged lines hidden (view full) --- 609piddir 610user_path 611mansubdir 612MANTYPE 613XAUTH_PATH 614STRIP_OPT 615xauth_path 616PRIVSEP_PATH |
617K5LIBS 618GSSLIBS |
|
617KRB5CONF 618SSHDLIBS 619SSHLIBS 620SSH_PRIVSEP_USER 621COMMENT_OUT_ECC 622TEST_SSH_ECC 623TEST_SSH_SHA256 624LIBEDIT --- 4957 unchanged lines hidden (view full) --- 5582 #include <sys/types.h> 5583 #include <linux/prctl.h> 5584 5585" 5586if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then : 5587 have_linux_no_new_privs=1 5588fi 5589 | 619KRB5CONF 620SSHDLIBS 621SSHLIBS 622SSH_PRIVSEP_USER 623COMMENT_OUT_ECC 624TEST_SSH_ECC 625TEST_SSH_SHA256 626LIBEDIT --- 4957 unchanged lines hidden (view full) --- 5584 #include <sys/types.h> 5585 #include <linux/prctl.h> 5586 5587" 5588if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then : 5589 have_linux_no_new_privs=1 5590fi 5591 |
5590if test "x$have_linux_no_new_privs" = "x1" ; then 5591ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" " 5592 #include <sys/types.h> 5593 #include <linux/seccomp.h> 5594 5595" 5596if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then : 5597 have_seccomp_filter=1 5598fi 5599 5600fi 5601if test "x$have_seccomp_filter" = "x1" ; then 5602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5 5603$as_echo_n "checking kernel for seccomp_filter support... " >&6; } 5604if test "$cross_compiling" = yes; then : 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 5606$as_echo "cross-compiling, assuming yes" >&6; } 5607 5608else 5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5610/* end confdefs.h. */ 5611 5612 #include <errno.h> 5613 #include <linux/seccomp.h> 5614 #include <stdlib.h> 5615 #include <sys/prctl.h> 5616 5617int 5618main () 5619{ 5620 errno = 0; 5621 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0); 5622 exit(errno == EFAULT ? 0 : 1); 5623 ; 5624 return 0; 5625} 5626_ACEOF 5627if ac_fn_c_try_run "$LINENO"; then : 5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5629$as_echo "yes" >&6; } 5630else 5631 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5633$as_echo "no" >&6; } 5634 # Disable seccomp filter as a target 5635 have_seccomp_filter=0 5636 5637fi 5638rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5639 conftest.$ac_objext conftest.beam conftest.$ac_ext 5640fi 5641 5642fi 5643 | |
5644use_stack_protector=1 5645 5646# Check whether --with-stackprotect was given. 5647if test "${with_stackprotect+set}" = set; then : 5648 withval=$with_stackprotect; 5649 if test "x$withval" = "xno"; then 5650 use_stack_protector=0 5651 fi --- 339 unchanged lines hidden (view full) --- 5991 have_llong_max=1 5992else 5993 CFLAGS="$saved_CFLAGS" 5994fi 5995 5996 fi 5997fi 5998 | 5592use_stack_protector=1 5593 5594# Check whether --with-stackprotect was given. 5595if test "${with_stackprotect+set}" = set; then : 5596 withval=$with_stackprotect; 5597 if test "x$withval" = "xno"; then 5598 use_stack_protector=0 5599 fi --- 339 unchanged lines hidden (view full) --- 5939 have_llong_max=1 5940else 5941 CFLAGS="$saved_CFLAGS" 5942fi 5943 5944 fi 5945fi 5946 |
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ on return types" >&5 5948$as_echo_n "checking if compiler allows __attribute__ on return types... " >&6; } 5949cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5950/* end confdefs.h. */ 5951 5952#include <stdlib.h> 5953__attribute__((__unused__)) static void foo(void){return;} 5954int 5955main () 5956{ 5957 exit(0); 5958 ; 5959 return 0; 5960} 5961_ACEOF 5962if ac_fn_c_try_compile "$LINENO"; then : 5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5964$as_echo "yes" >&6; } 5965else 5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5967$as_echo "no" >&6; } 5968 5969$as_echo "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h 5970 5971 5972fi 5973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5974 |
|
5999if test "x$no_attrib_nonnull" != "x1" ; then 6000 6001$as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h 6002 6003fi 6004 6005 6006# Check whether --with-rpath was given. --- 75 unchanged lines hidden (view full) --- 6082 6083 6084for ac_header in \ 6085 bstring.h \ 6086 crypt.h \ 6087 crypto/sha2.h \ 6088 dirent.h \ 6089 endian.h \ | 5975if test "x$no_attrib_nonnull" != "x1" ; then 5976 5977$as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h 5978 5979fi 5980 5981 5982# Check whether --with-rpath was given. --- 75 unchanged lines hidden (view full) --- 6058 6059 6060for ac_header in \ 6061 bstring.h \ 6062 crypt.h \ 6063 crypto/sha2.h \ 6064 dirent.h \ 6065 endian.h \ |
6066 elf.h \ |
|
6090 features.h \ 6091 fcntl.h \ 6092 floatingpoint.h \ 6093 getopt.h \ 6094 glob.h \ 6095 ia.h \ 6096 iaf.h \ 6097 limits.h \ --- 410 unchanged lines hidden (view full) --- 6508$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h 6509 6510 6511$as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h 6512 6513 6514$as_echo "#define PTY_ZEROREAD 1" >>confdefs.h 6515 | 6067 features.h \ 6068 fcntl.h \ 6069 floatingpoint.h \ 6070 getopt.h \ 6071 glob.h \ 6072 ia.h \ 6073 iaf.h \ 6074 limits.h \ --- 410 unchanged lines hidden (view full) --- 6485$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h 6486 6487 6488$as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h 6489 6490 6491$as_echo "#define PTY_ZEROREAD 1" >>confdefs.h 6492 |
6493 6494$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h 6495 |
|
6516 ;; 6517*-*-cygwin*) 6518 check_for_libcrypt_later=1 6519 LIBS="$LIBS /usr/lib/textreadmode.o" 6520 6521$as_echo "#define HAVE_CYGWIN 1" >>confdefs.h 6522 6523 --- 191 unchanged lines hidden (view full) --- 6715 6716 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h 6717 6718 6719$as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h 6720 6721 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h 6722 | 6496 ;; 6497*-*-cygwin*) 6498 check_for_libcrypt_later=1 6499 LIBS="$LIBS /usr/lib/textreadmode.o" 6500 6501$as_echo "#define HAVE_CYGWIN 1" >>confdefs.h 6502 6503 --- 191 unchanged lines hidden (view full) --- 6695 6696 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h 6697 6698 6699$as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h 6700 6701 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h 6702 |
6703 6704$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h 6705 |
|
6723 maildir="/var/mail" 6724 LIBS="$LIBS -lsec" 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5 6726$as_echo_n "checking for t_error in -lxnet... " >&6; } 6727if ${ac_cv_lib_xnet_t_error+:} false; then : 6728 $as_echo_n "(cached) " >&6 6729else 6730 ac_check_lib_save_LIBS=$LIBS --- 213 unchanged lines hidden (view full) --- 6944if test "x$ac_cv_func_prctl" = xyes; then : 6945 cat >>confdefs.h <<_ACEOF 6946#define HAVE_PRCTL 1 6947_ACEOF 6948 6949fi 6950done 6951 | 6706 maildir="/var/mail" 6707 LIBS="$LIBS -lsec" 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5 6709$as_echo_n "checking for t_error in -lxnet... " >&6; } 6710if ${ac_cv_lib_xnet_t_error+:} false; then : 6711 $as_echo_n "(cached) " >&6 6712else 6713 ac_check_lib_save_LIBS=$LIBS --- 213 unchanged lines hidden (view full) --- 6927if test "x$ac_cv_func_prctl" = xyes; then : 6928 cat >>confdefs.h <<_ACEOF 6929#define HAVE_PRCTL 1 6930_ACEOF 6931 6932fi 6933done 6934 |
6952 have_seccomp_audit_arch=1 | 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp architecture" >&5 6936$as_echo_n "checking for seccomp architecture... " >&6; } 6937 seccomp_audit_arch= |
6953 case "$host" in 6954 x86_64-*) | 6938 case "$host" in 6939 x86_64-*) |
6955 6956$as_echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_X86_64" >>confdefs.h 6957 | 6940 seccomp_audit_arch=AUDIT_ARCH_X86_64 |
6958 ;; 6959 i*86-*) | 6941 ;; 6942 i*86-*) |
6960 6961$as_echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_I386" >>confdefs.h 6962 | 6943 seccomp_audit_arch=AUDIT_ARCH_I386 |
6963 ;; | 6944 ;; |
6964 *) 6965 have_seccomp_audit_arch=0 6966 ;; | 6945 arm*-*) 6946 seccomp_audit_arch=AUDIT_ARCH_ARM 6947 ;; |
6967 esac | 6948 esac |
6949 if test "x$seccomp_audit_arch" != "x" ; then 6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5 6951$as_echo "\"$seccomp_audit_arch\"" >&6; } 6952 6953cat >>confdefs.h <<_ACEOF 6954#define SECCOMP_AUDIT_ARCH $seccomp_audit_arch 6955_ACEOF 6956 6957 else 6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: architecture not supported" >&5 6959$as_echo "architecture not supported" >&6; } 6960 fi |
|
6968 ;; 6969mips-sony-bsd|mips-sony-newsos4) 6970 6971$as_echo "#define NEED_SETPGRP 1" >>confdefs.h 6972 6973 SONY=1 6974 ;; 6975*-*-netbsd*) --- 34 unchanged lines hidden (view full) --- 7010$as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h 7011 7012fi 7013 7014 7015 7016$as_echo "#define BROKEN_GLOB 1" >>confdefs.h 7017 | 6961 ;; 6962mips-sony-bsd|mips-sony-newsos4) 6963 6964$as_echo "#define NEED_SETPGRP 1" >>confdefs.h 6965 6966 SONY=1 6967 ;; 6968*-*-netbsd*) --- 34 unchanged lines hidden (view full) --- 7003$as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h 7004 7005fi 7006 7007 7008 7009$as_echo "#define BROKEN_GLOB 1" >>confdefs.h 7010 |
7011 7012$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h 7013 |
|
7018 ;; 7019*-*-bsdi*) 7020 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 7021 7022 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 7023 7024 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 7025 --- 468 unchanged lines hidden (view full) --- 7494#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7495_ACEOF 7496 7497fi 7498done 7499 7500 MANTYPE=man 7501 TEST_SHELL=ksh | 7014 ;; 7015*-*-bsdi*) 7016 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 7017 7018 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h 7019 7020 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h 7021 --- 468 unchanged lines hidden (view full) --- 7490#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7491_ACEOF 7492 7493fi 7494done 7495 7496 MANTYPE=man 7497 TEST_SHELL=ksh |
7498 SKIP_DISABLE_LASTLOG_DEFINE=yes |
|
7502 ;; 7503*-*-unicosmk*) 7504 7505$as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h 7506 7507 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 7508 7509 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h --- 815 unchanged lines hidden (view full) --- 8325 LIBS="$LIBS -lc89" 8326fi 8327 8328 8329fi 8330done 8331 8332 | 7499 ;; 7500*-*-unicosmk*) 7501 7502$as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h 7503 7504 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 7505 7506 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h --- 815 unchanged lines hidden (view full) --- 8322 LIBS="$LIBS -lc89" 8323fi 8324 8325 8326fi 8327done 8328 8329 |
8333for ac_header in libutil.h | 8330for ac_header in bsd/libutil.h libutil.h |
8334do : | 8331do : |
8335 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default" 8336if test "x$ac_cv_header_libutil_h" = xyes; then : | 8332 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8333ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8334if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
8337 cat >>confdefs.h <<_ACEOF | 8335 cat >>confdefs.h <<_ACEOF |
8338#define HAVE_LIBUTIL_H 1 | 8336#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
8339_ACEOF 8340 8341fi 8342 8343done 8344 8345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5 8346$as_echo_n "checking for library containing fmt_scaled... " >&6; } --- 1173 unchanged lines hidden (view full) --- 9520 futimes \ 9521 getaddrinfo \ 9522 getcwd \ 9523 getgrouplist \ 9524 getnameinfo \ 9525 getopt \ 9526 getpeereid \ 9527 getpeerucred \ | 8337_ACEOF 8338 8339fi 8340 8341done 8342 8343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5 8344$as_echo_n "checking for library containing fmt_scaled... " >&6; } --- 1173 unchanged lines hidden (view full) --- 9518 futimes \ 9519 getaddrinfo \ 9520 getcwd \ 9521 getgrouplist \ 9522 getnameinfo \ 9523 getopt \ 9524 getpeereid \ 9525 getpeerucred \ |
9526 getpgid \ 9527 getpgrp \ |
|
9528 _getpty \ 9529 getrlimit \ 9530 getttyent \ 9531 glob \ 9532 group_from_gid \ 9533 inet_aton \ 9534 inet_ntoa \ 9535 inet_ntop \ --- 43 unchanged lines hidden (view full) --- 9579 strlcpy \ 9580 strmode \ 9581 strnlen \ 9582 strnvis \ 9583 strptime \ 9584 strtonum \ 9585 strtoll \ 9586 strtoul \ | 9528 _getpty \ 9529 getrlimit \ 9530 getttyent \ 9531 glob \ 9532 group_from_gid \ 9533 inet_aton \ 9534 inet_ntoa \ 9535 inet_ntop \ --- 43 unchanged lines hidden (view full) --- 9579 strlcpy \ 9580 strmode \ 9581 strnlen \ 9582 strnvis \ 9583 strptime \ 9584 strtonum \ 9585 strtoll \ 9586 strtoul \ |
9587 strtoull \ |
|
9587 swap32 \ 9588 sysconf \ 9589 tcgetpgrp \ 9590 timingsafe_bcmp \ 9591 truncate \ 9592 unsetenv \ 9593 updwtmpx \ 9594 user_from_uid \ | 9588 swap32 \ 9589 sysconf \ 9590 tcgetpgrp \ 9591 timingsafe_bcmp \ 9592 truncate \ 9593 unsetenv \ 9594 updwtmpx \ 9595 user_from_uid \ |
9596 usleep \ |
|
9595 vasprintf \ 9596 vhangup \ 9597 vsnprintf \ 9598 waitpid \ 9599 9600do : 9601 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9602ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" --- 1591 unchanged lines hidden (view full) --- 11194$as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h 11195 11196 11197 11198fi 11199rm -f core conftest.err conftest.$ac_objext \ 11200 conftest$ac_exeext conftest.$ac_ext 11201 | 9597 vasprintf \ 9598 vhangup \ 9599 vsnprintf \ 9600 waitpid \ 9601 9602do : 9603 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9604ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" --- 1591 unchanged lines hidden (view full) --- 11196$as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h 11197 11198 11199 11200fi 11201rm -f core conftest.err conftest.$ac_objext \ 11202 conftest$ac_exeext conftest.$ac_ext 11203 |
11204# Check for OpenSSL with EVP_aes_*ctr 11205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES CTR via EVP" >&5 11206$as_echo_n "checking whether OpenSSL has AES CTR via EVP... " >&6; } 11207cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11208/* end confdefs.h. */ 11209 11210#include <string.h> 11211#include <openssl/evp.h> 11212 11213int 11214main () 11215{ 11216 11217 exit(EVP_aes_128_ctr() == NULL || 11218 EVP_aes_192_cbc() == NULL || 11219 EVP_aes_256_cbc() == NULL); 11220 11221 ; 11222 return 0; 11223} 11224_ACEOF 11225if ac_fn_c_try_link "$LINENO"; then : 11226 11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11228$as_echo "yes" >&6; } 11229 11230$as_echo "#define OPENSSL_HAVE_EVPCTR 1" >>confdefs.h 11231 11232 11233else 11234 11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11236$as_echo "no" >&6; } 11237 11238 11239fi 11240rm -f core conftest.err conftest.$ac_objext \ 11241 conftest$ac_exeext conftest.$ac_ext 11242 11243# Check for OpenSSL with EVP_aes_*gcm 11244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES GCM via EVP" >&5 11245$as_echo_n "checking whether OpenSSL has AES GCM via EVP... " >&6; } 11246cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11247/* end confdefs.h. */ 11248 11249#include <string.h> 11250#include <openssl/evp.h> 11251 11252int 11253main () 11254{ 11255 11256 exit(EVP_aes_128_gcm() == NULL || 11257 EVP_aes_256_gcm() == NULL || 11258 EVP_CTRL_GCM_SET_IV_FIXED == 0 || 11259 EVP_CTRL_GCM_IV_GEN == 0 || 11260 EVP_CTRL_GCM_SET_TAG == 0 || 11261 EVP_CTRL_GCM_GET_TAG == 0 || 11262 EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0); 11263 11264 ; 11265 return 0; 11266} 11267_ACEOF 11268if ac_fn_c_try_link "$LINENO"; then : 11269 11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11271$as_echo "yes" >&6; } 11272 11273$as_echo "#define OPENSSL_HAVE_EVPGCM 1" >>confdefs.h 11274 11275 11276else 11277 11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11279$as_echo "no" >&6; } 11280 11281 11282fi 11283rm -f core conftest.err conftest.$ac_objext \ 11284 conftest$ac_exeext conftest.$ac_ext 11285 11286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_ctrl" >&5 11287$as_echo_n "checking for library containing EVP_CIPHER_CTX_ctrl... " >&6; } 11288if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : 11289 $as_echo_n "(cached) " >&6 11290else 11291 ac_func_search_save_LIBS=$LIBS 11292cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11293/* end confdefs.h. */ 11294 11295/* Override any GCC internal prototype to avoid an error. 11296 Use char because int might match the return type of a GCC 11297 builtin and then its argument prototype would still apply. */ 11298#ifdef __cplusplus 11299extern "C" 11300#endif 11301char EVP_CIPHER_CTX_ctrl (); 11302int 11303main () 11304{ 11305return EVP_CIPHER_CTX_ctrl (); 11306 ; 11307 return 0; 11308} 11309_ACEOF 11310for ac_lib in '' crypto; do 11311 if test -z "$ac_lib"; then 11312 ac_res="none required" 11313 else 11314 ac_res=-l$ac_lib 11315 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11316 fi 11317 if ac_fn_c_try_link "$LINENO"; then : 11318 ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res 11319fi 11320rm -f core conftest.err conftest.$ac_objext \ 11321 conftest$ac_exeext 11322 if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : 11323 break 11324fi 11325done 11326if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : 11327 11328else 11329 ac_cv_search_EVP_CIPHER_CTX_ctrl=no 11330fi 11331rm conftest.$ac_ext 11332LIBS=$ac_func_search_save_LIBS 11333fi 11334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5 11335$as_echo "$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; } 11336ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl 11337if test "$ac_res" != no; then : 11338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11339 11340$as_echo "#define HAVE_EVP_CIPHER_CTX_CTRL 1" >>confdefs.h 11341 11342fi 11343 11344 |
|
11202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5 11203$as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; } 11204cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11205/* end confdefs.h. */ 11206 11207#include <string.h> 11208#include <openssl/evp.h> 11209 --- 613 unchanged lines hidden (view full) --- 11823 11824 11825cat >>confdefs.h <<_ACEOF 11826#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" 11827_ACEOF 11828 11829 11830 | 11345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5 11346$as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; } 11347cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11348/* end confdefs.h. */ 11349 11350#include <string.h> 11351#include <openssl/evp.h> 11352 --- 613 unchanged lines hidden (view full) --- 11966 11967 11968cat >>confdefs.h <<_ACEOF 11969#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" 11970_ACEOF 11971 11972 11973 |
11974if test "x$have_linux_no_new_privs" = "x1" ; then 11975ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" " 11976 #include <sys/types.h> 11977 #include <linux/seccomp.h> 11978 11979" 11980if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then : 11981 have_seccomp_filter=1 11982fi 11983 11984fi 11985if test "x$have_seccomp_filter" = "x1" ; then 11986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5 11987$as_echo_n "checking kernel for seccomp_filter support... " >&6; } 11988cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11989/* end confdefs.h. */ 11990 11991 #include <errno.h> 11992 #include <elf.h> 11993 #include <linux/audit.h> 11994 #include <linux/seccomp.h> 11995 #include <stdlib.h> 11996 #include <sys/prctl.h> 11997 11998int 11999main () 12000{ 12001 int i = $seccomp_audit_arch; 12002 errno = 0; 12003 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0); 12004 exit(errno == EFAULT ? 0 : 1); 12005 ; 12006 return 0; 12007} 12008_ACEOF 12009if ac_fn_c_try_link "$LINENO"; then : 12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12011$as_echo "yes" >&6; } 12012else 12013 12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12015$as_echo "no" >&6; } 12016 # Disable seccomp filter as a target 12017 have_seccomp_filter=0 12018 12019 12020fi 12021rm -f core conftest.err conftest.$ac_objext \ 12022 conftest$ac_exeext conftest.$ac_ext 12023fi 12024 |
|
11831# Decide which sandbox style to use 11832sandbox_arg="" 11833 11834# Check whether --with-sandbox was given. 11835if test "${with_sandbox+set}" = set; then : 11836 withval=$with_sandbox; 11837 if test "x$withval" = "xyes" ; then 11838 sandbox_arg="" --- 32 unchanged lines hidden (view full) --- 11871 11872int 11873main () 11874{ 11875 11876 struct rlimit rl_zero; 11877 int fd, r; 11878 fd_set fds; | 12025# Decide which sandbox style to use 12026sandbox_arg="" 12027 12028# Check whether --with-sandbox was given. 12029if test "${with_sandbox+set}" = set; then : 12030 withval=$with_sandbox; 12031 if test "x$withval" = "xyes" ; then 12032 sandbox_arg="" --- 32 unchanged lines hidden (view full) --- 12065 12066int 12067main () 12068{ 12069 12070 struct rlimit rl_zero; 12071 int fd, r; 12072 fd_set fds; |
12073 struct timeval tv; |
|
11879 11880 fd = open("/dev/null", O_RDONLY); 11881 FD_ZERO(&fds); 11882 FD_SET(fd, &fds); 11883 rl_zero.rlim_cur = rl_zero.rlim_max = 0; 11884 setrlimit(RLIMIT_FSIZE, &rl_zero); 11885 setrlimit(RLIMIT_NOFILE, &rl_zero); | 12074 12075 fd = open("/dev/null", O_RDONLY); 12076 FD_ZERO(&fds); 12077 FD_SET(fd, &fds); 12078 rl_zero.rlim_cur = rl_zero.rlim_max = 0; 12079 setrlimit(RLIMIT_FSIZE, &rl_zero); 12080 setrlimit(RLIMIT_NOFILE, &rl_zero); |
11886 r = select(fd+1, &fds, NULL, NULL, NULL); | 12081 tv.tv_sec = 1; 12082 tv.tv_usec = 0; 12083 r = select(fd+1, &fds, NULL, NULL, &tv); |
11887 exit (r == -1 ? 1 : 0); 11888 11889 ; 11890 return 0; 11891} 11892_ACEOF 11893if ac_fn_c_try_run "$LINENO"; then : 11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 --- 4 unchanged lines hidden (view full) --- 11899$as_echo "no" >&6; } 11900 select_works_with_rlimit=no 11901fi 11902rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11903 conftest.$ac_objext conftest.beam conftest.$ac_ext 11904fi 11905 11906 | 12084 exit (r == -1 ? 1 : 0); 12085 12086 ; 12087 return 0; 12088} 12089_ACEOF 12090if ac_fn_c_try_run "$LINENO"; then : 12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 --- 4 unchanged lines hidden (view full) --- 12096$as_echo "no" >&6; } 12097 select_works_with_rlimit=no 12098fi 12099rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12100 conftest.$ac_objext conftest.beam conftest.$ac_ext 12101fi 12102 12103 |
12104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5 12105$as_echo_n "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... " >&6; } 12106if test "$cross_compiling" = yes; then : 12107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 12108$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} 12109 12110else 12111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12112/* end confdefs.h. */ 12113 12114#include <sys/types.h> 12115#ifdef HAVE_SYS_TIME_H 12116# include <sys/time.h> 12117#endif 12118#include <sys/resource.h> 12119#include <errno.h> 12120#include <stdlib.h> 12121 12122int 12123main () 12124{ 12125 12126 struct rlimit rl_zero; 12127 int fd, r; 12128 fd_set fds; 12129 12130 rl_zero.rlim_cur = rl_zero.rlim_max = 0; 12131 r = setrlimit(RLIMIT_NOFILE, &rl_zero); 12132 exit (r == -1 ? 1 : 0); 12133 12134 ; 12135 return 0; 12136} 12137_ACEOF 12138if ac_fn_c_try_run "$LINENO"; then : 12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12140$as_echo "yes" >&6; } 12141 rlimit_nofile_zero_works=yes 12142else 12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12144$as_echo "no" >&6; } 12145 rlimit_nofile_zero_works=no 12146fi 12147rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12148 conftest.$ac_objext conftest.beam conftest.$ac_ext 12149fi 12150 12151 |
|
11907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5 11908$as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; } 11909if test "$cross_compiling" = yes; then : 11910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 11911$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} 11912 11913else 11914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext --- 47 unchanged lines hidden (view full) --- 11962 as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5 11963 SANDBOX_STYLE="darwin" 11964 11965$as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h 11966 11967elif test "x$sandbox_arg" = "xseccomp_filter" || \ 11968 ( test -z "$sandbox_arg" && \ 11969 test "x$have_seccomp_filter" = "x1" && \ | 12152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5 12153$as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; } 12154if test "$cross_compiling" = yes; then : 12155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 12156$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} 12157 12158else 12159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext --- 47 unchanged lines hidden (view full) --- 12207 as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5 12208 SANDBOX_STYLE="darwin" 12209 12210$as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h 12211 12212elif test "x$sandbox_arg" = "xseccomp_filter" || \ 12213 ( test -z "$sandbox_arg" && \ 12214 test "x$have_seccomp_filter" = "x1" && \ |
12215 test "x$ac_cv_header_elf_h" = "xyes" && \ |
|
11970 test "x$ac_cv_header_linux_audit_h" = "xyes" && \ | 12216 test "x$ac_cv_header_linux_audit_h" = "xyes" && \ |
11971 test "x$have_seccomp_audit_arch" = "x1" && \ | 12217 test "x$ac_cv_header_linux_filter_h" = "xyes" && \ 12218 test "x$seccomp_audit_arch" != "x" && \ |
11972 test "x$have_linux_no_new_privs" = "x1" && \ 11973 test "x$ac_cv_func_prctl" = "xyes" ) ; then | 12219 test "x$have_linux_no_new_privs" = "x1" && \ 12220 test "x$ac_cv_func_prctl" = "xyes" ) ; then |
11974 test "x$have_seccomp_audit_arch" != "x1" && \ | 12221 test "x$seccomp_audit_arch" = "x" && \ |
11975 as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5 11976 test "x$have_linux_no_new_privs" != "x1" && \ 11977 as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5 11978 test "x$have_seccomp_filter" != "x1" && \ 11979 as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5 11980 test "x$ac_cv_func_prctl" != "xyes" && \ 11981 as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5 11982 SANDBOX_STYLE="seccomp_filter" 11983 11984$as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h 11985 11986elif test "x$sandbox_arg" = "xrlimit" || \ 11987 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \ | 12222 as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5 12223 test "x$have_linux_no_new_privs" != "x1" && \ 12224 as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5 12225 test "x$have_seccomp_filter" != "x1" && \ 12226 as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5 12227 test "x$ac_cv_func_prctl" != "xyes" && \ 12228 as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5 12229 SANDBOX_STYLE="seccomp_filter" 12230 12231$as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h 12232 12233elif test "x$sandbox_arg" = "xrlimit" || \ 12234 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \ |
11988 test "x$select_works_with_rlimit" == "xyes" ) ; then | 12235 test "x$select_works_with_rlimit" = "xyes" && \ 12236 test "x$rlimit_nofile_zero_works" = "xyes" ) ; then |
11989 test "x$ac_cv_func_setrlimit" != "xyes" && \ 11990 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5 11991 test "x$select_works_with_rlimit" != "xyes" && \ 11992 as_fn_error $? "rlimit sandbox requires select to work with rlimit" "$LINENO" 5 11993 SANDBOX_STYLE="rlimit" 11994 11995$as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h 11996 --- 3168 unchanged lines hidden (view full) --- 15165$as_echo "$KRB5CONF" >&6; } 15166else 15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15168$as_echo "no" >&6; } 15169fi 15170 15171 15172 if test -x $KRB5CONF ; then | 12237 test "x$ac_cv_func_setrlimit" != "xyes" && \ 12238 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5 12239 test "x$select_works_with_rlimit" != "xyes" && \ 12240 as_fn_error $? "rlimit sandbox requires select to work with rlimit" "$LINENO" 5 12241 SANDBOX_STYLE="rlimit" 12242 12243$as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h 12244 --- 3168 unchanged lines hidden (view full) --- 15413$as_echo "$KRB5CONF" >&6; } 15414else 15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15416$as_echo "no" >&6; } 15417fi 15418 15419 15420 if test -x $KRB5CONF ; then |
15421 K5CFLAGS="`$KRB5CONF --cflags`" 15422 K5LIBS="`$KRB5CONF --libs`" 15423 CPPFLAGS="$CPPFLAGS $K5CFLAGS" |
|
15173 15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5 15175$as_echo_n "checking for gssapi support... " >&6; } 15176 if $KRB5CONF | grep gssapi >/dev/null ; then 15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15178$as_echo "yes" >&6; } 15179 15180$as_echo "#define GSSAPI 1" >>confdefs.h 15181 | 15424 15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5 15426$as_echo_n "checking for gssapi support... " >&6; } 15427 if $KRB5CONF | grep gssapi >/dev/null ; then 15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15429$as_echo "yes" >&6; } 15430 15431$as_echo "#define GSSAPI 1" >>confdefs.h 15432 |
15182 k5confopts=gssapi | 15433 GSSCFLAGS="`$KRB5CONF --cflags gssapi`" 15434 GSSLIBS="`$KRB5CONF --libs gssapi`" 15435 CPPFLAGS="$CPPFLAGS $GSSCFLAGS" |
15183 else 15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15185$as_echo "no" >&6; } | 15436 else 15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15438$as_echo "no" >&6; } |
15186 k5confopts="" | |
15187 fi | 15439 fi |
15188 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`" 15189 K5LIBS="`$KRB5CONF --libs $k5confopts`" 15190 CPPFLAGS="$CPPFLAGS $K5CFLAGS" | |
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 15192$as_echo_n "checking whether we are using Heimdal... " >&6; } 15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15194/* end confdefs.h. */ 15195 #include <krb5.h> 15196 15197int 15198main () --- 186 unchanged lines hidden (view full) --- 15385 15386 15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5 15388$as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; } 15389if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then : 15390 $as_echo_n "(cached) " >&6 15391else 15392 ac_check_lib_save_LIBS=$LIBS | 15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 15441$as_echo_n "checking whether we are using Heimdal... " >&6; } 15442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15443/* end confdefs.h. */ 15444 #include <krb5.h> 15445 15446int 15447main () --- 186 unchanged lines hidden (view full) --- 15634 15635 15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5 15637$as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; } 15638if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then : 15639 $as_echo_n "(cached) " >&6 15640else 15641 ac_check_lib_save_LIBS=$LIBS |
15393LIBS="-lgssapi_krb5 $K5LIBS $LIBS" | 15642LIBS="-lgssapi_krb5 $LIBS" |
15394cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15395/* end confdefs.h. */ 15396 15397/* Override any GCC internal prototype to avoid an error. 15398 Use char because int might match the return type of a GCC 15399 builtin and then its argument prototype would still apply. */ 15400#ifdef __cplusplus 15401extern "C" --- 16 unchanged lines hidden (view full) --- 15418 conftest$ac_exeext conftest.$ac_ext 15419LIBS=$ac_check_lib_save_LIBS 15420fi 15421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 15422$as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } 15423if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then : 15424 $as_echo "#define GSSAPI 1" >>confdefs.h 15425 | 15643cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15644/* end confdefs.h. */ 15645 15646/* Override any GCC internal prototype to avoid an error. 15647 Use char because int might match the return type of a GCC 15648 builtin and then its argument prototype would still apply. */ 15649#ifdef __cplusplus 15650extern "C" --- 16 unchanged lines hidden (view full) --- 15667 conftest$ac_exeext conftest.$ac_ext 15668LIBS=$ac_check_lib_save_LIBS 15669fi 15670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 15671$as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } 15672if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then : 15673 $as_echo "#define GSSAPI 1" >>confdefs.h 15674 |
15426 K5LIBS="-lgssapi_krb5 $K5LIBS" | 15675 GSSLIBS="-lgssapi_krb5" |
15427else 15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5 15429$as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; } 15430if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then : 15431 $as_echo_n "(cached) " >&6 15432else 15433 ac_check_lib_save_LIBS=$LIBS | 15676else 15677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5 15678$as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; } 15679if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then : 15680 $as_echo_n "(cached) " >&6 15681else 15682 ac_check_lib_save_LIBS=$LIBS |
15434LIBS="-lgssapi $K5LIBS $LIBS" | 15683LIBS="-lgssapi $LIBS" |
15435cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15436/* end confdefs.h. */ 15437 15438/* Override any GCC internal prototype to avoid an error. 15439 Use char because int might match the return type of a GCC 15440 builtin and then its argument prototype would still apply. */ 15441#ifdef __cplusplus 15442extern "C" --- 16 unchanged lines hidden (view full) --- 15459 conftest$ac_exeext conftest.$ac_ext 15460LIBS=$ac_check_lib_save_LIBS 15461fi 15462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 15463$as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } 15464if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then : 15465 $as_echo "#define GSSAPI 1" >>confdefs.h 15466 | 15684cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15685/* end confdefs.h. */ 15686 15687/* Override any GCC internal prototype to avoid an error. 15688 Use char because int might match the return type of a GCC 15689 builtin and then its argument prototype would still apply. */ 15690#ifdef __cplusplus 15691extern "C" --- 16 unchanged lines hidden (view full) --- 15708 conftest$ac_exeext conftest.$ac_ext 15709LIBS=$ac_check_lib_save_LIBS 15710fi 15711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 15712$as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } 15713if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then : 15714 $as_echo "#define GSSAPI 1" >>confdefs.h 15715 |
15467 K5LIBS="-lgssapi $K5LIBS" | 15716 GSSLIBS="-lgssapi" |
15468else | 15717else |
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgss" >&5 15719$as_echo_n "checking for gss_init_sec_context in -lgss... " >&6; } 15720if ${ac_cv_lib_gss_gss_init_sec_context+:} false; then : 15721 $as_echo_n "(cached) " >&6 15722else 15723 ac_check_lib_save_LIBS=$LIBS 15724LIBS="-lgss $LIBS" 15725cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15726/* end confdefs.h. */ 15727 15728/* Override any GCC internal prototype to avoid an error. 15729 Use char because int might match the return type of a GCC 15730 builtin and then its argument prototype would still apply. */ 15731#ifdef __cplusplus 15732extern "C" 15733#endif 15734char gss_init_sec_context (); 15735int 15736main () 15737{ 15738return gss_init_sec_context (); 15739 ; 15740 return 0; 15741} 15742_ACEOF 15743if ac_fn_c_try_link "$LINENO"; then : 15744 ac_cv_lib_gss_gss_init_sec_context=yes 15745else 15746 ac_cv_lib_gss_gss_init_sec_context=no 15747fi 15748rm -f core conftest.err conftest.$ac_objext \ 15749 conftest$ac_exeext conftest.$ac_ext 15750LIBS=$ac_check_lib_save_LIBS 15751fi 15752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_init_sec_context" >&5 15753$as_echo "$ac_cv_lib_gss_gss_init_sec_context" >&6; } 15754if test "x$ac_cv_lib_gss_gss_init_sec_context" = xyes; then : 15755 $as_echo "#define GSSAPI 1" >>confdefs.h 15756 15757 GSSLIBS="-lgss" 15758else |
|
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 15470$as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} 15471fi 15472 15473 15474fi 15475 15476 | 15759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 15760$as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} 15761fi 15762 15763 15764fi 15765 15766 |
15767fi 15768 15769 |
|
15477 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" 15478if test "x$ac_cv_header_gssapi_h" = xyes; then : 15479 15480else 15481 unset ac_cv_header_gssapi_h 15482 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" 15483 for ac_header in gssapi.h 15484do : --- 71 unchanged lines hidden (view full) --- 15556#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15557_ACEOF 15558 15559fi 15560 15561done 15562 15563 | 15770 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" 15771if test "x$ac_cv_header_gssapi_h" = xyes; then : 15772 15773else 15774 unset ac_cv_header_gssapi_h 15775 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" 15776 for ac_header in gssapi.h 15777do : --- 71 unchanged lines hidden (view full) --- 15849#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15850_ACEOF 15851 15852fi 15853 15854done 15855 15856 |
15564 LIBS="$LIBS $K5LIBS" | |
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5 15566$as_echo_n "checking for library containing k_hasafs... " >&6; } 15567if ${ac_cv_search_k_hasafs+:} false; then : 15568 $as_echo_n "(cached) " >&6 15569else 15570 ac_func_search_save_LIBS=$LIBS 15571cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15572/* end confdefs.h. */ --- 42 unchanged lines hidden (view full) --- 15615ac_res=$ac_cv_search_k_hasafs 15616if test "$ac_res" != no; then : 15617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15618 15619$as_echo "#define USE_AFS 1" >>confdefs.h 15620 15621fi 15622 | 15857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5 15858$as_echo_n "checking for library containing k_hasafs... " >&6; } 15859if ${ac_cv_search_k_hasafs+:} false; then : 15860 $as_echo_n "(cached) " >&6 15861else 15862 ac_func_search_save_LIBS=$LIBS 15863cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15864/* end confdefs.h. */ --- 42 unchanged lines hidden (view full) --- 15907ac_res=$ac_cv_search_k_hasafs 15908if test "$ac_res" != no; then : 15909 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15910 15911$as_echo "#define USE_AFS 1" >>confdefs.h 15912 15913fi 15914 |
15915 15916 ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" " 15917#ifdef HAVE_GSSAPI_H 15918# include <gssapi.h> 15919#elif defined(HAVE_GSSAPI_GSSAPI_H) 15920# include <gssapi/gssapi.h> 15921#endif 15922 15923#ifdef HAVE_GSSAPI_GENERIC_H 15924# include <gssapi_generic.h> 15925#elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H) 15926# include <gssapi/gssapi_generic.h> 15927#endif 15928 15929" 15930if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then : 15931 ac_have_decl=1 15932else 15933 ac_have_decl=0 15934fi 15935 15936cat >>confdefs.h <<_ACEOF 15937#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE $ac_have_decl 15938_ACEOF 15939 |
|
15623 fi 15624 15625 15626fi 15627 15628 | 15940 fi 15941 15942 15943fi 15944 15945 |
15946 15947 |
|
15629# Looking for programs, paths and files 15630 15631PRIVSEP_PATH=/var/empty 15632 15633# Check whether --with-privsep-path was given. 15634if test "${with_privsep_path+set}" = set; then : 15635 withval=$with_privsep_path; 15636 if test -n "$withval" && test "x$withval" != "xno" && \ --- 1038 unchanged lines hidden (view full) --- 16675if test -n "$conf_wtmp_location"; then 16676 16677cat >>confdefs.h <<_ACEOF 16678#define CONF_WTMP_FILE "$conf_wtmp_location" 16679_ACEOF 16680 16681fi 16682 | 15948# Looking for programs, paths and files 15949 15950PRIVSEP_PATH=/var/empty 15951 15952# Check whether --with-privsep-path was given. 15953if test "${with_privsep_path+set}" = set; then : 15954 withval=$with_privsep_path; 15955 if test -n "$withval" && test "x$withval" != "xno" && \ --- 1038 unchanged lines hidden (view full) --- 16994if test -n "$conf_wtmp_location"; then 16995 16996cat >>confdefs.h <<_ACEOF 16997#define CONF_WTMP_FILE "$conf_wtmp_location" 16998_ACEOF 16999 17000fi 17001 |
16683 | |
16684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5 16685$as_echo_n "checking if your system defines WTMPX_FILE... " >&6; } 16686cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16687/* end confdefs.h. */ 16688 16689#include <sys/types.h> 16690#include <utmp.h> 16691#ifdef HAVE_UTMPX_H --- 36 unchanged lines hidden (view full) --- 16728 16729 16730if test ! -z "$blibpath" ; then 16731 LDFLAGS="$LDFLAGS $blibflags$blibpath" 16732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 16733$as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} 16734fi 16735 | 17002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5 17003$as_echo_n "checking if your system defines WTMPX_FILE... " >&6; } 17004cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17005/* end confdefs.h. */ 17006 17007#include <sys/types.h> 17008#include <utmp.h> 17009#ifdef HAVE_UTMPX_H --- 36 unchanged lines hidden (view full) --- 17046 17047 17048if test ! -z "$blibpath" ; then 17049 LDFLAGS="$LDFLAGS $blibflags$blibpath" 17050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 17051$as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} 17052fi 17053 |
17054ac_fn_c_check_member "$LINENO" "struct lastlog" "ll_line" "ac_cv_member_struct_lastlog_ll_line" " 17055#ifdef HAVE_SYS_TYPES_H 17056#include <sys/types.h> 17057#endif 17058#ifdef HAVE_UTMP_H 17059#include <utmp.h> 17060#endif 17061#ifdef HAVE_UTMPX_H 17062#include <utmpx.h> 17063#endif 17064#ifdef HAVE_LASTLOG_H 17065#include <lastlog.h> 17066#endif 17067 17068" 17069if test "x$ac_cv_member_struct_lastlog_ll_line" = xyes; then : 17070 17071else 17072 17073 if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then 17074 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h 17075 17076 fi 17077 17078fi 17079 17080 17081ac_fn_c_check_member "$LINENO" "struct utmp" "ut_line" "ac_cv_member_struct_utmp_ut_line" " 17082#ifdef HAVE_SYS_TYPES_H 17083#include <sys/types.h> 17084#endif 17085#ifdef HAVE_UTMP_H 17086#include <utmp.h> 17087#endif 17088#ifdef HAVE_UTMPX_H 17089#include <utmpx.h> 17090#endif 17091#ifdef HAVE_LASTLOG_H 17092#include <lastlog.h> 17093#endif 17094 17095" 17096if test "x$ac_cv_member_struct_utmp_ut_line" = xyes; then : 17097 17098else 17099 17100 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h 17101 17102 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h 17103 17104 17105fi 17106 17107 |
|
16736CFLAGS="$CFLAGS $werror_flags" 16737 16738if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then 16739 TEST_SSH_IPV6=no 16740else 16741 TEST_SSH_IPV6=yes 16742fi 16743ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default" --- 1407 unchanged lines hidden --- | 17108CFLAGS="$CFLAGS $werror_flags" 17109 17110if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then 17111 TEST_SSH_IPV6=no 17112else 17113 TEST_SSH_IPV6=yes 17114fi 17115ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default" --- 1407 unchanged lines hidden --- |