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