diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 198 |
1 files changed, 183 insertions, 15 deletions
@@ -1,5 +1,5 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh |
2 | # From configure.ac Revision: 1.489 . | 2 | # From configure.ac Revision: 1.496 . |
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 | # |
@@ -6927,7 +6927,8 @@ $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h | |||
6927 | for ac_header in linux/seccomp.h linux/filter.h linux/audit.h | 6927 | for ac_header in linux/seccomp.h linux/filter.h linux/audit.h |
6928 | do : | 6928 | do : |
6929 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 6929 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6930 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 6930 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <linux/types.h> |
6931 | " | ||
6931 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 6932 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
6932 | cat >>confdefs.h <<_ACEOF | 6933 | cat >>confdefs.h <<_ACEOF |
6933 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 6934 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
@@ -9137,8 +9138,9 @@ LIBEDIT_MSG="no" | |||
9137 | if test "${with_libedit+set}" = set; then : | 9138 | if test "${with_libedit+set}" = set; then : |
9138 | withval=$with_libedit; if test "x$withval" != "xno" ; then | 9139 | withval=$with_libedit; if test "x$withval" != "xno" ; then |
9139 | if test "x$withval" = "xyes" ; then | 9140 | if test "x$withval" = "xyes" ; then |
9140 | # Extract the first word of "pkg-config", so it can be a program name with args. | 9141 | if test -n "$ac_tool_prefix"; then |
9141 | set dummy pkg-config; ac_word=$2 | 9142 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
9143 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
9142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 9144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9143 | $as_echo_n "checking for $ac_word... " >&6; } | 9145 | $as_echo_n "checking for $ac_word... " >&6; } |
9144 | if ${ac_cv_path_PKGCONFIG+:} false; then : | 9146 | if ${ac_cv_path_PKGCONFIG+:} false; then : |
@@ -9164,7 +9166,6 @@ done | |||
9164 | done | 9166 | done |
9165 | IFS=$as_save_IFS | 9167 | IFS=$as_save_IFS |
9166 | 9168 | ||
9167 | test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" | ||
9168 | ;; | 9169 | ;; |
9169 | esac | 9170 | esac |
9170 | fi | 9171 | fi |
@@ -9178,6 +9179,63 @@ $as_echo "no" >&6; } | |||
9178 | fi | 9179 | fi |
9179 | 9180 | ||
9180 | 9181 | ||
9182 | fi | ||
9183 | if test -z "$ac_cv_path_PKGCONFIG"; then | ||
9184 | ac_pt_PKGCONFIG=$PKGCONFIG | ||
9185 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
9186 | set dummy pkg-config; ac_word=$2 | ||
9187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
9188 | $as_echo_n "checking for $ac_word... " >&6; } | ||
9189 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : | ||
9190 | $as_echo_n "(cached) " >&6 | ||
9191 | else | ||
9192 | case $ac_pt_PKGCONFIG in | ||
9193 | [\\/]* | ?:[\\/]*) | ||
9194 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. | ||
9195 | ;; | ||
9196 | *) | ||
9197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9198 | for as_dir in $PATH | ||
9199 | do | ||
9200 | IFS=$as_save_IFS | ||
9201 | test -z "$as_dir" && as_dir=. | ||
9202 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9203 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
9204 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
9205 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9206 | break 2 | ||
9207 | fi | ||
9208 | done | ||
9209 | done | ||
9210 | IFS=$as_save_IFS | ||
9211 | |||
9212 | ;; | ||
9213 | esac | ||
9214 | fi | ||
9215 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG | ||
9216 | if test -n "$ac_pt_PKGCONFIG"; then | ||
9217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 | ||
9218 | $as_echo "$ac_pt_PKGCONFIG" >&6; } | ||
9219 | else | ||
9220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9221 | $as_echo "no" >&6; } | ||
9222 | fi | ||
9223 | |||
9224 | if test "x$ac_pt_PKGCONFIG" = x; then | ||
9225 | PKGCONFIG="no" | ||
9226 | else | ||
9227 | case $cross_compiling:$ac_tool_warned in | ||
9228 | yes:) | ||
9229 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
9230 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
9231 | ac_tool_warned=yes ;; | ||
9232 | esac | ||
9233 | PKGCONFIG=$ac_pt_PKGCONFIG | ||
9234 | fi | ||
9235 | else | ||
9236 | PKGCONFIG="$ac_cv_path_PKGCONFIG" | ||
9237 | fi | ||
9238 | |||
9181 | if test "x$PKGCONFIG" != "xno"; then | 9239 | if test "x$PKGCONFIG" != "xno"; then |
9182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5 | 9240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5 |
9183 | $as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; } | 9241 | $as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; } |
@@ -9499,6 +9557,7 @@ for ac_func in \ | |||
9499 | seteuid \ | 9557 | seteuid \ |
9500 | setgroupent \ | 9558 | setgroupent \ |
9501 | setgroups \ | 9559 | setgroups \ |
9560 | setlinebuf \ | ||
9502 | setlogin \ | 9561 | setlogin \ |
9503 | setpassent\ | 9562 | setpassent\ |
9504 | setpcred \ | 9563 | setpcred \ |
@@ -11784,6 +11843,109 @@ if test "${with_sandbox+set}" = set; then : | |||
11784 | 11843 | ||
11785 | fi | 11844 | fi |
11786 | 11845 | ||
11846 | |||
11847 | # Some platforms (seems to be the ones that have a kernel poll(2)-type | ||
11848 | # function with which they implement select(2)) use an extra file descriptor | ||
11849 | # when calling select(2), which means we can't use the rlimit sandbox. | ||
11850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select works with descriptor rlimit" >&5 | ||
11851 | $as_echo_n "checking if select works with descriptor rlimit... " >&6; } | ||
11852 | if test "$cross_compiling" = yes; then : | ||
11853 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
11854 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
11855 | |||
11856 | else | ||
11857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11858 | /* end confdefs.h. */ | ||
11859 | |||
11860 | #include <sys/types.h> | ||
11861 | #ifdef HAVE_SYS_TIME_H | ||
11862 | # include <sys/time.h> | ||
11863 | #endif | ||
11864 | #include <sys/resource.h> | ||
11865 | #ifdef HAVE_SYS_SELECT_H | ||
11866 | # include <sys/select.h> | ||
11867 | #endif | ||
11868 | #include <errno.h> | ||
11869 | #include <fcntl.h> | ||
11870 | #include <stdlib.h> | ||
11871 | |||
11872 | int | ||
11873 | main () | ||
11874 | { | ||
11875 | |||
11876 | struct rlimit rl_zero; | ||
11877 | int fd, r; | ||
11878 | fd_set fds; | ||
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); | ||
11886 | r = select(fd+1, &fds, NULL, NULL, NULL); | ||
11887 | exit (r == -1 ? 1 : 0); | ||
11888 | |||
11889 | ; | ||
11890 | return 0; | ||
11891 | } | ||
11892 | _ACEOF | ||
11893 | if ac_fn_c_try_run "$LINENO"; then : | ||
11894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11895 | $as_echo "yes" >&6; } | ||
11896 | select_works_with_rlimit=yes | ||
11897 | else | ||
11898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11899 | $as_echo "no" >&6; } | ||
11900 | select_works_with_rlimit=no | ||
11901 | fi | ||
11902 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11903 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11904 | fi | ||
11905 | |||
11906 | |||
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; } | ||
11909 | if 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 | |||
11913 | else | ||
11914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11915 | /* end confdefs.h. */ | ||
11916 | |||
11917 | #include <sys/types.h> | ||
11918 | #include <sys/resource.h> | ||
11919 | #include <stdlib.h> | ||
11920 | |||
11921 | int | ||
11922 | main () | ||
11923 | { | ||
11924 | |||
11925 | struct rlimit rl_zero; | ||
11926 | |||
11927 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
11928 | exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0); | ||
11929 | |||
11930 | ; | ||
11931 | return 0; | ||
11932 | } | ||
11933 | _ACEOF | ||
11934 | if ac_fn_c_try_run "$LINENO"; then : | ||
11935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11936 | $as_echo "yes" >&6; } | ||
11937 | else | ||
11938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11939 | $as_echo "no" >&6; } | ||
11940 | |||
11941 | $as_echo "#define SANDBOX_SKIP_RLIMIT_FSIZE 1" >>confdefs.h | ||
11942 | |||
11943 | fi | ||
11944 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11945 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11946 | fi | ||
11947 | |||
11948 | |||
11787 | if test "x$sandbox_arg" = "xsystrace" || \ | 11949 | if test "x$sandbox_arg" = "xsystrace" || \ |
11788 | ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then | 11950 | ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then |
11789 | test "x$have_systr_policy_kill" != "x1" && \ | 11951 | test "x$have_systr_policy_kill" != "x1" && \ |
@@ -11804,7 +11966,7 @@ $as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h | |||
11804 | 11966 | ||
11805 | elif test "x$sandbox_arg" = "xseccomp_filter" || \ | 11967 | elif test "x$sandbox_arg" = "xseccomp_filter" || \ |
11806 | ( test -z "$sandbox_arg" && \ | 11968 | ( test -z "$sandbox_arg" && \ |
11807 | test "x$have_seccomp_filter" == "x1" && \ | 11969 | test "x$have_seccomp_filter" = "x1" && \ |
11808 | test "x$ac_cv_header_linux_audit_h" = "xyes" && \ | 11970 | test "x$ac_cv_header_linux_audit_h" = "xyes" && \ |
11809 | test "x$have_seccomp_audit_arch" = "x1" && \ | 11971 | test "x$have_seccomp_audit_arch" = "x1" && \ |
11810 | test "x$have_linux_no_new_privs" = "x1" && \ | 11972 | test "x$have_linux_no_new_privs" = "x1" && \ |
@@ -11822,9 +11984,12 @@ elif test "x$sandbox_arg" = "xseccomp_filter" || \ | |||
11822 | $as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h | 11984 | $as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h |
11823 | 11985 | ||
11824 | elif test "x$sandbox_arg" = "xrlimit" || \ | 11986 | elif test "x$sandbox_arg" = "xrlimit" || \ |
11825 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" ) ; then | 11987 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \ |
11988 | test "x$select_works_with_rlimit" == "xyes" ) ; then | ||
11826 | test "x$ac_cv_func_setrlimit" != "xyes" && \ | 11989 | test "x$ac_cv_func_setrlimit" != "xyes" && \ |
11827 | as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5 | 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 | ||
11828 | SANDBOX_STYLE="rlimit" | 11993 | SANDBOX_STYLE="rlimit" |
11829 | 11994 | ||
11830 | $as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h | 11995 | $as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h |
@@ -14118,7 +14283,7 @@ $as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; } | |||
14118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 14283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14119 | /* end confdefs.h. */ | 14284 | /* end confdefs.h. */ |
14120 | 14285 | ||
14121 | #include <sys/types.h> | 14286 | #include <sys/param.h> |
14122 | #include <sys/stat.h> | 14287 | #include <sys/stat.h> |
14123 | #ifdef HAVE_SYS_TIME_H | 14288 | #ifdef HAVE_SYS_TIME_H |
14124 | # include <sys/time.h> | 14289 | # include <sys/time.h> |
@@ -16077,13 +16242,16 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |||
16077 | fi | 16242 | fi |
16078 | 16243 | ||
16079 | # make sure $bindir is in USER_PATH so scp will work | 16244 | # make sure $bindir is in USER_PATH so scp will work |
16080 | t_bindir=`eval echo ${bindir}` | 16245 | t_bindir="${bindir}" |
16081 | case $t_bindir in | 16246 | while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do |
16082 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | 16247 | t_bindir=`eval echo ${t_bindir}` |
16083 | esac | 16248 | case $t_bindir in |
16084 | case $t_bindir in | 16249 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; |
16085 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | 16250 | esac |
16086 | esac | 16251 | case $t_bindir in |
16252 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
16253 | esac | ||
16254 | done | ||
16087 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | 16255 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 |
16088 | if test $? -ne 0 ; then | 16256 | if test $? -ne 0 ; then |
16089 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | 16257 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 |