3 AC_CONFIG_HEADER(config.h)
11 AC_CHECK_PROG(AR, ar, ar)
12 AC_PATH_PROG(PERL, perl)
14 AC_PATH_PROG(ENT, ent)
16 AC_PATH_PROGS(FILEPRIV, filepriv, true, /sbin:/usr/sbin)
18 # Use LOGIN_PROGRAM from environment if possible
19 if test ! -z "$LOGIN_PROGRAM" ; then
20 AC_DEFINE_UNQUOTED(LOGIN_PROGRAM_FALLBACK, "$LOGIN_PROGRAM")
23 AC_PATH_PROG(LOGIN_PROGRAM_FALLBACK, login)
24 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
25 AC_DEFINE_UNQUOTED(LOGIN_PROGRAM_FALLBACK, "$LOGIN_PROGRAM_FALLBACK")
29 if test -z "$LD" ; then
36 if test "$GCC" = "yes"; then
37 CFLAGS="$CFLAGS -Wall"
40 CFLAGS="$CFLAGS -I. -I${srcdir-.}"
42 # Check for some target-specific stuff
46 CFLAGS="$CFLAGS -I/usr/local/include"
47 LDFLAGS="$LDFLAGS -L/usr/local/lib"
48 if (test "$LD" != "gcc" && test -z "$blibpath"); then
49 blibpath="/usr/lib:/lib:/usr/local/lib"
51 AC_CHECK_FUNC(authenticate, [AC_DEFINE(WITH_AIXAUTHENTICATE)])
52 AC_DEFINE(BROKEN_GETADDRINFO)
55 dnl AIX handles lastlog as part of its login message
56 AC_DEFINE(DISABLE_LASTLOG)
61 LIBS="$LIBS -lregex /usr/lib/textmode.o"
62 AC_DEFINE(HAVE_CYGWIN)
63 AC_DEFINE(DISABLE_PAM)
64 AC_DEFINE(DISABLE_SHADOW)
65 AC_DEFINE(IPV4_DEFAULT)
66 AC_DEFINE(IP_TOS_IS_BROKEN)
67 AC_DEFINE(BROKEN_VHANGUP)
73 if test -z "$GCC"; then
76 CFLAGS="$CFLAGS -D_HPUX_SOURCE"
79 AC_DEFINE(DISABLE_SHADOW)
80 AC_DEFINE(DISABLE_UTMP)
81 AC_DEFINE(SPT_TYPE,SPT_PSTAT)
87 CFLAGS="$CFLAGS -D_HPUX_SOURCE"
90 AC_DEFINE(DISABLE_SHADOW)
91 AC_DEFINE(DISABLE_UTMP)
92 AC_DEFINE(SPT_TYPE,SPT_PSTAT)
98 CFLAGS="$CFLAGS -I/usr/local/include"
100 PATH="$PATH:/usr/etc"
104 AC_DEFINE(BROKEN_INET_NTOA)
107 CFLAGS="$CFLAGS -I/usr/local/include"
109 PATH="$PATH:/usr/etc"
111 AC_DEFINE(WITH_IRIX_ARRAY)
112 AC_DEFINE(WITH_IRIX_PROJECT)
113 AC_DEFINE(WITH_IRIX_AUDIT)
114 AC_CHECK_FUNC(jlimit_startjob, [AC_DEFINE(WITH_IRIX_JOBS)])
117 AC_DEFINE(BROKEN_INET_NTOA)
121 AC_DEFINE(DONT_TRY_OTHER_AF)
122 AC_DEFINE(PAM_TTY_KLUDGE)
123 inet6_default_4in6=yes
125 mips-sony-bsd|mips-sony-newsos4)
126 AC_DEFINE(HAVE_NEWS4)
128 AC_CHECK_LIB(iberty, xatexit, AC_DEFINE(HAVE_XATEXIT),
129 AC_MSG_ERROR([*** libiberty missing - please install first ***])
136 conf_lastlog_location="/usr/adm/lastlog"
137 conf_utmp_location=/etc/utmp
138 conf_wtmp_location=/usr/adm/wtmp
141 AC_DEFINE(BROKEN_REALPATH)
143 CFLAGS="$CFLAGS -I/usr/local/include"
146 CFLAGS="$CFLAGS -I/usr/local/include"
147 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib -L/usr/ucblib -R/usr/ucblib"
149 # hardwire lastlog location (can't detect it on some versions)
150 conf_lastlog_location="/var/adm/lastlog"
151 AC_MSG_CHECKING(for obsolete utmp and wtmp in solaris2.x)
152 sol2ver=`echo "$host"| sed -e 's/.*[[0-9]]\.//'`
153 if test "$sol2ver" -ge 8; then
155 AC_DEFINE(DISABLE_UTMP)
156 AC_DEFINE(DISABLE_WTMP)
162 CFLAGS="$CFLAGS -DSUNOS4"
163 AC_CHECK_FUNCS(getpwanam)
164 conf_utmp_location=/etc/utmp
165 conf_wtmp_location=/var/adm/wtmp
166 conf_lastlog_location=/var/adm/lastlog
172 CFLAGS="$CFLAGS -I/usr/local/include"
173 LDFLAGS="$LDFLAGS -L/usr/local/lib -L/usr/ucblib"
175 AC_DEFINE(IP_TOS_IS_BROKEN)
177 LIBS="$LIBS -lgen -lnsl -lucb"
180 CFLAGS="$CFLAGS -I/usr/local/include"
181 LDFLAGS="$LDFLAGS -L/usr/local/lib"
184 LIBS="$LIBS -lgen -lsocket -lnsl -lresolv"
188 CFLAGS="$CFLAGS -I/usr/local/include"
189 LDFLAGS="$LDFLAGS -L/usr/local/lib"
192 LIBS="$LIBS -lgen -lsocket"
196 CFLAGS="$CFLAGS -I/usr/local/include"
197 LDFLAGS="$LDFLAGS -L/usr/local/lib"
200 LIBS="$LIBS -lgen -lsocket"
204 CFLAGS="$CFLAGS -Dftruncate=chsize -I/usr/local/include"
205 LDFLAGS="$LDFLAGS -L/usr/local/lib"
208 LIBS="$LIBS -lgen -lsocket -los -lprot -lx -ltinfo -lm"
211 AC_DEFINE(BROKEN_SYS_TERMIO_H)
212 rsh_path="/usr/bin/rcmd"
213 AC_DEFINE(HAVE_SCO_PROTECTED_PW)
214 AC_DEFINE(DISABLE_SHADOW)
217 CFLAGS="$CFLAGS -I/usr/local/include"
218 LDFLAGS="$LDFLAGS -L/usr/local/lib"
221 LIBS="$LIBS -lgen -lsocket -lprot -lx -ltinfo -lm"
223 rsh_path="/usr/bin/rcmd"
224 AC_DEFINE(HAVE_SCO_PROTECTED_PW)
225 AC_DEFINE(DISABLE_SHADOW)
229 if test ! -z "USE_SIA" ; then
230 AC_MSG_CHECKING(for Digital Unix Security Integration Architecture)
231 if test -f /etc/sia/matrix.conf; then
233 AC_DEFINE(HAVE_OSF_SIA)
234 AC_DEFINE(DISABLE_LOGIN)
235 LIBS="$LIBS -lsecurity -ldb -lm -laud"
243 # Allow user to specify flags
245 [ --with-cflags Specify additional flags to pass to compiler],
247 if test "x$withval" != "xno" ; then
248 CFLAGS="$CFLAGS $withval"
253 [ --with-ldflags Specify additional flags to pass to linker],
255 if test "x$withval" != "xno" ; then
256 LDFLAGS="$LDFLAGS $withval"
261 [ --with-libs Specify additional libraries to link with],
263 if test "x$withval" != "xno" ; then
264 LIBS="$LIBS $withval"
270 # Checks for libraries.
271 AC_CHECK_LIB(z, deflate, ,AC_MSG_ERROR([*** zlib missing - please install first ***]))
272 AC_CHECK_LIB(util, login, AC_DEFINE(HAVE_LIBUTIL_LOGIN) LIBS="$LIBS -lutil")
274 AC_CHECK_FUNC(regcomp,
277 AC_CHECK_LIB(pcre, pcre_info,
278 AC_DEFINE(HAVE_LIBPCRE) LIBS="$LIBS -lpcreposix -lpcre")
282 if test -z "$no_libsocket" ; then
283 AC_CHECK_LIB(nsl, yp_match, , )
285 if test -z "$no_libnsl" ; then
286 AC_CHECK_LIB(socket, main, , )
289 # Checks for header files.
290 AC_CHECK_HEADERS(bstring.h endian.h floatingpoint.h getopt.h lastlog.h limits.h login.h login_cap.h maillock.h netdb.h netgroup.h netinet/in_systm.h paths.h poll.h pty.h shadow.h security/pam_appl.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h sys/poll.h sys/select.h sys/stat.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h sys/un.h stddef.h time.h ttyent.h usersec.h util.h utmp.h utmpx.h vis.h)
292 dnl Checks for library functions.
293 AC_CHECK_FUNCS(arc4random atexit b64_ntop bcopy bindresvport_af clock fchmod freeaddrinfo futimes gai_strerror getcwd getaddrinfo getnameinfo getrusage getttyent inet_aton inet_ntoa innetgr login_getcapbool md5_crypt memmove mkdtemp on_exit openpty realpath rresvport_af setenv seteuid setlogin setproctitle setreuid setrlimit setsid sigaction sigvec snprintf strerror strlcat strlcpy strsep strtok_r vsnprintf vhangup vis waitpid _getpty __b64_ntop)
294 dnl Checks for time functions
295 AC_CHECK_FUNCS(gettimeofday time)
296 dnl Checks for libutil functions
297 AC_CHECK_FUNCS(login logout updwtmp logwtmp)
298 dnl Checks for utmp functions
299 AC_CHECK_FUNCS(entutent getutent getutid getutline pututline setutent)
300 AC_CHECK_FUNCS(utmpname)
301 dnl Checks for utmpx functions
302 AC_CHECK_FUNCS(entutxent getutxent getutxid getutxline pututxline )
303 AC_CHECK_FUNCS(setutxent utmpxname)
305 AC_CHECK_FUNC(getuserattr,
306 [AC_DEFINE(HAVE_GETUSERATTR)],
307 [AC_CHECK_LIB(s, getuserattr, [LIBS="$LIBS -ls"; AC_DEFINE(HAVE_GETUSERATTR)])]
311 [AC_DEFINE(HAVE_LOGIN)],
312 [AC_CHECK_LIB(bsd, login, [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_LOGIN)])]
315 AC_CHECK_FUNC(daemon,
316 [AC_DEFINE(HAVE_DAEMON)],
317 [AC_CHECK_LIB(bsd, daemon, [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_DAEMON)])]
320 AC_CHECK_FUNC(getpagesize,
321 [AC_DEFINE(HAVE_GETPAGESIZE)],
322 [AC_CHECK_LIB(ucb, getpagesize, [LIBS="$LIBS -lucb"; AC_DEFINE(HAVE_GETPAGESIZE)])]
325 # Check for broken snprintf
326 if test "x$ac_cv_func_snprintf" = "xyes" ; then
327 AC_MSG_CHECKING([whether snprintf correctly terminates long strings])
331 int main(void){char b[5];snprintf(b,5,"123456789");return(b[4]!='\0');}
333 [AC_MSG_RESULT(yes)],
336 AC_DEFINE(BROKEN_SNPRINTF)
337 AC_MSG_WARN([****** Your snprintf() function is broken, complain to your vendor])
346 [ --without-pam Disable PAM support ],
348 if test "x$withval" = "xno" ; then
350 AC_DEFINE(DISABLE_PAM)
355 if (test -z "$no_pam" && test "x$ac_cv_header_security_pam_appl_h" = "xyes") ; then
356 AC_CHECK_LIB(dl, dlopen, , )
359 AC_CHECK_FUNCS(pam_getenvlist)
365 # Check PAM strerror arguments (old PAM)
366 AC_MSG_CHECKING([whether pam_strerror takes only one argument])
370 #include <security/pam_appl.h>
372 [(void)pam_strerror((pam_handle_t *)NULL, -1);],
375 AC_DEFINE(HAVE_OLD_PAM)
377 PAM_MSG="yes (old library)"
382 # The big search for OpenSSL
384 [ --with-ssl-dir=PATH Specify path to OpenSSL installation ],
386 if test "x$withval" != "xno" ; then
393 saved_LDFLAGS="$LDFLAGS"
394 saved_CFLAGS="$CFLAGS"
395 if test "x$prefix" != "xNONE" ; then
396 tryssldir="$tryssldir $prefix"
398 AC_CACHE_CHECK([for OpenSSL directory], ac_cv_openssldir, [
400 for ssldir in $tryssldir "" /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do
401 if test ! -z "$ssldir" ; then
402 LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir"
403 CFLAGS="$saved_CFLAGS -I$ssldir/include"
404 if test ! -z "$need_dash_r" ; then
405 LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir"
408 LDFLAGS="$saved_LDFLAGS"
411 LIBS="$saved_LIBS -lcrypto"
413 # Basic test to check for compatible version and correct linking
414 # *does not* test for RSA - that comes later.
418 #include <openssl/rand.h>
422 memset(a, 0, sizeof(a));
423 RAND_add(a, sizeof(a), sizeof(a));
424 return(RAND_status() <= 0);
433 if test ! -z "$found_crypto" ; then
438 if test -z "$found_crypto" ; then
439 AC_MSG_ERROR([Could not find working SSLeay / OpenSSL libraries, please install])
441 if test -z "$ssldir" ; then
445 ac_cv_openssldir=$ssldir
448 if (test ! -z "$ac_cv_openssldir" && test "x$ac_cv_openssldir" != "x(system)") ; then
449 AC_DEFINE(HAVE_OPENSSL)
450 dnl Need to recover ssldir - test above runs in subshell
451 ssldir=$ac_cv_openssldir
452 CFLAGS="$saved_CFLAGS -I$ssldir/include"
453 LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir"
454 if test ! -z "$need_dash_r" ; then
455 LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir"
457 if test ! -z "$blibpath" ; then
458 blibpath="$blibpath:$ssldir:$ssldir/lib"
461 LIBS="$saved_LIBS -lcrypto"
463 # Now test RSA support
465 AC_MSG_CHECKING([for RSA support])
466 for WANTS_RSAREF in "" 1 ; do
467 if test -z "$WANTS_RSAREF" ; then
470 LIBS="$saved_LIBS -lRSAglue -lrsaref"
474 #include <openssl/rand.h>
475 #include <openssl/rsa.h>
476 #include <openssl/bn.h>
477 #include <openssl/sha.h>
480 int num; RSA *key; static unsigned char p_in[] = "blahblah";
481 unsigned char c[256], p[256];
482 memset(c, 0, sizeof(c)); RAND_add(c, sizeof(c), sizeof(c));
483 if ((key=RSA_generate_key(512, 3, NULL, NULL))==NULL) return(1);
484 num = RSA_public_encrypt(sizeof(p_in) - 1, p_in, c, key, RSA_PKCS1_PADDING);
485 return(-1 == RSA_private_decrypt(num, c, p, key, RSA_PKCS1_PADDING));
494 if test ! -z "$no_rsa" ; then
495 AC_MSG_RESULT(disabled)
498 if test -z "$rsa_works" ; then
499 AC_MSG_WARN([*** No RSA support found *** ])
502 if test -z "$WANTS_RSAREF" ; then
506 RSA_MSG="yes (using RSAref)"
507 AC_MSG_RESULT(using RSAref)
508 LIBS="$saved_LIBS -lcrypto -lRSAglue -lrsaref"
513 # Cheap hack to ensure NEWS-OS libraries are arranged right.
514 if test ! -z "$SONY" ; then
515 LIBS="$LIBS -liberty";
518 # Checks for data types
519 AC_CHECK_SIZEOF(char, 1)
520 AC_CHECK_SIZEOF(short int, 2)
521 AC_CHECK_SIZEOF(int, 4)
522 AC_CHECK_SIZEOF(long int, 4)
523 AC_CHECK_SIZEOF(long long int, 8)
525 # More checks for data types
526 AC_CACHE_CHECK([for u_int type], ac_cv_have_u_int, [
528 [ #include <sys/types.h> ],
530 [ ac_cv_have_u_int="yes" ],
531 [ ac_cv_have_u_int="no" ]
534 if test "x$ac_cv_have_u_int" = "xyes" ; then
535 AC_DEFINE(HAVE_U_INT)
539 AC_CACHE_CHECK([for intXX_t types], ac_cv_have_intxx_t, [
541 [ #include <sys/types.h> ],
542 [ int8_t a; int16_t b; int32_t c; a = b = c = 1;],
543 [ ac_cv_have_intxx_t="yes" ],
544 [ ac_cv_have_intxx_t="no" ]
547 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
548 AC_DEFINE(HAVE_INTXX_T)
552 AC_CACHE_CHECK([for int64_t type], ac_cv_have_int64_t, [
554 [ #include <sys/types.h> ],
555 [ int64_t a; a = 1;],
556 [ ac_cv_have_int64_t="yes" ],
557 [ ac_cv_have_int64_t="no" ]
560 if test "x$ac_cv_have_int64_t" = "xyes" ; then
561 AC_DEFINE(HAVE_INT64_T)
565 AC_CACHE_CHECK([for u_intXX_t types], ac_cv_have_u_intxx_t, [
567 [ #include <sys/types.h> ],
568 [ u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;],
569 [ ac_cv_have_u_intxx_t="yes" ],
570 [ ac_cv_have_u_intxx_t="no" ]
573 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
574 AC_DEFINE(HAVE_U_INTXX_T)
578 AC_CACHE_CHECK([for u_int64_t types], ac_cv_have_u_int64_t, [
580 [ #include <sys/types.h> ],
581 [ u_int64_t a; a = 1;],
582 [ ac_cv_have_u_int64_t="yes" ],
583 [ ac_cv_have_u_int64_t="no" ]
586 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
587 AC_DEFINE(HAVE_U_INT64_T)
591 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
592 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
594 AC_MSG_CHECKING([for intXX_t and u_intXX_t types in sys/bitypes.h])
597 #include <sys/bitypes.h>
600 int8_t a; int16_t b; int32_t c;
601 u_int8_t e; u_int16_t f; u_int32_t g;
602 a = b = c = e = f = g = 1;
605 AC_DEFINE(HAVE_U_INTXX_T)
606 AC_DEFINE(HAVE_INTXX_T)
613 if test -z "$have_u_intxx_t" ; then
614 AC_CACHE_CHECK([for uintXX_t types], ac_cv_have_uintxx_t, [
617 #include <sys/types.h>
619 [ uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; ],
620 [ ac_cv_have_uintxx_t="yes" ],
621 [ ac_cv_have_uintxx_t="no" ]
624 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
625 AC_DEFINE(HAVE_UINTXX_T)
629 AC_CACHE_CHECK([for socklen_t], ac_cv_have_socklen_t, [
632 #include <sys/types.h>
633 #include <sys/socket.h>
635 [socklen_t foo; foo = 1235;],
636 [ ac_cv_have_socklen_t="yes" ],
637 [ ac_cv_have_socklen_t="no" ]
640 if test "x$ac_cv_have_socklen_t" = "xyes" ; then
641 AC_DEFINE(HAVE_SOCKLEN_T)
644 AC_CACHE_CHECK([for size_t], ac_cv_have_size_t, [
647 #include <sys/types.h>
649 [ size_t foo; foo = 1235; ],
650 [ ac_cv_have_size_t="yes" ],
651 [ ac_cv_have_size_t="no" ]
654 if test "x$ac_cv_have_size_t" = "xyes" ; then
655 AC_DEFINE(HAVE_SIZE_T)
658 AC_CACHE_CHECK([for ssize_t], ac_cv_have_ssize_t, [
661 #include <sys/types.h>
663 [ ssize_t foo; foo = 1235; ],
664 [ ac_cv_have_ssize_t="yes" ],
665 [ ac_cv_have_ssize_t="no" ]
668 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
669 AC_DEFINE(HAVE_SSIZE_T)
672 AC_CACHE_CHECK([for sa_family_t], ac_cv_have_sa_family_t, [
675 #include <sys/types.h>
676 #include <sys/socket.h>
678 [ sa_family_t foo; foo = 1235; ],
679 [ ac_cv_have_sa_family_t="yes" ],
682 #include <sys/types.h>
683 #include <sys/socket.h>
684 #include <netinet/in.h>
686 [ sa_family_t foo; foo = 1235; ],
687 [ ac_cv_have_sa_family_t="yes" ],
689 [ ac_cv_have_sa_family_t="no" ]
693 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
694 AC_DEFINE(HAVE_SA_FAMILY_T)
697 AC_CACHE_CHECK([for pid_t], ac_cv_have_pid_t, [
700 #include <sys/types.h>
702 [ pid_t foo; foo = 1235; ],
703 [ ac_cv_have_pid_t="yes" ],
704 [ ac_cv_have_pid_t="no" ]
707 if test "x$ac_cv_have_pid_t" = "xyes" ; then
708 AC_DEFINE(HAVE_PID_T)
711 AC_CACHE_CHECK([for mode_t], ac_cv_have_mode_t, [
714 #include <sys/types.h>
716 [ mode_t foo; foo = 1235; ],
717 [ ac_cv_have_mode_t="yes" ],
718 [ ac_cv_have_mode_t="no" ]
721 if test "x$ac_cv_have_mode_t" = "xyes" ; then
722 AC_DEFINE(HAVE_MODE_T)
726 AC_CACHE_CHECK([for struct sockaddr_storage], ac_cv_have_struct_sockaddr_storage, [
729 #include <sys/types.h>
730 #include <sys/socket.h>
732 [ struct sockaddr_storage s; ],
733 [ ac_cv_have_struct_sockaddr_storage="yes" ],
734 [ ac_cv_have_struct_sockaddr_storage="no" ]
737 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
738 AC_DEFINE(HAVE_STRUCT_SOCKADDR_STORAGE)
741 AC_CACHE_CHECK([for struct sockaddr_in6], ac_cv_have_struct_sockaddr_in6, [
744 #include <sys/types.h>
745 #include <netinet/in.h>
747 [ struct sockaddr_in6 s; s.sin6_family = 0; ],
748 [ ac_cv_have_struct_sockaddr_in6="yes" ],
749 [ ac_cv_have_struct_sockaddr_in6="no" ]
752 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
753 AC_DEFINE(HAVE_STRUCT_SOCKADDR_IN6)
756 AC_CACHE_CHECK([for struct in6_addr], ac_cv_have_struct_in6_addr, [
759 #include <sys/types.h>
760 #include <netinet/in.h>
762 [ struct in6_addr s; s.s6_addr[0] = 0; ],
763 [ ac_cv_have_struct_in6_addr="yes" ],
764 [ ac_cv_have_struct_in6_addr="no" ]
767 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
768 AC_DEFINE(HAVE_STRUCT_IN6_ADDR)
771 AC_CACHE_CHECK([for struct addrinfo], ac_cv_have_struct_addrinfo, [
774 #include <sys/types.h>
775 #include <sys/socket.h>
778 [ struct addrinfo s; s.ai_flags = AI_PASSIVE; ],
779 [ ac_cv_have_struct_addrinfo="yes" ],
780 [ ac_cv_have_struct_addrinfo="no" ]
783 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
784 AC_DEFINE(HAVE_STRUCT_ADDRINFO)
787 dnl Checks for structure members
788 OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmp.h, HAVE_HOST_IN_UTMP)
789 OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmpx.h, HAVE_HOST_IN_UTMPX)
790 OSSH_CHECK_HEADER_FOR_FIELD(syslen, utmpx.h, HAVE_SYSLEN_IN_UTMPX)
791 OSSH_CHECK_HEADER_FOR_FIELD(ut_pid, utmp.h, HAVE_PID_IN_UTMP)
792 OSSH_CHECK_HEADER_FOR_FIELD(ut_type, utmp.h, HAVE_TYPE_IN_UTMP)
793 OSSH_CHECK_HEADER_FOR_FIELD(ut_type, utmpx.h, HAVE_TYPE_IN_UTMPX)
794 OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmp.h, HAVE_TV_IN_UTMP)
795 OSSH_CHECK_HEADER_FOR_FIELD(ut_id, utmp.h, HAVE_ID_IN_UTMP)
796 OSSH_CHECK_HEADER_FOR_FIELD(ut_id, utmpx.h, HAVE_ID_IN_UTMPX)
797 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr, utmp.h, HAVE_ADDR_IN_UTMP)
798 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr, utmpx.h, HAVE_ADDR_IN_UTMPX)
799 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr_v6, utmp.h, HAVE_ADDR_V6_IN_UTMP)
800 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr_v6, utmpx.h, HAVE_ADDR_V6_IN_UTMPX)
801 OSSH_CHECK_HEADER_FOR_FIELD(ut_exit, utmp.h, HAVE_EXIT_IN_UTMP)
802 OSSH_CHECK_HEADER_FOR_FIELD(ut_time, utmp.h, HAVE_TIME_IN_UTMP)
803 OSSH_CHECK_HEADER_FOR_FIELD(ut_time, utmpx.h, HAVE_TIME_IN_UTMPX)
804 OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmpx.h, HAVE_TV_IN_UTMPX)
807 AC_CACHE_CHECK([for sun_len field in struct sockaddr_un],
808 ac_cv_have_sun_len_in_struct_sockaddr_un, [
811 #include <sys/types.h>
812 #include <sys/socket.h>
814 [ struct sockaddr_un s; s.sun_len = 1; ],
815 [ ac_cv_have_sun_len_in_struct_sockaddr_un="yes" ],
816 [ ac_cv_have_sun_len_in_struct_sockaddr_un="no" ],
819 if test "x$ac_cv_have_sun_len_in_struct_sockaddr_un" = "xyes" ; then
820 AC_DEFINE(HAVE_SUN_LEN_IN_SOCKADDR_UN)
823 AC_CACHE_CHECK([for ss_family field in struct sockaddr_storage],
824 ac_cv_have_ss_family_in_struct_ss, [
827 #include <sys/types.h>
828 #include <sys/socket.h>
830 [ struct sockaddr_storage s; s.ss_family = 1; ],
831 [ ac_cv_have_ss_family_in_struct_ss="yes" ],
832 [ ac_cv_have_ss_family_in_struct_ss="no" ],
835 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
836 AC_DEFINE(HAVE_SS_FAMILY_IN_SS)
839 AC_CACHE_CHECK([for __ss_family field in struct sockaddr_storage],
840 ac_cv_have___ss_family_in_struct_ss, [
843 #include <sys/types.h>
844 #include <sys/socket.h>
846 [ struct sockaddr_storage s; s.__ss_family = 1; ],
847 [ ac_cv_have___ss_family_in_struct_ss="yes" ],
848 [ ac_cv_have___ss_family_in_struct_ss="no" ]
851 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
852 AC_DEFINE(HAVE___SS_FAMILY_IN_SS)
855 AC_CACHE_CHECK([for pw_class field in struct passwd],
856 ac_cv_have_pw_class_in_struct_passwd, [
861 [ struct passwd p; p.pw_class = 0; ],
862 [ ac_cv_have_pw_class_in_struct_passwd="yes" ],
863 [ ac_cv_have_pw_class_in_struct_passwd="no" ]
866 if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
867 AC_DEFINE(HAVE_PW_CLASS_IN_PASSWD)
871 AC_CACHE_CHECK([if libc defines __progname], ac_cv_libc_defines___progname, [
873 [ extern char *__progname; printf("%s", __progname); ],
874 [ ac_cv_libc_defines___progname="yes" ],
875 [ ac_cv_libc_defines___progname="no" ]
878 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
879 AC_DEFINE(HAVE___PROGNAME)
883 AC_CACHE_CHECK([if libc defines sys_errlist], ac_cv_libc_defines_sys_errlist, [
885 [ extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);],
886 [ ac_cv_libc_defines_sys_errlist="yes" ],
887 [ ac_cv_libc_defines_sys_errlist="no" ]
890 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
891 AC_DEFINE(HAVE_SYS_ERRLIST)
895 AC_CACHE_CHECK([if libc defines sys_nerr], ac_cv_libc_defines_sys_nerr, [
897 [ extern int sys_nerr; printf("%i", sys_nerr);],
898 [ ac_cv_libc_defines_sys_nerr="yes" ],
899 [ ac_cv_libc_defines_sys_nerr="no" ]
902 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
903 AC_DEFINE(HAVE_SYS_NERR)
907 # Looking for programs, paths and files
909 [ --with-rsh=PATH Specify path to remote shell program ],
911 if test "x$withval" != "$no" ; then
916 AC_PATH_PROG(rsh_path, rsh)
921 [ --with-xauth=PATH Specify path to xauth program ],
923 if test "x$withval" != "xno" ; then
928 AC_PATH_PROG(xauth_path, xauth,,$PATH:/usr/X/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/openwin/bin)
929 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
930 xauth_path="/usr/openwin/bin/xauth"
935 if test ! -z "$xauth_path" ; then
936 AC_DEFINE_UNQUOTED(XAUTH_PATH, "$xauth_path")
938 if test ! -z "$rsh_path" ; then
939 AC_DEFINE_UNQUOTED(RSH_PATH, "$rsh_path")
942 # Check for mail directory (last resort if we cannot get it from headers)
943 if test ! -z "$MAIL" ; then
944 maildir=`dirname $MAIL`
945 AC_DEFINE_UNQUOTED(MAIL_DIRECTORY, "$maildir")
948 if test -z "$no_dev_ptmx" ; then
949 AC_CHECK_FILE("/dev/ptmx",
951 AC_DEFINE_UNQUOTED(HAVE_DEV_PTMX)
956 AC_CHECK_FILE("/dev/ptc",
958 AC_DEFINE_UNQUOTED(HAVE_DEV_PTS_AND_PTC)
963 # Options from here on. Some of these are preset by platform above
965 # Check for user-specified random device, otherwise check /dev/urandom
967 [ --with-random=FILE read randomness from FILE (default=/dev/urandom)],
969 if test "x$withval" != "xno" ; then
970 RANDOM_POOL="$withval";
971 AC_DEFINE_UNQUOTED(RANDOM_POOL, "$RANDOM_POOL")
975 # Check for random device
976 AC_CHECK_FILE("/dev/urandom",
978 RANDOM_POOL="/dev/urandom";
979 AC_SUBST(RANDOM_POOL)
980 AC_DEFINE_UNQUOTED(RANDOM_POOL, "$RANDOM_POOL")
986 # Check for EGD pool file
987 AC_ARG_WITH(egd-pool,
988 [ --with-egd-pool=FILE read randomness from EGD pool FILE (default none)],
990 if test "x$withval" != "xno" ; then
991 EGD_SOCKET="$withval";
992 AC_DEFINE_UNQUOTED(EGD_SOCKET, "$EGD_SOCKET")
997 # detect pathnames for entropy gathering commands, if we need them
998 INSTALL_SSH_PRNG_CMDS=""
1000 if (test -z "$RANDOM_POOL" && test -z "$EGD_SOCKET") ; then
1001 # Use these commands to collect entropy
1002 OSSH_PATH_ENTROPY_PROG(PROG_LS, ls)
1003 OSSH_PATH_ENTROPY_PROG(PROG_NETSTAT, netstat)
1004 OSSH_PATH_ENTROPY_PROG(PROG_ARP, arp)
1005 OSSH_PATH_ENTROPY_PROG(PROG_IFCONFIG, ifconfig)
1006 OSSH_PATH_ENTROPY_PROG(PROG_PS, ps)
1007 OSSH_PATH_ENTROPY_PROG(PROG_W, w)
1008 OSSH_PATH_ENTROPY_PROG(PROG_WHO, who)
1009 OSSH_PATH_ENTROPY_PROG(PROG_LAST, last)
1010 OSSH_PATH_ENTROPY_PROG(PROG_LASTLOG, lastlog)
1011 OSSH_PATH_ENTROPY_PROG(PROG_DF, df)
1012 OSSH_PATH_ENTROPY_PROG(PROG_VMSTAT, vmstat)
1013 OSSH_PATH_ENTROPY_PROG(PROG_UPTIME, uptime)
1014 OSSH_PATH_ENTROPY_PROG(PROG_IPCS, ipcs)
1015 OSSH_PATH_ENTROPY_PROG(PROG_TAIL, tail)
1016 OSSH_PATH_ENTROPY_PROG(PROG_LS, ls)
1018 INSTALL_SSH_PRNG_CMDS="yes"
1020 AC_SUBST(INSTALL_SSH_PRNG_CMDS)
1024 [ --with-catman=man|cat Install preformatted manpages[no]],
1027 if test x"$withval" != x"yes" ; then
1033 if test -z "$MANTYPE" ; then
1034 MANTYPE='$(TROFFMAN)'
1042 # Check whether user wants Kerberos support
1044 AC_ARG_WITH(kerberos4,
1045 [ --with-kerberos4=PATH Enable Kerberos 4 support],
1047 if test "x$withval" != "xno" ; then
1049 if test "x$withval" != "xyes" ; then
1050 CFLAGS="$CFLAGS -I${withval}/include"
1051 LDFLAGS="$LDFLAGS -L${withval}/lib"
1052 if test ! -z "$need_dash_r" ; then
1053 LDFLAGS="$LDFLAGS -R${withval}/lib"
1055 if test ! -z "$blibpath" ; then
1056 blibpath="$blibpath:${withval}/lib"
1059 if test -d /usr/include/kerberosIV ; then
1060 CFLAGS="$CFLAGS -I/usr/include/kerberosIV"
1064 AC_CHECK_HEADERS(krb.h)
1065 AC_CHECK_LIB(krb, main)
1066 if test "$ac_cv_header_krb_h" != yes; then
1067 AC_MSG_WARN([Cannot find krb.h, build may fail])
1069 if test "$ac_cv_lib_krb_main" != yes; then
1070 AC_MSG_WARN([Cannot find libkrb, build may fail])
1074 AC_CHECK_LIB(resolv, dn_expand, , )
1082 # Check whether user wants AFS support
1085 [ --with-afs=PATH Enable AFS support],
1087 if test "x$withval" != "xno" ; then
1089 if test "x$withval" != "xyes" ; then
1090 CFLAGS="$CFLAGS -I${withval}/include"
1091 LDFLAGS="$LDFLAGS -L${withval}/lib"
1094 if test -z "$KRB4" ; then
1095 AC_MSG_WARN([AFS requires Kerberos IV support, build may fail])
1099 if test ! -z "$AFS_LIBS" ; then
1100 LIBS="$LIBS $AFS_LIBS"
1109 # Check whether user wants S/Key support
1112 [ --with-skey=PATH Enable S/Key support],
1114 if test "x$withval" != "xno" ; then
1116 if test "x$withval" != "xyes" ; then
1117 CFLAGS="$CFLAGS -I${withval}/include"
1118 LDFLAGS="$LDFLAGS -L${withval}/lib"
1125 AC_CHECK_FUNC(skey_keyinfo,
1128 AC_MSG_ERROR([** Incomplete or missing s/key libraries.])
1134 # Check whether user wants TCP wrappers support
1136 AC_ARG_WITH(tcp-wrappers,
1137 [ --with-tcp-wrappers Enable tcpwrappers support],
1139 if test "x$withval" != "xno" ; then
1142 AC_MSG_CHECKING(for libwrap)
1146 int deny_severity = 0, allow_severity = 0;
1155 AC_MSG_ERROR([*** libwrap missing])
1162 # Check whether to enable MD5 passwords
1164 AC_ARG_WITH(md5-passwords,
1165 [ --with-md5-passwords Enable use of MD5 passwords],
1167 if test "x$withval" != "xno" ; then
1168 AC_DEFINE(HAVE_MD5_PASSWORDS)
1174 # Whether to disable shadow password support
1176 [ --without-shadow Disable shadow password support],
1178 if test "x$withval" = "xno" ; then
1179 AC_DEFINE(DISABLE_SHADOW)
1185 if test -z "$disable_shadow" ; then
1186 AC_MSG_CHECKING([if the systems has expire shadow information])
1189 #include <sys/types.h>
1192 ],[ sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; ],
1193 [ sp_expire_available=yes ], []
1196 if test "x$sp_expire_available" = "xyes" ; then
1198 AC_DEFINE(HAS_SHADOW_EXPIRE)
1204 # Use ip address instead of hostname in $DISPLAY
1205 if test ! -z "$IPADDR_IN_DISPLAY" ; then
1206 DISPLAY_HACK_MSG="yes"
1207 AC_DEFINE(IPADDR_IN_DISPLAY)
1209 DISPLAY_HACK_MSG="no"
1210 AC_ARG_WITH(ipaddr-display,
1211 [ --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY],
1213 if test "x$withval" != "xno" ; then
1214 AC_DEFINE(IPADDR_IN_DISPLAY)
1215 DISPLAY_HACK_MSG="yes"
1221 # Whether to mess with the default path
1222 SERVER_PATH_MSG="(default)"
1223 AC_ARG_WITH(default-path,
1224 [ --with-default-path=PATH Specify default \$PATH environment for server],
1226 if test "x$withval" != "xno" ; then
1227 AC_DEFINE_UNQUOTED(USER_PATH, "$withval")
1228 SERVER_PATH_MSG="$withval"
1233 # Whether to force IPv4 by default (needed on broken glibc Linux)
1235 AC_ARG_WITH(ipv4-default,
1236 [ --with-ipv4-default Use IPv4 by connections unless '-6' specified],
1238 if test "x$withval" != "xno" ; then
1239 AC_DEFINE(IPV4_DEFAULT)
1245 AC_MSG_CHECKING([if we need to convert IPv4 in IPv6-mapped addresses])
1246 IPV4_IN6_HACK_MSG="no"
1248 [ --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses],
1250 if test "x$withval" != "xno" ; then
1252 AC_DEFINE(IPV4_IN_IPV6)
1253 IPV4_IN6_HACK_MSG="yes"
1258 if test "x$inet6_default_4in6" = "xyes"; then
1259 AC_MSG_RESULT([yes (default)])
1260 AC_DEFINE(IPV4_IN_IPV6)
1261 IPV4_IN6_HACK_MSG="yes"
1263 AC_MSG_RESULT([no (default)])
1268 AC_MSG_CHECKING(whether to install ssh as suid root)
1269 AC_ARG_ENABLE(suid-ssh,
1270 [ --enable-suid-ssh Install ssh as suid root (default)
1271 --disable-suid-ssh Install ssh without suid bit],
1272 [ case "$enableval" in
1277 *) AC_MSG_RESULT(yes)
1287 # Where to place sshd.pid
1289 AC_ARG_WITH(pid-dir,
1290 [ --with-pid-dir=PATH Specify location of ssh.pid file],
1292 if test "x$withval" != "xno" ; then
1298 # make sure the directory exists
1299 if test ! -d $piddir ; then
1300 piddir=`eval echo ${sysconfdir}`
1302 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
1306 AC_DEFINE_UNQUOTED(PIDDIR, "$piddir")
1309 dnl allow user to disable some login recording features
1310 AC_ARG_ENABLE(lastlog,
1311 [ --disable-lastlog disable use of lastlog even if detected [no]],
1312 [ AC_DEFINE(DISABLE_LASTLOG) ]
1315 [ --disable-utmp disable use of utmp even if detected [no]],
1316 [ AC_DEFINE(DISABLE_UTMP) ]
1318 AC_ARG_ENABLE(utmpx,
1319 [ --disable-utmpx disable use of utmpx even if detected [no]],
1320 [ AC_DEFINE(DISABLE_UTMPX) ]
1323 [ --disable-wtmp disable use of wtmp even if detected [no]],
1324 [ AC_DEFINE(DISABLE_WTMP) ]
1326 AC_ARG_ENABLE(wtmpx,
1327 [ --disable-wtmpx disable use of wtmpx even if detected [no]],
1328 [ AC_DEFINE(DISABLE_WTMPX) ]
1330 AC_ARG_ENABLE(libutil,
1331 [ --disable-libutil disable use of libutil (login() etc.) [no]],
1332 [ AC_DEFINE(DISABLE_LOGIN) ]
1334 AC_ARG_ENABLE(pututline,
1335 [ --disable-pututline disable use of pututline() etc. ([uw]tmp) [no]],
1336 [ AC_DEFINE(DISABLE_PUTUTLINE) ]
1338 AC_ARG_ENABLE(pututxline,
1339 [ --disable-pututxline disable use of pututxline() etc. ([uw]tmpx) [no]],
1340 [ AC_DEFINE(DISABLE_PUTUTXLINE) ]
1342 AC_ARG_WITH(lastlog,
1343 [ --with-lastlog=FILE|DIR specify lastlog location [common locations]],
1344 [ conf_lastlog_location="$withval"; ],)
1346 dnl lastlog, [uw]tmpx? detection
1347 dnl NOTE: set the paths in the platform section to avoid the
1348 dnl need for command-line parameters
1349 dnl lastlog and [uw]tmp are subject to a file search if all else fails
1351 dnl lastlog detection
1352 dnl NOTE: the code itself will detect if lastlog is a directory
1353 AC_MSG_CHECKING([if your system defines LASTLOG_FILE])
1355 #include <sys/types.h>
1357 #ifdef HAVE_LASTLOG_H
1358 # include <lastlog.h>
1364 [ char *lastlog = LASTLOG_FILE; ],
1365 [ AC_MSG_RESULT(yes) ],
1368 AC_MSG_CHECKING([if your system defines _PATH_LASTLOG])
1370 #include <sys/types.h>
1372 #ifdef HAVE_LASTLOG_H
1373 # include <lastlog.h>
1379 [ char *lastlog = _PATH_LASTLOG; ],
1380 [ AC_MSG_RESULT(yes) ],
1383 system_lastlog_path=no
1388 if test -z "$conf_lastlog_location"; then
1389 if test x"$system_lastlog_path" = x"no" ; then
1390 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
1391 if (test -d "$f" || test -f "$f") ; then
1392 conf_lastlog_location=$f
1395 if test -z "$conf_lastlog_location"; then
1396 AC_MSG_WARN([** Cannot find lastlog **])
1397 dnl Don't define DISABLE_LASTLOG - that means we don't try wtmp/wtmpx
1402 if test -n "$conf_lastlog_location"; then
1403 AC_DEFINE_UNQUOTED(CONF_LASTLOG_FILE, "$conf_lastlog_location")
1407 AC_MSG_CHECKING([if your system defines UTMP_FILE])
1409 #include <sys/types.h>
1415 [ char *utmp = UTMP_FILE; ],
1416 [ AC_MSG_RESULT(yes) ],
1418 system_utmp_path=no ]
1420 if test -z "$conf_utmp_location"; then
1421 if test x"$system_utmp_path" = x"no" ; then
1422 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
1423 if test -f $f ; then
1424 conf_utmp_location=$f
1427 if test -z "$conf_utmp_location"; then
1428 AC_DEFINE(DISABLE_UTMP)
1432 if test -n "$conf_utmp_location"; then
1433 AC_DEFINE_UNQUOTED(CONF_UTMP_FILE, "$conf_utmp_location")
1437 AC_MSG_CHECKING([if your system defines WTMP_FILE])
1439 #include <sys/types.h>
1445 [ char *wtmp = WTMP_FILE; ],
1446 [ AC_MSG_RESULT(yes) ],
1448 system_wtmp_path=no ]
1450 if test -z "$conf_wtmp_location"; then
1451 if test x"$system_wtmp_path" = x"no" ; then
1452 for f in /usr/adm/wtmp /var/log/wtmp; do
1453 if test -f $f ; then
1454 conf_wtmp_location=$f
1457 if test -z "$conf_wtmp_location"; then
1458 AC_DEFINE(DISABLE_WTMP)
1462 if test -n "$conf_wtmp_location"; then
1463 AC_DEFINE_UNQUOTED(CONF_WTMP_FILE, "$conf_wtmp_location")
1467 dnl utmpx detection - I don't know any system so perverse as to require
1468 dnl utmpx, but not define UTMPX_FILE (ditto wtmpx.) No doubt it's out
1470 AC_MSG_CHECKING([if your system defines UTMPX_FILE])
1472 #include <sys/types.h>
1481 [ char *utmpx = UTMPX_FILE; ],
1482 [ AC_MSG_RESULT(yes) ],
1484 system_utmpx_path=no ]
1486 if test -z "$conf_utmpx_location"; then
1487 if test x"$system_utmpx_path" = x"no" ; then
1488 AC_DEFINE(DISABLE_UTMPX)
1491 AC_DEFINE_UNQUOTED(CONF_UTMPX_FILE, "$conf_utmpx_location")
1495 AC_MSG_CHECKING([if your system defines WTMPX_FILE])
1497 #include <sys/types.h>
1506 [ char *wtmpx = WTMPX_FILE; ],
1507 [ AC_MSG_RESULT(yes) ],
1509 system_wtmpx_path=no ]
1511 if test -z "$conf_wtmpx_location"; then
1512 if test x"$system_wtmpx_path" = x"no" ; then
1513 AC_DEFINE(DISABLE_WTMPX)
1516 AC_DEFINE_UNQUOTED(CONF_WTMPX_FILE, "$conf_wtmpx_location")
1520 # Change default command timeout for builtin PRNG
1522 AC_ARG_WITH(entropy-timeout,
1523 [ --with-entropy-timeout Specify entropy gathering command timeout (msec)],
1525 if test "x$withval" != "xno" ; then
1526 entropy_timeout=$withval
1530 AC_DEFINE_UNQUOTED(ENTROPY_TIMEOUT_MSEC, $entropy_timeout)
1533 if test ! -z "$blibpath" ; then
1534 LDFLAGS="$LDFLAGS -blibpath:$blibpath"
1535 AC_MSG_WARN([Please check and edit -blibpath in LDFLAGS in Makefile])
1540 AC_OUTPUT(Makefile ssh_prng_cmds)
1542 # Print summary of options
1544 if test x$MANTYPE = x'$(CATMAN)' ; then
1549 if test ! -z "$RANDOM_POOL" ; then
1550 RAND_MSG="Device ($RANDOM_POOL)"
1552 if test ! -z "$EGD_SOCKET" ; then
1553 RAND_MSG="EGD ($EGD_SOCKET)"
1555 RAND_MSG="Builtin (timeout $entropy_timeout)"
1560 # Someone please show me a better way :)
1561 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
1562 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
1563 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
1564 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
1565 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
1566 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
1567 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
1570 echo "OpenSSH configured has been configured with the following options."
1571 echo " User binaries: $B"
1572 echo " User binaries: $B"
1573 echo " System binaries: $C"
1574 echo " Configuration files: $D"
1575 echo " Askpass program: $E"
1576 echo " Manual pages: $F"
1577 echo " PID file: $G"
1578 echo " Random number collection: $RAND_MSG"
1579 echo " Manpage format: $MAN_MSG"
1580 echo " PAM support: ${PAM_MSG}"
1581 echo " KerberosIV support: $KRB4_MSG"
1582 echo " AFS support: $AFS_MSG"
1583 echo " S/KEY support: $SKEY_MSG"
1584 echo " TCP Wrappers support: $TCPW_MSG"
1585 echo " MD5 password support: $MD5_MSG"
1586 echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
1587 echo " Use IPv4 by default hack: $IPV4_HACK_MSG"
1588 echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
1592 echo " Host: ${host}"
1593 echo " Compiler: ${CC}"
1594 echo " Compiler flags: ${CFLAGS}"
1595 echo " Linker flags: ${LDFLAGS}"
1596 echo " Libraries: ${LIBS}"
1600 if test ! -z "$BUILTIN_RNG" ; then
1601 echo "WARNING: you are using the builtin random number collection service."
1602 echo "Please read WARNING.RNG and request that your OS vendor includes"
1603 echo "/dev/random in future versions of their OS."