summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2020-06-07 10:19:23 +0100
committerColin Watson <cjwatson@debian.org>2020-06-07 10:19:23 +0100
commit202f5a676221c244cd450086c334c2b59f339e86 (patch)
treed2f90a3a9ce2b33485c271eab01a48f02ef6fb5a /configure
parentf0de78bd4f29fa688c5df116f3f9cd43543a76d0 (diff)
parent9ca7e9c861775dd6c6312bc8aaab687403d24676 (diff)
Import openssh_8.3p1.orig.tar.gz
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure137
1 files changed, 136 insertions, 1 deletions
diff --git a/configure b/configure
index 09db0a335..d2465270a 100755
--- a/configure
+++ b/configure
@@ -646,6 +646,7 @@ SSHDLIBS
646SSHLIBS 646SSHLIBS
647SSH_PRIVSEP_USER 647SSH_PRIVSEP_USER
648LIBFIDO2 648LIBFIDO2
649SK_DUMMY_LIBRARY
649COMMENT_OUT_ECC 650COMMENT_OUT_ECC
650TEST_SSH_ECC 651TEST_SSH_ECC
651PICFLAG 652PICFLAG
@@ -5412,6 +5413,12 @@ if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
5412 have_llong_max=1 5413 have_llong_max=1
5413fi 5414fi
5414 5415
5416ac_fn_c_check_decl "$LINENO" "LONG_LONG_MAX" "ac_cv_have_decl_LONG_LONG_MAX" "#include <limits.h>
5417"
5418if test "x$ac_cv_have_decl_LONG_LONG_MAX" = xyes; then :
5419 have_long_long_max=1
5420fi
5421
5415ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" " 5422ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" "
5416 #include <sys/types.h> 5423 #include <sys/types.h>
5417 #include <sys/param.h> 5424 #include <sys/param.h>
@@ -6828,6 +6835,7 @@ for ac_header in \
6828 string.h \ 6835 string.h \
6829 strings.h \ 6836 strings.h \
6830 sys/bitypes.h \ 6837 sys/bitypes.h \
6838 sys/byteorder.h \
6831 sys/bsdtty.h \ 6839 sys/bsdtty.h \
6832 sys/cdefs.h \ 6840 sys/cdefs.h \
6833 sys/dir.h \ 6841 sys/dir.h \
@@ -11558,6 +11566,28 @@ $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
11558fi 11566fi
11559 11567
11560 11568
11569ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" " #include <time.h>
11570
11571"
11572if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
11573
11574else
11575 saved_CPPFLAGS="$CFLAGS"
11576 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11577 unset ac_cv_have_decl_localtime_r
11578 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" " #include <time.h>
11579
11580"
11581if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
11582
11583else
11584 CPPFLAGS="$saved_CPPFLAGS"
11585fi
11586
11587
11588fi
11589
11590
11561ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" " 11591ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
11562#ifdef HAVE_STRING_H 11592#ifdef HAVE_STRING_H
11563# include <string.h> 11593# include <string.h>
@@ -11616,6 +11646,7 @@ _ACEOF
11616ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" " 11646ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" "
11617#include <sys/types.h> 11647#include <sys/types.h>
11618#include <sys/socket.h> 11648#include <sys/socket.h>
11649#include <unistd.h>
11619 11650
11620" 11651"
11621if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then : 11652if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then :
@@ -11627,6 +11658,21 @@ fi
11627cat >>confdefs.h <<_ACEOF 11658cat >>confdefs.h <<_ACEOF
11628#define HAVE_DECL_SHUT_RD $ac_have_decl 11659#define HAVE_DECL_SHUT_RD $ac_have_decl
11629_ACEOF 11660_ACEOF
11661ac_fn_c_check_decl "$LINENO" "getpeereid" "ac_cv_have_decl_getpeereid" "
11662#include <sys/types.h>
11663#include <sys/socket.h>
11664#include <unistd.h>
11665
11666"
11667if test "x$ac_cv_have_decl_getpeereid" = xyes; then :
11668 ac_have_decl=1
11669else
11670 ac_have_decl=0
11671fi
11672
11673cat >>confdefs.h <<_ACEOF
11674#define HAVE_DECL_GETPEEREID $ac_have_decl
11675_ACEOF
11630 11676
11631 11677
11632ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" " 11678ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "
@@ -12719,6 +12765,68 @@ fi
12719 12765
12720fi 12766fi
12721 12767
12768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SA_RESTARTed signals interrupt select()" >&5
12769$as_echo_n "checking if SA_RESTARTed signals interrupt select()... " >&6; }
12770if test "$cross_compiling" = yes; then :
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
12772$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
12773
12774else
12775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12776/* end confdefs.h. */
12777
12778#ifdef HAVE_SYS_SELECT
12779# include <sys/select.h>
12780#endif
12781#include <sys/types.h>
12782#include <sys/time.h>
12783#include <stdlib.h>
12784#include <signal.h>
12785static void sighandler(int sig) { }
12786
12787int
12788main ()
12789{
12790
12791 int r;
12792 pid_t pid;
12793 struct sigaction sa;
12794
12795 sa.sa_handler = sighandler;
12796 sa.sa_flags = SA_RESTART;
12797 (void)sigaction(SIGTERM, &sa, NULL);
12798 if ((pid = fork()) == 0) { /* child */
12799 pid = getppid();
12800 sleep(1);
12801 kill(pid, SIGTERM);
12802 sleep(1);
12803 if (getppid() == pid) /* if parent did not exit, shoot it */
12804 kill(pid, SIGKILL);
12805 exit(0);
12806 } else { /* parent */
12807 r = select(0, NULL, NULL, NULL, NULL);
12808 }
12809 exit(r == -1 ? 0 : 1);
12810
12811 ;
12812 return 0;
12813}
12814_ACEOF
12815if ac_fn_c_try_run "$LINENO"; then :
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12817$as_echo "yes" >&6; }
12818else
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12820$as_echo "no" >&6; }
12821
12822$as_echo "#define NO_SA_RESTART 1" >>confdefs.h
12823
12824fi
12825rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12826 conftest.$ac_objext conftest.beam conftest.$ac_ext
12827fi
12828
12829
12722for ac_func in getpgrp 12830for ac_func in getpgrp
12723do : 12831do :
12724 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" 12832 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
@@ -13226,6 +13334,7 @@ fi
13226 EVP_PKEY_get0_RSA \ 13334 EVP_PKEY_get0_RSA \
13227 EVP_MD_CTX_new \ 13335 EVP_MD_CTX_new \
13228 EVP_MD_CTX_free \ 13336 EVP_MD_CTX_free \
13337 EVP_chacha20 \
13229 13338
13230do : 13339do :
13231 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13340 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
@@ -13856,6 +13965,12 @@ if test "x$enable_sk" = "xyes" ; then
13856 13965
13857$as_echo "#define ENABLE_SK /**/" >>confdefs.h 13966$as_echo "#define ENABLE_SK /**/" >>confdefs.h
13858 13967
13968 SK_DUMMY_LIBRARY=regress/misc/sk-dummy/sk-dummy.so
13969
13970else
13971 # Do not try to build sk-dummy library.
13972 SK_DUMMY_LIBRARY=""
13973
13859fi 13974fi
13860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sk" >&5 13975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sk" >&5
13861$as_echo "$enable_sk" >&6; } 13976$as_echo "$enable_sk" >&6; }
@@ -14025,8 +14140,28 @@ $as_echo "#define ENABLE_SK_INTERNAL /**/" >>confdefs.h
14025 14140
14026 enable_sk="built-in" 14141 enable_sk="built-in"
14027 14142
14143else
14144 as_fn_error $? "no usable libfido2 found" "$LINENO" 5
14145fi
14146
14147 ac_fn_c_check_header_mongrel "$LINENO" "fido.h" "ac_cv_header_fido_h" "$ac_includes_default"
14148if test "x$ac_cv_header_fido_h" = xyes; then :
14149
14150else
14151 as_fn_error $? "missing fido.h from libfido2" "$LINENO" 5
14028fi 14152fi
14029 14153
14154
14155 ac_fn_c_check_header_compile "$LINENO" "fido/credman.h" "ac_cv_header_fido_credman_h" "#include <fido.h>
14156
14157"
14158if test "x$ac_cv_header_fido_credman_h" = xyes; then :
14159
14160else
14161 as_fn_error $? "missing fido/credman.h from libfido2" "$LINENO" 5
14162fi
14163
14164
14030fi 14165fi
14031 14166
14032for ac_func in \ 14167for ac_func in \
@@ -14996,7 +15131,7 @@ if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
14996fi 15131fi
14997 15132
14998# compute LLONG_MIN and LLONG_MAX if we don't know them. 15133# compute LLONG_MIN and LLONG_MAX if we don't know them.
14999if test -z "$have_llong_max"; then 15134if test -z "$have_llong_max" && test -z "$have_long_long_max"; then
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5 15135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5
15001$as_echo_n "checking for max value of long long... " >&6; } 15136$as_echo_n "checking for max value of long long... " >&6; }
15002 if test "$cross_compiling" = yes; then : 15137 if test "$cross_compiling" = yes; then :