summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure647
1 files changed, 511 insertions, 136 deletions
diff --git a/configure b/configure
index 4eeed9d09..78bbcd008 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
1#! /bin/sh 1#! /bin/sh
2# From configure.ac Revision: 1.518 . 2# From configure.ac Revision: 1.536 .
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#
@@ -605,6 +605,7 @@ ac_includes_default="\
605 605
606ac_subst_vars='LTLIBOBJS 606ac_subst_vars='LTLIBOBJS
607LIBOBJS 607LIBOBJS
608UNSUPPORTED_ALGORITHMS
608TEST_SSH_IPV6 609TEST_SSH_IPV6
609piddir 610piddir
610user_path 611user_path
@@ -5605,6 +5606,68 @@ fi
5605 5606
5606if test "$GCC" = "yes" || test "$GCC" = "egcs"; then 5607if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5607 { 5608 {
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Qunused-arguments -Werror" >&5
5610$as_echo_n "checking if $CC supports -Qunused-arguments -Werror... " >&6; }
5611 saved_CFLAGS="$CFLAGS"
5612 CFLAGS="$CFLAGS -Qunused-arguments -Werror"
5613 _define_flag="-Qunused-arguments"
5614 test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments -Werror"
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616/* end confdefs.h. */
5617int main(void) { return 0; }
5618_ACEOF
5619if ac_fn_c_try_compile "$LINENO"; then :
5620
5621if `grep -i "unrecognized option" conftest.err >/dev/null`
5622then
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624$as_echo "no" >&6; }
5625 CFLAGS="$saved_CFLAGS"
5626else
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5628$as_echo "yes" >&6; }
5629 CFLAGS="$saved_CFLAGS $_define_flag"
5630fi
5631else
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633$as_echo "no" >&6; }
5634 CFLAGS="$saved_CFLAGS"
5635
5636fi
5637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638}
5639 {
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunknown-warning-option -Werror" >&5
5641$as_echo_n "checking if $CC supports -Wunknown-warning-option -Werror... " >&6; }
5642 saved_CFLAGS="$CFLAGS"
5643 CFLAGS="$CFLAGS -Wunknown-warning-option -Werror"
5644 _define_flag="-Wno-unknown-warning-option"
5645 test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option -Werror"
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647/* end confdefs.h. */
5648int main(void) { return 0; }
5649_ACEOF
5650if ac_fn_c_try_compile "$LINENO"; then :
5651
5652if `grep -i "unrecognized option" conftest.err >/dev/null`
5653then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655$as_echo "no" >&6; }
5656 CFLAGS="$saved_CFLAGS"
5657else
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5659$as_echo "yes" >&6; }
5660 CFLAGS="$saved_CFLAGS $_define_flag"
5661fi
5662else
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664$as_echo "no" >&6; }
5665 CFLAGS="$saved_CFLAGS"
5666
5667fi
5668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669}
5670 {
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5609$as_echo_n "checking if $CC supports -Wall... " >&6; } 5672$as_echo_n "checking if $CC supports -Wall... " >&6; }
5610 saved_CFLAGS="$CFLAGS" 5673 saved_CFLAGS="$CFLAGS"
@@ -5616,9 +5679,17 @@ $as_echo_n "checking if $CC supports -Wall... " >&6; }
5616int main(void) { return 0; } 5679int main(void) { return 0; }
5617_ACEOF 5680_ACEOF
5618if ac_fn_c_try_compile "$LINENO"; then : 5681if ac_fn_c_try_compile "$LINENO"; then :
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5682
5683if `grep -i "unrecognized option" conftest.err >/dev/null`
5684then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686$as_echo "no" >&6; }
5687 CFLAGS="$saved_CFLAGS"
5688else
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5620$as_echo "yes" >&6; } 5690$as_echo "yes" >&6; }
5621 CFLAGS="$saved_CFLAGS $_define_flag" 5691 CFLAGS="$saved_CFLAGS $_define_flag"
5692fi
5622else 5693else
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624$as_echo "no" >&6; } 5695$as_echo "no" >&6; }
@@ -5639,9 +5710,17 @@ $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5639int main(void) { return 0; } 5710int main(void) { return 0; }
5640_ACEOF 5711_ACEOF
5641if ac_fn_c_try_compile "$LINENO"; then : 5712if ac_fn_c_try_compile "$LINENO"; then :
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5713
5714if `grep -i "unrecognized option" conftest.err >/dev/null`
5715then
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717$as_echo "no" >&6; }
5718 CFLAGS="$saved_CFLAGS"
5719else
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5643$as_echo "yes" >&6; } 5721$as_echo "yes" >&6; }
5644 CFLAGS="$saved_CFLAGS $_define_flag" 5722 CFLAGS="$saved_CFLAGS $_define_flag"
5723fi
5645else 5724else
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647$as_echo "no" >&6; } 5726$as_echo "no" >&6; }
@@ -5662,9 +5741,17 @@ $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5662int main(void) { return 0; } 5741int main(void) { return 0; }
5663_ACEOF 5742_ACEOF
5664if ac_fn_c_try_compile "$LINENO"; then : 5743if ac_fn_c_try_compile "$LINENO"; then :
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5744
5745if `grep -i "unrecognized option" conftest.err >/dev/null`
5746then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748$as_echo "no" >&6; }
5749 CFLAGS="$saved_CFLAGS"
5750else
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5666$as_echo "yes" >&6; } 5752$as_echo "yes" >&6; }
5667 CFLAGS="$saved_CFLAGS $_define_flag" 5753 CFLAGS="$saved_CFLAGS $_define_flag"
5754fi
5668else 5755else
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5670$as_echo "no" >&6; } 5757$as_echo "no" >&6; }
@@ -5685,9 +5772,17 @@ $as_echo_n "checking if $CC supports -Wsign-compare... " >&6; }
5685int main(void) { return 0; } 5772int main(void) { return 0; }
5686_ACEOF 5773_ACEOF
5687if ac_fn_c_try_compile "$LINENO"; then : 5774if ac_fn_c_try_compile "$LINENO"; then :
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5775
5776if `grep -i "unrecognized option" conftest.err >/dev/null`
5777then
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779$as_echo "no" >&6; }
5780 CFLAGS="$saved_CFLAGS"
5781else
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5689$as_echo "yes" >&6; } 5783$as_echo "yes" >&6; }
5690 CFLAGS="$saved_CFLAGS $_define_flag" 5784 CFLAGS="$saved_CFLAGS $_define_flag"
5785fi
5691else 5786else
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693$as_echo "no" >&6; } 5788$as_echo "no" >&6; }
@@ -5708,9 +5803,48 @@ $as_echo_n "checking if $CC supports -Wformat-security... " >&6; }
5708int main(void) { return 0; } 5803int main(void) { return 0; }
5709_ACEOF 5804_ACEOF
5710if ac_fn_c_try_compile "$LINENO"; then : 5805if ac_fn_c_try_compile "$LINENO"; then :
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5806
5807if `grep -i "unrecognized option" conftest.err >/dev/null`
5808then
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5810$as_echo "no" >&6; }
5811 CFLAGS="$saved_CFLAGS"
5812else
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5814$as_echo "yes" >&6; }
5815 CFLAGS="$saved_CFLAGS $_define_flag"
5816fi
5817else
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819$as_echo "no" >&6; }
5820 CFLAGS="$saved_CFLAGS"
5821
5822fi
5823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5824}
5825 {
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsizeof-pointer-memaccess" >&5
5827$as_echo_n "checking if $CC supports -Wsizeof-pointer-memaccess... " >&6; }
5828 saved_CFLAGS="$CFLAGS"
5829 CFLAGS="$CFLAGS -Wsizeof-pointer-memaccess"
5830 _define_flag=""
5831 test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess"
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833/* end confdefs.h. */
5834int main(void) { return 0; }
5835_ACEOF
5836if ac_fn_c_try_compile "$LINENO"; then :
5837
5838if `grep -i "unrecognized option" conftest.err >/dev/null`
5839then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841$as_echo "no" >&6; }
5842 CFLAGS="$saved_CFLAGS"
5843else
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5712$as_echo "yes" >&6; } 5845$as_echo "yes" >&6; }
5713 CFLAGS="$saved_CFLAGS $_define_flag" 5846 CFLAGS="$saved_CFLAGS $_define_flag"
5847fi
5714else 5848else
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716$as_echo "no" >&6; } 5850$as_echo "no" >&6; }
@@ -5731,9 +5865,17 @@ $as_echo_n "checking if $CC supports -Wpointer-sign... " >&6; }
5731int main(void) { return 0; } 5865int main(void) { return 0; }
5732_ACEOF 5866_ACEOF
5733if ac_fn_c_try_compile "$LINENO"; then : 5867if ac_fn_c_try_compile "$LINENO"; then :
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5868
5869if `grep -i "unrecognized option" conftest.err >/dev/null`
5870then
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5872$as_echo "no" >&6; }
5873 CFLAGS="$saved_CFLAGS"
5874else
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5735$as_echo "yes" >&6; } 5876$as_echo "yes" >&6; }
5736 CFLAGS="$saved_CFLAGS $_define_flag" 5877 CFLAGS="$saved_CFLAGS $_define_flag"
5878fi
5737else 5879else
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739$as_echo "no" >&6; } 5881$as_echo "no" >&6; }
@@ -5754,9 +5896,17 @@ $as_echo_n "checking if $CC supports -Wunused-result... " >&6; }
5754int main(void) { return 0; } 5896int main(void) { return 0; }
5755_ACEOF 5897_ACEOF
5756if ac_fn_c_try_compile "$LINENO"; then : 5898if ac_fn_c_try_compile "$LINENO"; then :
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5899
5900if `grep -i "unrecognized option" conftest.err >/dev/null`
5901then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5903$as_echo "no" >&6; }
5904 CFLAGS="$saved_CFLAGS"
5905else
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5758$as_echo "yes" >&6; } 5907$as_echo "yes" >&6; }
5759 CFLAGS="$saved_CFLAGS $_define_flag" 5908 CFLAGS="$saved_CFLAGS $_define_flag"
5909fi
5760else 5910else
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762$as_echo "no" >&6; } 5912$as_echo "no" >&6; }
@@ -5777,9 +5927,17 @@ $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
5777int main(void) { return 0; } 5927int main(void) { return 0; }
5778_ACEOF 5928_ACEOF
5779if ac_fn_c_try_compile "$LINENO"; then : 5929if ac_fn_c_try_compile "$LINENO"; then :
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5930
5931if `grep -i "unrecognized option" conftest.err >/dev/null`
5932then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5934$as_echo "no" >&6; }
5935 CFLAGS="$saved_CFLAGS"
5936else
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5781$as_echo "yes" >&6; } 5938$as_echo "yes" >&6; }
5782 CFLAGS="$saved_CFLAGS $_define_flag" 5939 CFLAGS="$saved_CFLAGS $_define_flag"
5940fi
5783else 5941else
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785$as_echo "no" >&6; } 5943$as_echo "no" >&6; }
@@ -5800,9 +5958,17 @@ $as_echo_n "checking if $CC supports -D_FORTIFY_SOURCE=2... " >&6; }
5800int main(void) { return 0; } 5958int main(void) { return 0; }
5801_ACEOF 5959_ACEOF
5802if ac_fn_c_try_compile "$LINENO"; then : 5960if ac_fn_c_try_compile "$LINENO"; then :
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5961
5962if `grep -i "unrecognized option" conftest.err >/dev/null`
5963then
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965$as_echo "no" >&6; }
5966 CFLAGS="$saved_CFLAGS"
5967else
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5804$as_echo "yes" >&6; } 5969$as_echo "yes" >&6; }
5805 CFLAGS="$saved_CFLAGS $_define_flag" 5970 CFLAGS="$saved_CFLAGS $_define_flag"
5971fi
5806else 5972else
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808$as_echo "no" >&6; } 5974$as_echo "no" >&6; }
@@ -6074,6 +6240,7 @@ for ac_header in \
6074 ia.h \ 6240 ia.h \
6075 iaf.h \ 6241 iaf.h \
6076 limits.h \ 6242 limits.h \
6243 locale.h \
6077 login.h \ 6244 login.h \
6078 maillock.h \ 6245 maillock.h \
6079 ndir.h \ 6246 ndir.h \
@@ -6112,7 +6279,6 @@ for ac_header in \
6112 sys/sysmacros.h \ 6279 sys/sysmacros.h \
6113 sys/time.h \ 6280 sys/time.h \
6114 sys/timers.h \ 6281 sys/timers.h \
6115 sys/un.h \
6116 time.h \ 6282 time.h \
6117 tmpdir.h \ 6283 tmpdir.h \
6118 ttyent.h \ 6284 ttyent.h \
@@ -6210,6 +6376,24 @@ fi
6210done 6376done
6211 6377
6212 6378
6379# Android requires sys/socket.h to be included before sys/un.h
6380for ac_header in sys/un.h
6381do :
6382 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "
6383#include <sys/types.h>
6384#include <sys/socket.h>
6385
6386"
6387if test "x$ac_cv_header_sys_un_h" = xyes; then :
6388 cat >>confdefs.h <<_ACEOF
6389#define HAVE_SYS_UN_H 1
6390_ACEOF
6391
6392fi
6393
6394done
6395
6396
6213# Messages for features tested for in target-specific section 6397# Messages for features tested for in target-specific section
6214SIA_MSG="no" 6398SIA_MSG="no"
6215SPC_MSG="no" 6399SPC_MSG="no"
@@ -6496,6 +6680,14 @@ $as_echo "#define PTY_ZEROREAD 1" >>confdefs.h
6496$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h 6680$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h
6497 6681
6498 ;; 6682 ;;
6683*-*-android*)
6684
6685$as_echo "#define DISABLE_UTMP 1" >>confdefs.h
6686
6687
6688$as_echo "#define DISABLE_WTMP 1" >>confdefs.h
6689
6690 ;;
6499*-*-cygwin*) 6691*-*-cygwin*)
6500 check_for_libcrypt_later=1 6692 check_for_libcrypt_later=1
6501 LIBS="$LIBS /usr/lib/textreadmode.o" 6693 LIBS="$LIBS /usr/lib/textreadmode.o"
@@ -7257,6 +7449,7 @@ fi
7257 7449
7258fi 7450fi
7259 7451
7452 TEST_SHELL=$SHELL # let configure find us a capable shell
7260 ;; 7453 ;;
7261*-*-sunos4*) 7454*-*-sunos4*)
7262 CPPFLAGS="$CPPFLAGS -DSUNOS4" 7455 CPPFLAGS="$CPPFLAGS -DSUNOS4"
@@ -7413,6 +7606,7 @@ $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7413 7606
7414 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h 7607 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7415 7608
7609 TEST_SHELL=$SHELL # let configure find us a capable shell
7416 ;; 7610 ;;
7417# UnixWare 7.x, OpenUNIX 8 7611# UnixWare 7.x, OpenUNIX 8
7418*-*-sysv5*) 7612*-*-sysv5*)
@@ -7432,10 +7626,10 @@ $as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h
7432 7626
7433 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h 7627 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7434 7628
7629 TEST_SHELL=$SHELL # let configure find us a capable shell
7435 case "$host" in 7630 case "$host" in
7436 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x 7631 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
7437 maildir=/var/spool/mail 7632 maildir=/var/spool/mail
7438 TEST_SHELL=/u95/bin/sh
7439 7633
7440$as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h 7634$as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h
7441 7635
@@ -7553,7 +7747,7 @@ fi
7553done 7747done
7554 7748
7555 MANTYPE=man 7749 MANTYPE=man
7556 TEST_SHELL=ksh 7750 TEST_SHELL=$SHELL # let configure find us a capable shell
7557 SKIP_DISABLE_LASTLOG_DEFINE=yes 7751 SKIP_DISABLE_LASTLOG_DEFINE=yes
7558 ;; 7752 ;;
7559*-*-unicosmk*) 7753*-*-unicosmk*)
@@ -7664,15 +7858,6 @@ $as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h
7664 7858
7665 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h 7859 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
7666 7860
7667
7668$as_echo "#define MISSING_NFDBITS 1" >>confdefs.h
7669
7670
7671$as_echo "#define MISSING_HOWMANY 1" >>confdefs.h
7672
7673
7674$as_echo "#define MISSING_FD_MASK 1" >>confdefs.h
7675
7676 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h 7861 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
7677 7862
7678 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h 7863 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
@@ -7705,8 +7890,6 @@ $as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h
7705 7890
7706*-*-lynxos) 7891*-*-lynxos)
7707 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" 7892 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
7708 $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h
7709
7710 7893
7711$as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h 7894$as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h
7712 7895
@@ -8231,6 +8414,7 @@ else
8231/* end confdefs.h. */ 8414/* end confdefs.h. */
8232 8415
8233#include <stdio.h> 8416#include <stdio.h>
8417#include <stdlib.h>
8234#include <zlib.h> 8418#include <zlib.h>
8235 8419
8236int 8420int
@@ -8455,6 +8639,62 @@ if test "$ac_res" != no; then :
8455 8639
8456fi 8640fi
8457 8641
8642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing scan_scaled" >&5
8643$as_echo_n "checking for library containing scan_scaled... " >&6; }
8644if ${ac_cv_search_scan_scaled+:} false; then :
8645 $as_echo_n "(cached) " >&6
8646else
8647 ac_func_search_save_LIBS=$LIBS
8648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8649/* end confdefs.h. */
8650
8651/* Override any GCC internal prototype to avoid an error.
8652 Use char because int might match the return type of a GCC
8653 builtin and then its argument prototype would still apply. */
8654#ifdef __cplusplus
8655extern "C"
8656#endif
8657char scan_scaled ();
8658int
8659main ()
8660{
8661return scan_scaled ();
8662 ;
8663 return 0;
8664}
8665_ACEOF
8666for ac_lib in '' util bsd; do
8667 if test -z "$ac_lib"; then
8668 ac_res="none required"
8669 else
8670 ac_res=-l$ac_lib
8671 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8672 fi
8673 if ac_fn_c_try_link "$LINENO"; then :
8674 ac_cv_search_scan_scaled=$ac_res
8675fi
8676rm -f core conftest.err conftest.$ac_objext \
8677 conftest$ac_exeext
8678 if ${ac_cv_search_scan_scaled+:} false; then :
8679 break
8680fi
8681done
8682if ${ac_cv_search_scan_scaled+:} false; then :
8683
8684else
8685 ac_cv_search_scan_scaled=no
8686fi
8687rm conftest.$ac_ext
8688LIBS=$ac_func_search_save_LIBS
8689fi
8690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_scan_scaled" >&5
8691$as_echo "$ac_cv_search_scan_scaled" >&6; }
8692ac_res=$ac_cv_search_scan_scaled
8693if test "$ac_res" != no; then :
8694 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8695
8696fi
8697
8458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5 8698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
8459$as_echo_n "checking for library containing login... " >&6; } 8699$as_echo_n "checking for library containing login... " >&6; }
8460if ${ac_cv_search_login+:} false; then : 8700if ${ac_cv_search_login+:} false; then :
@@ -8735,7 +8975,7 @@ if test "$ac_res" != no; then :
8735 8975
8736fi 8976fi
8737 8977
8738for ac_func in fmt_scaled login logout openpty updwtmp logwtmp 8978for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp
8739do : 8979do :
8740 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8980 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8741ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8981ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
@@ -9570,6 +9810,7 @@ for ac_func in \
9570 clock \ 9810 clock \
9571 closefrom \ 9811 closefrom \
9572 dirfd \ 9812 dirfd \
9813 endgrent \
9573 fchmod \ 9814 fchmod \
9574 fchown \ 9815 fchown \
9575 freeaddrinfo \ 9816 freeaddrinfo \
@@ -9594,6 +9835,7 @@ for ac_func in \
9594 inet_ntop \ 9835 inet_ntop \
9595 innetgr \ 9836 innetgr \
9596 login_getcapbool \ 9837 login_getcapbool \
9838 mblen \
9597 md5_crypt \ 9839 md5_crypt \
9598 memmove \ 9840 memmove \
9599 mkdtemp \ 9841 mkdtemp \
@@ -9852,6 +10094,65 @@ $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
9852fi 10094fi
9853 10095
9854 10096
10097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
10098$as_echo_n "checking for library containing clock_gettime... " >&6; }
10099if ${ac_cv_search_clock_gettime+:} false; then :
10100 $as_echo_n "(cached) " >&6
10101else
10102 ac_func_search_save_LIBS=$LIBS
10103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104/* end confdefs.h. */
10105
10106/* Override any GCC internal prototype to avoid an error.
10107 Use char because int might match the return type of a GCC
10108 builtin and then its argument prototype would still apply. */
10109#ifdef __cplusplus
10110extern "C"
10111#endif
10112char clock_gettime ();
10113int
10114main ()
10115{
10116return clock_gettime ();
10117 ;
10118 return 0;
10119}
10120_ACEOF
10121for ac_lib in '' rt; do
10122 if test -z "$ac_lib"; then
10123 ac_res="none required"
10124 else
10125 ac_res=-l$ac_lib
10126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10127 fi
10128 if ac_fn_c_try_link "$LINENO"; then :
10129 ac_cv_search_clock_gettime=$ac_res
10130fi
10131rm -f core conftest.err conftest.$ac_objext \
10132 conftest$ac_exeext
10133 if ${ac_cv_search_clock_gettime+:} false; then :
10134 break
10135fi
10136done
10137if ${ac_cv_search_clock_gettime+:} false; then :
10138
10139else
10140 ac_cv_search_clock_gettime=no
10141fi
10142rm conftest.$ac_ext
10143LIBS=$ac_func_search_save_LIBS
10144fi
10145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
10146$as_echo "$ac_cv_search_clock_gettime" >&6; }
10147ac_res=$ac_cv_search_clock_gettime
10148if test "$ac_res" != no; then :
10149 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10150
10151$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
10152
10153fi
10154
10155
9855ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default" 10156ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default"
9856if test "x$ac_cv_have_decl_getrusage" = xyes; then : 10157if test "x$ac_cv_have_decl_getrusage" = xyes; then :
9857 for ac_func in getrusage 10158 for ac_func in getrusage
@@ -10006,6 +10307,84 @@ cat >>confdefs.h <<_ACEOF
10006_ACEOF 10307_ACEOF
10007 10308
10008 10309
10310# extra bits for select(2)
10311ac_fn_c_check_decl "$LINENO" "howmany" "ac_cv_have_decl_howmany" "
10312#include <sys/param.h>
10313#include <sys/types.h>
10314#ifdef HAVE_SYS_SYSMACROS_H
10315#include <sys/sysmacros.h>
10316#endif
10317#ifdef HAVE_SYS_SELECT_H
10318#include <sys/select.h>
10319#endif
10320#ifdef HAVE_SYS_TIME_H
10321#include <sys/time.h>
10322#endif
10323#ifdef HAVE_UNISTD_H
10324#include <unistd.h>
10325#endif
10326
10327"
10328if test "x$ac_cv_have_decl_howmany" = xyes; then :
10329 ac_have_decl=1
10330else
10331 ac_have_decl=0
10332fi
10333
10334cat >>confdefs.h <<_ACEOF
10335#define HAVE_DECL_HOWMANY $ac_have_decl
10336_ACEOF
10337ac_fn_c_check_decl "$LINENO" "NFDBITS" "ac_cv_have_decl_NFDBITS" "
10338#include <sys/param.h>
10339#include <sys/types.h>
10340#ifdef HAVE_SYS_SYSMACROS_H
10341#include <sys/sysmacros.h>
10342#endif
10343#ifdef HAVE_SYS_SELECT_H
10344#include <sys/select.h>
10345#endif
10346#ifdef HAVE_SYS_TIME_H
10347#include <sys/time.h>
10348#endif
10349#ifdef HAVE_UNISTD_H
10350#include <unistd.h>
10351#endif
10352
10353"
10354if test "x$ac_cv_have_decl_NFDBITS" = xyes; then :
10355 ac_have_decl=1
10356else
10357 ac_have_decl=0
10358fi
10359
10360cat >>confdefs.h <<_ACEOF
10361#define HAVE_DECL_NFDBITS $ac_have_decl
10362_ACEOF
10363
10364ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "
10365#include <sys/param.h>
10366#include <sys/types.h>
10367#ifdef HAVE_SYS_SELECT_H
10368#include <sys/select.h>
10369#endif
10370#ifdef HAVE_SYS_TIME_H
10371#include <sys/time.h>
10372#endif
10373#ifdef HAVE_UNISTD_H
10374#include <unistd.h>
10375#endif
10376
10377"
10378if test "x$ac_cv_type_fd_mask" = xyes; then :
10379
10380cat >>confdefs.h <<_ACEOF
10381#define HAVE_FD_MASK 1
10382_ACEOF
10383
10384
10385fi
10386
10387
10009for ac_func in setresuid 10388for ac_func in setresuid
10010do : 10389do :
10011 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" 10390 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
@@ -11336,6 +11715,8 @@ else
11336 11715
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338$as_echo "no" >&6; } 11717$as_echo "no" >&6; }
11718 unsupported_algorithms="$unsupported_cipers \
11719 aes128-gcm@openssh.com aes256-gcm@openssh.com"
11339 11720
11340 11721
11341fi 11722fi
@@ -11532,6 +11913,18 @@ if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
11532fi 11913fi
11533 11914
11534fi 11915fi
11916for ac_func in crypt DES_crypt
11917do :
11918 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11919ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11920if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11921 cat >>confdefs.h <<_ACEOF
11922#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11923_ACEOF
11924
11925fi
11926done
11927
11535 11928
11536# Search for SHA256 support in libc and/or OpenSSL 11929# Search for SHA256 support in libc and/or OpenSSL
11537for ac_func in SHA256_Update EVP_sha256 11930for ac_func in SHA256_Update EVP_sha256
@@ -11545,6 +11938,12 @@ _ACEOF
11545 TEST_SSH_SHA256=yes 11938 TEST_SSH_SHA256=yes
11546else 11939else
11547 TEST_SSH_SHA256=no 11940 TEST_SSH_SHA256=no
11941 unsupported_algorithms="$unsupported_algorithms \
11942 hmac-sha2-256 hmac-sha2-512 \
11943 diffie-hellman-group-exchange-sha256 \
11944 hmac-sha2-256-etm@openssh.com hmac-sha2-512-etm@openssh.com"
11945
11946
11548fi 11947fi
11549done 11948done
11550 11949
@@ -11593,6 +11992,12 @@ else
11593$as_echo "no" >&6; } 11992$as_echo "no" >&6; }
11594 TEST_SSH_ECC=no 11993 TEST_SSH_ECC=no
11595 COMMENT_OUT_ECC="#no ecc#" 11994 COMMENT_OUT_ECC="#no ecc#"
11995 unsupported_algorithms="$unsupported_algorithms \
11996 ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 \
11997 ecdsa-sha2-nistp256-cert-v01@openssh.com \
11998 ecdsa-sha2-nistp384-cert-v01@openssh.com \
11999 ecdsa-sha2-nistp521-cert-v01@openssh.com \
12000 ecdsa-sha2-nistp256 ecdsa-sha2-nistp384 ecdsa-sha2-nistp521"
11596 12001
11597 12002
11598fi 12003fi
@@ -14345,6 +14750,60 @@ _ACEOF
14345 14750
14346fi 14751fi
14347 14752
14753ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "
14754#include <sys/types.h>
14755#include <pwd.h>
14756
14757"
14758if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
14759
14760cat >>confdefs.h <<_ACEOF
14761#define HAVE_STRUCT_PASSWD_PW_GECOS 1
14762_ACEOF
14763
14764
14765fi
14766ac_fn_c_check_member "$LINENO" "struct passwd" "pw_class" "ac_cv_member_struct_passwd_pw_class" "
14767#include <sys/types.h>
14768#include <pwd.h>
14769
14770"
14771if test "x$ac_cv_member_struct_passwd_pw_class" = xyes; then :
14772
14773cat >>confdefs.h <<_ACEOF
14774#define HAVE_STRUCT_PASSWD_PW_CLASS 1
14775_ACEOF
14776
14777
14778fi
14779ac_fn_c_check_member "$LINENO" "struct passwd" "pw_change" "ac_cv_member_struct_passwd_pw_change" "
14780#include <sys/types.h>
14781#include <pwd.h>
14782
14783"
14784if test "x$ac_cv_member_struct_passwd_pw_change" = xyes; then :
14785
14786cat >>confdefs.h <<_ACEOF
14787#define HAVE_STRUCT_PASSWD_PW_CHANGE 1
14788_ACEOF
14789
14790
14791fi
14792ac_fn_c_check_member "$LINENO" "struct passwd" "pw_expire" "ac_cv_member_struct_passwd_pw_expire" "
14793#include <sys/types.h>
14794#include <pwd.h>
14795
14796"
14797if test "x$ac_cv_member_struct_passwd_pw_expire" = xyes; then :
14798
14799cat >>confdefs.h <<_ACEOF
14800#define HAVE_STRUCT_PASSWD_PW_EXPIRE 1
14801_ACEOF
14802
14803
14804fi
14805
14806
14348ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" " 14807ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" "
14349#include <stdio.h> 14808#include <stdio.h>
14350#if HAVE_SYS_TYPES_H 14809#if HAVE_SYS_TYPES_H
@@ -14437,108 +14896,6 @@ $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
14437 14896
14438fi 14897fi
14439 14898
14440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_class field in struct passwd" >&5
14441$as_echo_n "checking for pw_class field in struct passwd... " >&6; }
14442if ${ac_cv_have_pw_class_in_struct_passwd+:} false; then :
14443 $as_echo_n "(cached) " >&6
14444else
14445
14446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14447/* end confdefs.h. */
14448 #include <pwd.h>
14449int
14450main ()
14451{
14452 struct passwd p; p.pw_class = 0;
14453 ;
14454 return 0;
14455}
14456_ACEOF
14457if ac_fn_c_try_compile "$LINENO"; then :
14458 ac_cv_have_pw_class_in_struct_passwd="yes"
14459else
14460 ac_cv_have_pw_class_in_struct_passwd="no"
14461
14462fi
14463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14464
14465fi
14466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
14467$as_echo "$ac_cv_have_pw_class_in_struct_passwd" >&6; }
14468if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
14469
14470$as_echo "#define HAVE_PW_CLASS_IN_PASSWD 1" >>confdefs.h
14471
14472fi
14473
14474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_expire field in struct passwd" >&5
14475$as_echo_n "checking for pw_expire field in struct passwd... " >&6; }
14476if ${ac_cv_have_pw_expire_in_struct_passwd+:} false; then :
14477 $as_echo_n "(cached) " >&6
14478else
14479
14480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14481/* end confdefs.h. */
14482 #include <pwd.h>
14483int
14484main ()
14485{
14486 struct passwd p; p.pw_expire = 0;
14487 ;
14488 return 0;
14489}
14490_ACEOF
14491if ac_fn_c_try_compile "$LINENO"; then :
14492 ac_cv_have_pw_expire_in_struct_passwd="yes"
14493else
14494 ac_cv_have_pw_expire_in_struct_passwd="no"
14495
14496fi
14497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14498
14499fi
14500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
14501$as_echo "$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
14502if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
14503
14504$as_echo "#define HAVE_PW_EXPIRE_IN_PASSWD 1" >>confdefs.h
14505
14506fi
14507
14508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_change field in struct passwd" >&5
14509$as_echo_n "checking for pw_change field in struct passwd... " >&6; }
14510if ${ac_cv_have_pw_change_in_struct_passwd+:} false; then :
14511 $as_echo_n "(cached) " >&6
14512else
14513
14514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515/* end confdefs.h. */
14516 #include <pwd.h>
14517int
14518main ()
14519{
14520 struct passwd p; p.pw_change = 0;
14521 ;
14522 return 0;
14523}
14524_ACEOF
14525if ac_fn_c_try_compile "$LINENO"; then :
14526 ac_cv_have_pw_change_in_struct_passwd="yes"
14527else
14528 ac_cv_have_pw_change_in_struct_passwd="no"
14529
14530fi
14531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14532
14533fi
14534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
14535$as_echo "$ac_cv_have_pw_change_in_struct_passwd" >&6; }
14536if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
14537
14538$as_echo "#define HAVE_PW_CHANGE_IN_PASSWD 1" >>confdefs.h
14539
14540fi
14541
14542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5 14899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5
14543$as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; } 14900$as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; }
14544if ${ac_cv_have_accrights_in_msghdr+:} false; then : 14901if ${ac_cv_have_accrights_in_msghdr+:} false; then :
@@ -15996,6 +16353,22 @@ cat >>confdefs.h <<_ACEOF
15996#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE $ac_have_decl 16353#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE $ac_have_decl
15997_ACEOF 16354_ACEOF
15998 16355
16356 saved_LIBS="$LIBS"
16357 LIBS="$LIBS $K5LIBS"
16358 for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message
16359do :
16360 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16361ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16362if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16363 cat >>confdefs.h <<_ACEOF
16364#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16365_ACEOF
16366
16367fi
16368done
16369
16370 LIBS="$saved_LIBS"
16371
15999 fi 16372 fi
16000 16373
16001 16374
@@ -17307,6 +17680,8 @@ fi
17307 17680
17308TEST_SSH_IPV6=$TEST_SSH_IPV6 17681TEST_SSH_IPV6=$TEST_SSH_IPV6
17309 17682
17683UNSUPPORTED_ALGORITHMS=$unsupported_algorithms
17684
17310 17685
17311 17686
17312ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh" 17687ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh"