summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure540
1 files changed, 456 insertions, 84 deletions
diff --git a/configure b/configure
index 4eeaa4e56..c36bb1907 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
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. 3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.68 for OpenSSH Portable. 4# Generated by GNU Autoconf 2.68 for OpenSSH Portable.
5# 5#
@@ -614,6 +614,8 @@ XAUTH_PATH
614STRIP_OPT 614STRIP_OPT
615xauth_path 615xauth_path
616PRIVSEP_PATH 616PRIVSEP_PATH
617K5LIBS
618GSSLIBS
617KRB5CONF 619KRB5CONF
618SSHDLIBS 620SSHDLIBS
619SSHLIBS 621SSHLIBS
@@ -5587,60 +5589,6 @@ if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then :
5587 have_linux_no_new_privs=1 5589 have_linux_no_new_privs=1
5588fi 5590fi
5589 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 5592use_stack_protector=1
5645 5593
5646# Check whether --with-stackprotect was given. 5594# Check whether --with-stackprotect was given.
@@ -5996,6 +5944,34 @@ fi
5996 fi 5944 fi
5997fi 5945fi
5998 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 5975if test "x$no_attrib_nonnull" != "x1" ; then
6000 5976
6001$as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h 5977$as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h
@@ -6087,6 +6063,7 @@ for ac_header in \
6087 crypto/sha2.h \ 6063 crypto/sha2.h \
6088 dirent.h \ 6064 dirent.h \
6089 endian.h \ 6065 endian.h \
6066 elf.h \
6090 features.h \ 6067 features.h \
6091 fcntl.h \ 6068 fcntl.h \
6092 floatingpoint.h \ 6069 floatingpoint.h \
@@ -6513,6 +6490,9 @@ $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
6513 6490
6514$as_echo "#define PTY_ZEROREAD 1" >>confdefs.h 6491$as_echo "#define PTY_ZEROREAD 1" >>confdefs.h
6515 6492
6493
6494$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
6495
6516 ;; 6496 ;;
6517*-*-cygwin*) 6497*-*-cygwin*)
6518 check_for_libcrypt_later=1 6498 check_for_libcrypt_later=1
@@ -6720,6 +6700,9 @@ $as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h
6720 6700
6721 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h 6701 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h
6722 6702
6703
6704$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
6705
6723 maildir="/var/mail" 6706 maildir="/var/mail"
6724 LIBS="$LIBS -lsec" 6707 LIBS="$LIBS -lsec"
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5
@@ -6949,22 +6932,32 @@ _ACEOF
6949fi 6932fi
6950done 6933done
6951 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 6938 case "$host" in
6954 x86_64-*) 6939 x86_64-*)
6955 6940 seccomp_audit_arch=AUDIT_ARCH_X86_64
6956$as_echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_X86_64" >>confdefs.h
6957
6958 ;; 6941 ;;
6959 i*86-*) 6942 i*86-*)
6960 6943 seccomp_audit_arch=AUDIT_ARCH_I386
6961$as_echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_I386" >>confdefs.h
6962
6963 ;;
6964 *)
6965 have_seccomp_audit_arch=0
6966 ;; 6944 ;;
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 ;; 6961 ;;
6969mips-sony-bsd|mips-sony-newsos4) 6962mips-sony-bsd|mips-sony-newsos4)
6970 6963
@@ -7015,6 +7008,9 @@ fi
7015 7008
7016$as_echo "#define BROKEN_GLOB 1" >>confdefs.h 7009$as_echo "#define BROKEN_GLOB 1" >>confdefs.h
7017 7010
7011
7012$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h
7013
7018 ;; 7014 ;;
7019*-*-bsdi*) 7015*-*-bsdi*)
7020 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h 7016 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
@@ -7499,6 +7495,7 @@ done
7499 7495
7500 MANTYPE=man 7496 MANTYPE=man
7501 TEST_SHELL=ksh 7497 TEST_SHELL=ksh
7498 SKIP_DISABLE_LASTLOG_DEFINE=yes
7502 ;; 7499 ;;
7503*-*-unicosmk*) 7500*-*-unicosmk*)
7504 7501
@@ -8330,12 +8327,13 @@ fi
8330done 8327done
8331 8328
8332 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" 8332 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8336if test "x$ac_cv_header_libutil_h" = xyes; then : 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 8337_ACEOF
8340 8338
8341fi 8339fi
@@ -9525,6 +9523,8 @@ for ac_func in \
9525 getopt \ 9523 getopt \
9526 getpeereid \ 9524 getpeereid \
9527 getpeerucred \ 9525 getpeerucred \
9526 getpgid \
9527 getpgrp \
9528 _getpty \ 9528 _getpty \
9529 getrlimit \ 9529 getrlimit \
9530 getttyent \ 9530 getttyent \
@@ -9584,6 +9584,7 @@ for ac_func in \
9584 strtonum \ 9584 strtonum \
9585 strtoll \ 9585 strtoll \
9586 strtoul \ 9586 strtoul \
9587 strtoull \
9587 swap32 \ 9588 swap32 \
9588 sysconf \ 9589 sysconf \
9589 tcgetpgrp \ 9590 tcgetpgrp \
@@ -9592,6 +9593,7 @@ for ac_func in \
9592 unsetenv \ 9593 unsetenv \
9593 updwtmpx \ 9594 updwtmpx \
9594 user_from_uid \ 9595 user_from_uid \
9596 usleep \
9595 vasprintf \ 9597 vasprintf \
9596 vhangup \ 9598 vhangup \
9597 vsnprintf \ 9599 vsnprintf \
@@ -11199,6 +11201,147 @@ fi
11199rm -f core conftest.err conftest.$ac_objext \ 11201rm -f core conftest.err conftest.$ac_objext \
11200 conftest$ac_exeext conftest.$ac_ext 11202 conftest$ac_exeext conftest.$ac_ext
11201 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 11345{ $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; } 11346$as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
11204cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -11828,6 +11971,57 @@ _ACEOF
11828 11971
11829 11972
11830 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 12025# Decide which sandbox style to use
11832sandbox_arg="" 12026sandbox_arg=""
11833 12027
@@ -11876,6 +12070,7 @@ main ()
11876 struct rlimit rl_zero; 12070 struct rlimit rl_zero;
11877 int fd, r; 12071 int fd, r;
11878 fd_set fds; 12072 fd_set fds;
12073 struct timeval tv;
11879 12074
11880 fd = open("/dev/null", O_RDONLY); 12075 fd = open("/dev/null", O_RDONLY);
11881 FD_ZERO(&fds); 12076 FD_ZERO(&fds);
@@ -11883,7 +12078,9 @@ main ()
11883 rl_zero.rlim_cur = rl_zero.rlim_max = 0; 12078 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
11884 setrlimit(RLIMIT_FSIZE, &rl_zero); 12079 setrlimit(RLIMIT_FSIZE, &rl_zero);
11885 setrlimit(RLIMIT_NOFILE, &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); 12084 exit (r == -1 ? 1 : 0);
11888 12085
11889 ; 12086 ;
@@ -11904,6 +12101,54 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11904fi 12101fi
11905 12102
11906 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 12152{ $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; } 12153$as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; }
11909if test "$cross_compiling" = yes; then : 12154if test "$cross_compiling" = yes; then :
@@ -11967,11 +12212,13 @@ $as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h
11967elif test "x$sandbox_arg" = "xseccomp_filter" || \ 12212elif test "x$sandbox_arg" = "xseccomp_filter" || \
11968 ( test -z "$sandbox_arg" && \ 12213 ( test -z "$sandbox_arg" && \
11969 test "x$have_seccomp_filter" = "x1" && \ 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" && \ 12219 test "x$have_linux_no_new_privs" = "x1" && \
11973 test "x$ac_cv_func_prctl" = "xyes" ) ; then 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 12222 as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5
11976 test "x$have_linux_no_new_privs" != "x1" && \ 12223 test "x$have_linux_no_new_privs" != "x1" && \
11977 as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5 12224 as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5
@@ -11985,7 +12232,8 @@ $as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h
11985 12232
11986elif test "x$sandbox_arg" = "xrlimit" || \ 12233elif test "x$sandbox_arg" = "xrlimit" || \
11987 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \ 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" && \ 12237 test "x$ac_cv_func_setrlimit" != "xyes" && \
11990 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5 12238 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5
11991 test "x$select_works_with_rlimit" != "xyes" && \ 12239 test "x$select_works_with_rlimit" != "xyes" && \
@@ -15170,6 +15418,9 @@ fi
15170 15418
15171 15419
15172 if test -x $KRB5CONF ; then 15420 if test -x $KRB5CONF ; then
15421 K5CFLAGS="`$KRB5CONF --cflags`"
15422 K5LIBS="`$KRB5CONF --libs`"
15423 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
15173 15424
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5 15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5
15175$as_echo_n "checking for gssapi support... " >&6; } 15426$as_echo_n "checking for gssapi support... " >&6; }
@@ -15179,15 +15430,13 @@ $as_echo "yes" >&6; }
15179 15430
15180$as_echo "#define GSSAPI 1" >>confdefs.h 15431$as_echo "#define GSSAPI 1" >>confdefs.h
15181 15432
15182 k5confopts=gssapi 15433 GSSCFLAGS="`$KRB5CONF --cflags gssapi`"
15434 GSSLIBS="`$KRB5CONF --libs gssapi`"
15435 CPPFLAGS="$CPPFLAGS $GSSCFLAGS"
15183 else 15436 else
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15185$as_echo "no" >&6; } 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 15440 { $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; } 15441$as_echo_n "checking whether we are using Heimdal... " >&6; }
15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -15390,7 +15639,7 @@ if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then :
15390 $as_echo_n "(cached) " >&6 15639 $as_echo_n "(cached) " >&6
15391else 15640else
15392 ac_check_lib_save_LIBS=$LIBS 15641 ac_check_lib_save_LIBS=$LIBS
15393LIBS="-lgssapi_krb5 $K5LIBS $LIBS" 15642LIBS="-lgssapi_krb5 $LIBS"
15394cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15395/* end confdefs.h. */ 15644/* end confdefs.h. */
15396 15645
@@ -15423,7 +15672,7 @@ $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 : 15672if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then :
15424 $as_echo "#define GSSAPI 1" >>confdefs.h 15673 $as_echo "#define GSSAPI 1" >>confdefs.h
15425 15674
15426 K5LIBS="-lgssapi_krb5 $K5LIBS" 15675 GSSLIBS="-lgssapi_krb5"
15427else 15676else
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5 15677 { $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; } 15678$as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; }
@@ -15431,7 +15680,7 @@ if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then :
15431 $as_echo_n "(cached) " >&6 15680 $as_echo_n "(cached) " >&6
15432else 15681else
15433 ac_check_lib_save_LIBS=$LIBS 15682 ac_check_lib_save_LIBS=$LIBS
15434LIBS="-lgssapi $K5LIBS $LIBS" 15683LIBS="-lgssapi $LIBS"
15435cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15436/* end confdefs.h. */ 15685/* end confdefs.h. */
15437 15686
@@ -15464,7 +15713,48 @@ $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
15464if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then : 15713if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then :
15465 $as_echo "#define GSSAPI 1" >>confdefs.h 15714 $as_echo "#define GSSAPI 1" >>confdefs.h
15466 15715
15467 K5LIBS="-lgssapi $K5LIBS" 15716 GSSLIBS="-lgssapi"
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"
15468else 15758else
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 15759 { $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;} 15760$as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
@@ -15474,6 +15764,9 @@ fi
15474fi 15764fi
15475 15765
15476 15766
15767fi
15768
15769
15477 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" 15770 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 : 15771if test "x$ac_cv_header_gssapi_h" = xyes; then :
15479 15772
@@ -15561,7 +15854,6 @@ fi
15561done 15854done
15562 15855
15563 15856
15564 LIBS="$LIBS $K5LIBS"
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5 15857 { $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; } 15858$as_echo_n "checking for library containing k_hasafs... " >&6; }
15567if ${ac_cv_search_k_hasafs+:} false; then : 15859if ${ac_cv_search_k_hasafs+:} false; then :
@@ -15620,12 +15912,39 @@ $as_echo "#define USE_AFS 1" >>confdefs.h
15620 15912
15621fi 15913fi
15622 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 15940 fi
15624 15941
15625 15942
15626fi 15943fi
15627 15944
15628 15945
15946
15947
15629# Looking for programs, paths and files 15948# Looking for programs, paths and files
15630 15949
15631PRIVSEP_PATH=/var/empty 15950PRIVSEP_PATH=/var/empty
@@ -16680,7 +16999,6 @@ _ACEOF
16680 16999
16681fi 17000fi
16682 17001
16683
16684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5 17002{ $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; } 17003$as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
16686cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -16733,6 +17051,60 @@ if test ! -z "$blibpath" ; then
16733$as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} 17051$as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
16734fi 17052fi
16735 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" 17108CFLAGS="$CFLAGS $werror_flags"
16737 17109
16738if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then 17110if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then