summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure514
1 files changed, 481 insertions, 33 deletions
diff --git a/configure b/configure
index 565e9ee79..b142fd782 100755
--- a/configure
+++ b/configure
@@ -827,6 +827,7 @@ Optional Features:
827 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 827 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
828 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 828 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
829 --disable-largefile omit support for large files 829 --disable-largefile omit support for large files
830 --disable-strip Disable calling strip(1) on install
830 --disable-lastlog disable use of lastlog even if detected no 831 --disable-lastlog disable use of lastlog even if detected no
831 --disable-utmp disable use of utmp even if detected no 832 --disable-utmp disable use of utmp even if detected no
832 --disable-utmpx disable use of utmpx even if detected no 833 --disable-utmpx disable use of utmpx even if detected no
@@ -2719,6 +2720,45 @@ fi
2719 test -n "$PERL" && break 2720 test -n "$PERL" && break
2720done 2721done
2721 2722
2723# Extract the first word of "sed", so it can be a program name with args.
2724set dummy sed; ac_word=$2
2725echo "$as_me:$LINENO: checking for $ac_word" >&5
2726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2727if test "${ac_cv_path_SED+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2729else
2730 case $SED in
2731 [\\/]* | ?:[\\/]*)
2732 ac_cv_path_SED="$SED" # Let the user override the test with a path.
2733 ;;
2734 *)
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736for as_dir in $PATH
2737do
2738 IFS=$as_save_IFS
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
2743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 break 2
2745 fi
2746done
2747done
2748
2749 ;;
2750esac
2751fi
2752SED=$ac_cv_path_SED
2753
2754if test -n "$SED"; then
2755 echo "$as_me:$LINENO: result: $SED" >&5
2756echo "${ECHO_T}$SED" >&6
2757else
2758 echo "$as_me:$LINENO: result: no" >&5
2759echo "${ECHO_T}no" >&6
2760fi
2761
2722 2762
2723# Extract the first word of "ent", so it can be a program name with args. 2763# Extract the first word of "ent", so it can be a program name with args.
2724set dummy ent; ac_word=$2 2764set dummy ent; ac_word=$2
@@ -3660,8 +3700,17 @@ _ACEOF
3660#define LOGIN_NEEDS_UTMPX 1 3700#define LOGIN_NEEDS_UTMPX 1
3661_ACEOF 3701_ACEOF
3662 3702
3703 cat >>confdefs.h <<\_ACEOF
3704#define SETPROCTITLE_STRATEGY PS_USE_CLOBBER_ARGV
3705_ACEOF
3706
3707 cat >>confdefs.h <<\_ACEOF
3708#define SETPROCTITLE_PS_PADDING '\0'
3709_ACEOF
3710
3663 ;; 3711 ;;
3664*-*-cygwin*) 3712*-*-cygwin*)
3713 check_for_libcrypt_later=1
3665 LIBS="$LIBS /usr/lib/textmode.o" 3714 LIBS="$LIBS /usr/lib/textmode.o"
3666 cat >>confdefs.h <<\_ACEOF 3715 cat >>confdefs.h <<\_ACEOF
3667#define HAVE_CYGWIN 1 3716#define HAVE_CYGWIN 1
@@ -3782,7 +3831,7 @@ _ACEOF
3782_ACEOF 3831_ACEOF
3783 3832
3784 cat >>confdefs.h <<\_ACEOF 3833 cat >>confdefs.h <<\_ACEOF
3785#define SPT_TYPE SPT_PSTAT 3834#define SETPROCTITLE_STRATEGY PS_USE_PSTAT
3786_ACEOF 3835_ACEOF
3787 3836
3788 LIBS="$LIBS -lsec -lsecpw" 3837 LIBS="$LIBS -lsec -lsecpw"
@@ -3884,7 +3933,7 @@ _ACEOF
3884_ACEOF 3933_ACEOF
3885 3934
3886 cat >>confdefs.h <<\_ACEOF 3935 cat >>confdefs.h <<\_ACEOF
3887#define SPT_TYPE SPT_PSTAT 3936#define SETPROCTITLE_STRATEGY PS_USE_PSTAT
3888_ACEOF 3937_ACEOF
3889 3938
3890 LIBS="$LIBS -lsec" 3939 LIBS="$LIBS -lsec"
@@ -3986,7 +4035,7 @@ _ACEOF
3986_ACEOF 4035_ACEOF
3987 4036
3988 cat >>confdefs.h <<\_ACEOF 4037 cat >>confdefs.h <<\_ACEOF
3989#define SPT_TYPE SPT_PSTAT 4038#define SETPROCTITLE_STRATEGY PS_USE_PSTAT
3990_ACEOF 4039_ACEOF
3991 4040
3992 LIBS="$LIBS -lsec" 4041 LIBS="$LIBS -lsec"
@@ -4180,6 +4229,14 @@ _ACEOF
4180#define PAM_TTY_KLUDGE 1 4229#define PAM_TTY_KLUDGE 1
4181_ACEOF 4230_ACEOF
4182 4231
4232 cat >>confdefs.h <<\_ACEOF
4233#define SETPROCTITLE_STRATEGY PS_USE_CLOBBER_ARGV
4234_ACEOF
4235
4236 cat >>confdefs.h <<\_ACEOF
4237#define SETPROCTITLE_PS_PADDING '\0'
4238_ACEOF
4239
4183 inet6_default_4in6=yes 4240 inet6_default_4in6=yes
4184 ;; 4241 ;;
4185mips-sony-bsd|mips-sony-newsos4) 4242mips-sony-bsd|mips-sony-newsos4)
@@ -4240,6 +4297,10 @@ _ACEOF
4240#define PAM_TTY_KLUDGE 1 4297#define PAM_TTY_KLUDGE 1
4241_ACEOF 4298_ACEOF
4242 4299
4300 cat >>confdefs.h <<\_ACEOF
4301#define STREAMS_PUSH_ACQUIRES_CTTY 1
4302_ACEOF
4303
4243 # hardwire lastlog location (can't detect it on some versions) 4304 # hardwire lastlog location (can't detect it on some versions)
4244 conf_lastlog_location="/var/adm/lastlog" 4305 conf_lastlog_location="/var/adm/lastlog"
4245 echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 4306 echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
@@ -4504,6 +4565,9 @@ done
4504 do_sco3_extra_lib_check=yes 4565 do_sco3_extra_lib_check=yes
4505 ;; 4566 ;;
4506*-*-sco3.2v5*) 4567*-*-sco3.2v5*)
4568 if test -z "$GCC"; then
4569 CFLAGS="$CFLAGS -belf"
4570 fi
4507 CPPFLAGS="$CPPFLAGS -I/usr/local/include" 4571 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4508 LDFLAGS="$LDFLAGS -L/usr/local/lib" 4572 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4509 LIBS="$LIBS -lprot -lx -ltinfo -lm" 4573 LIBS="$LIBS -lprot -lx -ltinfo -lm"
@@ -4604,8 +4668,6 @@ done
4604 MANTYPE=man 4668 MANTYPE=man
4605 ;; 4669 ;;
4606*-*-unicosmk*) 4670*-*-unicosmk*)
4607 no_libsocket=1
4608 no_libnsl=1
4609 cat >>confdefs.h <<\_ACEOF 4671 cat >>confdefs.h <<\_ACEOF
4610#define USE_PIPES 1 4672#define USE_PIPES 1
4611_ACEOF 4673_ACEOF
@@ -4619,8 +4681,6 @@ _ACEOF
4619 MANTYPE=cat 4681 MANTYPE=cat
4620 ;; 4682 ;;
4621*-*-unicos*) 4683*-*-unicos*)
4622 no_libsocket=1
4623 no_libnsl=1
4624 cat >>confdefs.h <<\_ACEOF 4684 cat >>confdefs.h <<\_ACEOF
4625#define USE_PIPES 1 4685#define USE_PIPES 1
4626_ACEOF 4686_ACEOF
@@ -4665,12 +4725,20 @@ _ACEOF
4665#define DISABLE_LOGIN 1 4725#define DISABLE_LOGIN 1
4666_ACEOF 4726_ACEOF
4667 4727
4728 cat >>confdefs.h <<\_ACEOF
4729#define DISABLE_FD_PASSING 1
4730_ACEOF
4731
4668 LIBS="$LIBS -lsecurity -ldb -lm -laud" 4732 LIBS="$LIBS -lsecurity -ldb -lm -laud"
4669 else 4733 else
4670 echo "$as_me:$LINENO: result: no" >&5 4734 echo "$as_me:$LINENO: result: no" >&5
4671echo "${ECHO_T}no" >&6 4735echo "${ECHO_T}no" >&6
4672 fi 4736 fi
4673 fi 4737 fi
4738 cat >>confdefs.h <<\_ACEOF
4739#define DISABLE_FD_PASSING 1
4740_ACEOF
4741
4674 ;; 4742 ;;
4675 4743
4676*-*-nto-qnx) 4744*-*-nto-qnx)
@@ -4984,14 +5052,17 @@ done
4984 5052
4985 5053
4986 5054
5055
5056
5057
4987for ac_header in bstring.h crypt.h endian.h floatingpoint.h \ 5058for ac_header in bstring.h crypt.h endian.h floatingpoint.h \
4988 getopt.h glob.h ia.h lastlog.h limits.h login.h \ 5059 getopt.h glob.h ia.h lastlog.h libgen.h limits.h login.h \
4989 login_cap.h maillock.h netdb.h netgroup.h \ 5060 login_cap.h maillock.h netdb.h netgroup.h \
4990 netinet/in_systm.h paths.h pty.h readpassphrase.h \ 5061 netinet/in_systm.h paths.h pty.h readpassphrase.h \
4991 rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \ 5062 rpc/types.h security/pam_appl.h shadow.h stddef.h stdint.h \
4992 strings.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h \ 5063 strings.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h \
4993 sys/mman.h sys/select.h sys/stat.h \ 5064 sys/mman.h sys/pstat.h sys/select.h sys/stat.h \
4994 sys/stropts.h sys/sysmacros.h sys/time.h \ 5065 sys/stropts.h sys/sysmacros.h sys/time.h sys/timers.h \
4995 sys/un.h time.h tmpdir.h ttyent.h usersec.h \ 5066 sys/un.h time.h tmpdir.h ttyent.h usersec.h \
4996 util.h utime.h utmp.h utmpx.h 5067 util.h utime.h utmp.h utmpx.h
4997do 5068do
@@ -6740,17 +6811,24 @@ fi;
6740 6811
6741 6812
6742 6813
6743for ac_func in arc4random b64_ntop bcopy bindresvport_sa \ 6814
6744 clock fchmod fchown freeaddrinfo futimes gai_strerror \ 6815
6745 getaddrinfo getcwd getgrouplist getnameinfo getopt getpeereid\ 6816
6746 getrlimit getrusage getttyent glob inet_aton inet_ntoa \ 6817
6747 inet_ntop innetgr login_getcapbool md5_crypt memmove \ 6818
6748 mkdtemp mmap ngetaddrinfo openpty ogetaddrinfo readpassphrase \ 6819for ac_func in \
6749 realpath recvmsg rresvport_af sendmsg setdtablesize setegid \ 6820 arc4random __b64_ntop b64_ntop __b64_pton b64_pton basename bcopy \
6750 setenv seteuid setgroups setlogin setproctitle setresgid setreuid \ 6821 bindresvport_sa clock fchmod fchown freeaddrinfo futimes \
6751 setrlimit setsid setpcred setvbuf sigaction sigvec snprintf \ 6822 gai_strerror getaddrinfo getcwd getgrouplist getnameinfo getopt \
6752 socketpair strerror strlcat strlcpy strmode strsep sysconf tcgetpgrp \ 6823 getpeereid _getpty getrlimit getrusage getttyent glob inet_aton \
6753 truncate utimes vhangup vsnprintf waitpid __b64_ntop _getpty 6824 inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \
6825 mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openpty pstat \
6826 readpassphrase realpath recvmsg rresvport_af sendmsg setdtablesize \
6827 setegid setenv seteuid setgroups setlogin setpcred setproctitle \
6828 setresgid setreuid setrlimit setsid setvbuf sigaction sigvec \
6829 snprintf socketpair strerror strlcat strlcpy strmode strnvis \
6830 sysconf tcgetpgrp truncate utimes vhangup vsnprintf waitpid \
6831
6754do 6832do
6755as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6833as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6756echo "$as_me:$LINENO: checking for $ac_func" >&5 6834echo "$as_me:$LINENO: checking for $ac_func" >&5
@@ -6826,6 +6904,246 @@ fi
6826done 6904done
6827 6905
6828 6906
6907echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
6908echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
6909if test "${ac_cv_search_nanosleep+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6911else
6912 ac_func_search_save_LIBS=$LIBS
6913ac_cv_search_nanosleep=no
6914cat >conftest.$ac_ext <<_ACEOF
6915#line $LINENO "configure"
6916#include "confdefs.h"
6917
6918/* Override any gcc2 internal prototype to avoid an error. */
6919#ifdef __cplusplus
6920extern "C"
6921#endif
6922/* We use char because int might match the return type of a gcc2
6923 builtin and then its argument prototype would still apply. */
6924char nanosleep ();
6925#ifdef F77_DUMMY_MAIN
6926# ifdef __cplusplus
6927 extern "C"
6928# endif
6929 int F77_DUMMY_MAIN() { return 1; }
6930#endif
6931int
6932main ()
6933{
6934nanosleep ();
6935 ;
6936 return 0;
6937}
6938_ACEOF
6939rm -f conftest.$ac_objext conftest$ac_exeext
6940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6941 (eval $ac_link) 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } &&
6945 { ac_try='test -s conftest$ac_exeext'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 (eval $ac_try) 2>&5
6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; }; then
6951 ac_cv_search_nanosleep="none required"
6952else
6953 echo "$as_me: failed program was:" >&5
6954cat conftest.$ac_ext >&5
6955fi
6956rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6957if test "$ac_cv_search_nanosleep" = no; then
6958 for ac_lib in rt posix4; do
6959 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6960 cat >conftest.$ac_ext <<_ACEOF
6961#line $LINENO "configure"
6962#include "confdefs.h"
6963
6964/* Override any gcc2 internal prototype to avoid an error. */
6965#ifdef __cplusplus
6966extern "C"
6967#endif
6968/* We use char because int might match the return type of a gcc2
6969 builtin and then its argument prototype would still apply. */
6970char nanosleep ();
6971#ifdef F77_DUMMY_MAIN
6972# ifdef __cplusplus
6973 extern "C"
6974# endif
6975 int F77_DUMMY_MAIN() { return 1; }
6976#endif
6977int
6978main ()
6979{
6980nanosleep ();
6981 ;
6982 return 0;
6983}
6984_ACEOF
6985rm -f conftest.$ac_objext conftest$ac_exeext
6986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6987 (eval $ac_link) 2>&5
6988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } &&
6991 { ac_try='test -s conftest$ac_exeext'
6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993 (eval $ac_try) 2>&5
6994 ac_status=$?
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); }; }; then
6997 ac_cv_search_nanosleep="-l$ac_lib"
6998break
6999else
7000 echo "$as_me: failed program was:" >&5
7001cat conftest.$ac_ext >&5
7002fi
7003rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7004 done
7005fi
7006LIBS=$ac_func_search_save_LIBS
7007fi
7008echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
7009echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
7010if test "$ac_cv_search_nanosleep" != no; then
7011 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
7012 cat >>confdefs.h <<\_ACEOF
7013#define HAVE_NANOSLEEP 1
7014_ACEOF
7015
7016fi
7017
7018
7019echo "$as_me:$LINENO: checking whether strsep is declared" >&5
7020echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6
7021if test "${ac_cv_have_decl_strsep+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7023else
7024 cat >conftest.$ac_ext <<_ACEOF
7025#line $LINENO "configure"
7026#include "confdefs.h"
7027$ac_includes_default
7028#ifdef F77_DUMMY_MAIN
7029# ifdef __cplusplus
7030 extern "C"
7031# endif
7032 int F77_DUMMY_MAIN() { return 1; }
7033#endif
7034int
7035main ()
7036{
7037#ifndef strsep
7038 char *p = (char *) strsep;
7039#endif
7040
7041 ;
7042 return 0;
7043}
7044_ACEOF
7045rm -f conftest.$ac_objext
7046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7047 (eval $ac_compile) 2>&5
7048 ac_status=$?
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } &&
7051 { ac_try='test -s conftest.$ac_objext'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 (eval $ac_try) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; }; then
7057 ac_cv_have_decl_strsep=yes
7058else
7059 echo "$as_me: failed program was:" >&5
7060cat conftest.$ac_ext >&5
7061ac_cv_have_decl_strsep=no
7062fi
7063rm -f conftest.$ac_objext conftest.$ac_ext
7064fi
7065echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
7066echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6
7067if test $ac_cv_have_decl_strsep = yes; then
7068
7069for ac_func in strsep
7070do
7071as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7072echo "$as_me:$LINENO: checking for $ac_func" >&5
7073echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7074if eval "test \"\${$as_ac_var+set}\" = set"; then
7075 echo $ECHO_N "(cached) $ECHO_C" >&6
7076else
7077 cat >conftest.$ac_ext <<_ACEOF
7078#line $LINENO "configure"
7079#include "confdefs.h"
7080/* System header to define __stub macros and hopefully few prototypes,
7081 which can conflict with char $ac_func (); below. */
7082#include <assert.h>
7083/* Override any gcc2 internal prototype to avoid an error. */
7084#ifdef __cplusplus
7085extern "C"
7086#endif
7087/* We use char because int might match the return type of a gcc2
7088 builtin and then its argument prototype would still apply. */
7089char $ac_func ();
7090char (*f) ();
7091
7092#ifdef F77_DUMMY_MAIN
7093# ifdef __cplusplus
7094 extern "C"
7095# endif
7096 int F77_DUMMY_MAIN() { return 1; }
7097#endif
7098int
7099main ()
7100{
7101/* The GNU C library defines this for functions which it implements
7102 to always fail with ENOSYS. Some functions are actually named
7103 something starting with __ and the normal name is an alias. */
7104#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7105choke me
7106#else
7107f = $ac_func;
7108#endif
7109
7110 ;
7111 return 0;
7112}
7113_ACEOF
7114rm -f conftest.$ac_objext conftest$ac_exeext
7115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7116 (eval $ac_link) 2>&5
7117 ac_status=$?
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); } &&
7120 { ac_try='test -s conftest$ac_exeext'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122 (eval $ac_try) 2>&5
7123 ac_status=$?
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; }; then
7126 eval "$as_ac_var=yes"
7127else
7128 echo "$as_me: failed program was:" >&5
7129cat conftest.$ac_ext >&5
7130eval "$as_ac_var=no"
7131fi
7132rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7133fi
7134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7135echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7136if test `eval echo '${'$as_ac_var'}'` = yes; then
7137 cat >>confdefs.h <<_ACEOF
7138#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7139_ACEOF
7140
7141fi
7142done
7143
7144fi
7145
7146
6829 7147
6830for ac_func in dirname 7148for ac_func in dirname
6831do 7149do
@@ -7975,6 +8293,65 @@ rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7975fi 8293fi
7976fi 8294fi
7977 8295
8296if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
8297echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
8298echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6
8299if test "$cross_compiling" = yes; then
8300
8301 echo "$as_me:$LINENO: result: yes" >&5
8302echo "${ECHO_T}yes" >&6
8303 cat >>confdefs.h <<\_ACEOF
8304#define HAVE_STRICT_MKSTEMP 1
8305_ACEOF
8306
8307
8308
8309else
8310 cat >conftest.$ac_ext <<_ACEOF
8311#line $LINENO "configure"
8312#include "confdefs.h"
8313
8314#include <stdlib.h>
8315main() { char template[]="conftest.mkstemp-test";
8316if (mkstemp(template) == -1)
8317 exit(1);
8318unlink(template); exit(0);
8319}
8320
8321_ACEOF
8322rm -f conftest$ac_exeext
8323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324 (eval $ac_link) 2>&5
8325 ac_status=$?
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 (eval $ac_try) 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; }; then
8333
8334 echo "$as_me:$LINENO: result: no" >&5
8335echo "${ECHO_T}no" >&6
8336
8337else
8338 echo "$as_me: program exited with status $ac_status" >&5
8339echo "$as_me: failed program was:" >&5
8340cat conftest.$ac_ext >&5
8341( exit $ac_status )
8342
8343 echo "$as_me:$LINENO: result: yes" >&5
8344echo "${ECHO_T}yes" >&6
8345 cat >>confdefs.h <<\_ACEOF
8346#define HAVE_STRICT_MKSTEMP 1
8347_ACEOF
8348
8349
8350fi
8351rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8352fi
8353fi
8354
7978echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 8355echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
7979echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 8356echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
7980if test "${ac_cv_func_getpgrp_void+set}" = set; then 8357if test "${ac_cv_func_getpgrp_void+set}" = set; then
@@ -13128,12 +13505,72 @@ _ACEOF
13128 have_struct_timeval=1 13505 have_struct_timeval=1
13129fi 13506fi
13130 13507
13131# If we don't have int64_t then we can't compile sftp-server. So don't 13508echo "$as_me:$LINENO: checking for struct timespec" >&5
13132# even attempt to do it. 13509echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
13510if test "${ac_cv_type_struct_timespec+set}" = set; then
13511 echo $ECHO_N "(cached) $ECHO_C" >&6
13512else
13513 cat >conftest.$ac_ext <<_ACEOF
13514#line $LINENO "configure"
13515#include "confdefs.h"
13516$ac_includes_default
13517#ifdef F77_DUMMY_MAIN
13518# ifdef __cplusplus
13519 extern "C"
13520# endif
13521 int F77_DUMMY_MAIN() { return 1; }
13522#endif
13523int
13524main ()
13525{
13526if ((struct timespec *) 0)
13527 return 0;
13528if (sizeof (struct timespec))
13529 return 0;
13530 ;
13531 return 0;
13532}
13533_ACEOF
13534rm -f conftest.$ac_objext
13535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13536 (eval $ac_compile) 2>&5
13537 ac_status=$?
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); } &&
13540 { ac_try='test -s conftest.$ac_objext'
13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542 (eval $ac_try) 2>&5
13543 ac_status=$?
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; }; then
13546 ac_cv_type_struct_timespec=yes
13547else
13548 echo "$as_me: failed program was:" >&5
13549cat conftest.$ac_ext >&5
13550ac_cv_type_struct_timespec=no
13551fi
13552rm -f conftest.$ac_objext conftest.$ac_ext
13553fi
13554echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
13555echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6
13556if test $ac_cv_type_struct_timespec = yes; then
13557
13558cat >>confdefs.h <<_ACEOF
13559#define HAVE_STRUCT_TIMESPEC 1
13560_ACEOF
13561
13562
13563fi
13564
13565
13566# We need int64_t or else certian parts of the compile will fail.
13133if test "x$ac_cv_have_int64_t" = "xno" -a \ 13567if test "x$ac_cv_have_int64_t" = "xno" -a \
13134 "x$ac_cv_sizeof_long_int" != "x8" -a \ 13568 "x$ac_cv_sizeof_long_int" != "x8" -a \
13135 "x$ac_cv_sizeof_long_long_int" = "x0" ; then 13569 "x$ac_cv_sizeof_long_long_int" = "x0" ; then
13136 NO_SFTP='#' 13570 echo "OpenSSH requires int64_t support. Contact your vendor or install"
13571 echo "an alternative compiler (I.E., GCC) before continuing."
13572 echo ""
13573 exit 1;
13137else 13574else
13138 if test "$cross_compiling" = yes; then 13575 if test "$cross_compiling" = yes; then
13139 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 13576 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
@@ -13196,7 +13633,6 @@ fi
13196fi 13633fi
13197 13634
13198 13635
13199
13200# look for field 'ut_host' in header 'utmp.h' 13636# look for field 'ut_host' in header 'utmp.h'
13201 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 13637 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13202 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host 13638 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
@@ -15730,6 +16166,19 @@ fi
15730 16166
15731fi; 16167fi;
15732 16168
16169STRIP_OPT=-s
16170# Check whether --enable-strip or --disable-strip was given.
16171if test "${enable_strip+set}" = set; then
16172 enableval="$enable_strip"
16173
16174 if test "x$enableval" = "xno" ; then
16175 STRIP_OPT=
16176 fi
16177
16178
16179fi;
16180
16181
15733if test -z "$xauth_path" ; then 16182if test -z "$xauth_path" ; then
15734 XAUTH_PATH="undefined" 16183 XAUTH_PATH="undefined"
15735 16184
@@ -16056,7 +16505,11 @@ else
16056# include <paths.h> 16505# include <paths.h>
16057#endif 16506#endif
16058#ifndef _PATH_STDPATH 16507#ifndef _PATH_STDPATH
16059# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" 16508# ifdef _PATH_USERPATH /* Irix */
16509# define _PATH_STDPATH _PATH_USERPATH
16510# else
16511# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
16512# endif
16060#endif 16513#endif
16061#include <sys/types.h> 16514#include <sys/types.h>
16062#include <sys/stat.h> 16515#include <sys/stat.h>
@@ -17346,6 +17799,7 @@ s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17346s,@INSTALL_DATA@,$INSTALL_DATA,;t t 17799s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17347s,@AR@,$AR,;t t 17800s,@AR@,$AR,;t t
17348s,@PERL@,$PERL,;t t 17801s,@PERL@,$PERL,;t t
17802s,@SED@,$SED,;t t
17349s,@ENT@,$ENT,;t t 17803s,@ENT@,$ENT,;t t
17350s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t 17804s,@TEST_MINUS_S_SH@,$TEST_MINUS_S_SH,;t t
17351s,@SH@,$SH,;t t 17805s,@SH@,$SH,;t t
@@ -17372,10 +17826,10 @@ s,@PROG_UPTIME@,$PROG_UPTIME,;t t
17372s,@PROG_IPCS@,$PROG_IPCS,;t t 17826s,@PROG_IPCS@,$PROG_IPCS,;t t
17373s,@PROG_TAIL@,$PROG_TAIL,;t t 17827s,@PROG_TAIL@,$PROG_TAIL,;t t
17374s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t 17828s,@INSTALL_SSH_PRNG_CMDS@,$INSTALL_SSH_PRNG_CMDS,;t t
17375s,@NO_SFTP@,$NO_SFTP,;t t
17376s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t 17829s,@OPENSC_CONFIG@,$OPENSC_CONFIG,;t t
17377s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t 17830s,@PRIVSEP_PATH@,$PRIVSEP_PATH,;t t
17378s,@xauth_path@,$xauth_path,;t t 17831s,@xauth_path@,$xauth_path,;t t
17832s,@STRIP_OPT@,$STRIP_OPT,;t t
17379s,@XAUTH_PATH@,$XAUTH_PATH,;t t 17833s,@XAUTH_PATH@,$XAUTH_PATH,;t t
17380s,@NROFF@,$NROFF,;t t 17834s,@NROFF@,$NROFF,;t t
17381s,@MANTYPE@,$MANTYPE,;t t 17835s,@MANTYPE@,$MANTYPE,;t t
@@ -17895,12 +18349,6 @@ if test "x$PAM_MSG" = "xyes" ; then
17895 echo "" 18349 echo ""
17896fi 18350fi
17897 18351
17898if test ! -z "$NO_SFTP"; then
17899 echo "sftp-server will be disabled. Your compiler does not "
17900 echo "support 64bit integers."
17901 echo ""
17902fi
17903
17904if test ! -z "$RAND_HELPER_CMDHASH" ; then 18352if test ! -z "$RAND_HELPER_CMDHASH" ; then
17905 echo "WARNING: you are using the builtin random number collection " 18353 echo "WARNING: you are using the builtin random number collection "
17906 echo "service. Please read WARNING.RNG and request that your OS " 18354 echo "service. Please read WARNING.RNG and request that your OS "