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 if test -z "$AR" ; then
19 AC_MSG_ERROR([*** 'ar' missing, please install or fix your \$PATH ***])
22 # Use LOGIN_PROGRAM from environment if possible
23 if test ! -z "$LOGIN_PROGRAM" ; then
24 AC_DEFINE_UNQUOTED(LOGIN_PROGRAM_FALLBACK, "$LOGIN_PROGRAM")
27 AC_PATH_PROG(LOGIN_PROGRAM_FALLBACK, login)
28 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
29 AC_DEFINE_UNQUOTED(LOGIN_PROGRAM_FALLBACK, "$LOGIN_PROGRAM_FALLBACK")
33 if test -z "$LD" ; then
40 if test "$GCC" = "yes"; then
41 CFLAGS="$CFLAGS -Wall"
44 CFLAGS="$CFLAGS -I. -I${srcdir-.}"
46 # Check for some target-specific stuff
50 CFLAGS="$CFLAGS -I/usr/local/include"
51 LDFLAGS="$LDFLAGS -L/usr/local/lib"
52 if (test "$LD" != "gcc" && test -z "$blibpath"); then
53 blibpath="/usr/lib:/lib:/usr/local/lib"
55 AC_CHECK_FUNC(authenticate, [AC_DEFINE(WITH_AIXAUTHENTICATE)])
56 AC_DEFINE(BROKEN_GETADDRINFO)
59 dnl AIX handles lastlog as part of its login message
60 AC_DEFINE(DISABLE_LASTLOG)
65 LIBS="$LIBS -lregex /usr/lib/textmode.o"
66 AC_DEFINE(HAVE_CYGWIN)
67 AC_DEFINE(DISABLE_PAM)
68 AC_DEFINE(DISABLE_SHADOW)
69 AC_DEFINE(IPV4_DEFAULT)
70 AC_DEFINE(IP_TOS_IS_BROKEN)
71 AC_DEFINE(BROKEN_VHANGUP)
77 if test -z "$GCC"; then
80 CFLAGS="$CFLAGS -D_HPUX_SOURCE"
83 AC_DEFINE(DISABLE_SHADOW)
84 AC_DEFINE(DISABLE_UTMP)
85 AC_DEFINE(SPT_TYPE,SPT_PSTAT)
91 CFLAGS="$CFLAGS -D_HPUX_SOURCE"
94 AC_DEFINE(DISABLE_SHADOW)
95 AC_DEFINE(DISABLE_UTMP)
96 AC_DEFINE(SPT_TYPE,SPT_PSTAT)
102 CFLAGS="$CFLAGS -I/usr/local/include"
104 PATH="$PATH:/usr/etc"
108 AC_DEFINE(BROKEN_INET_NTOA)
111 CFLAGS="$CFLAGS -I/usr/local/include"
113 PATH="$PATH:/usr/etc"
115 AC_DEFINE(WITH_IRIX_ARRAY)
116 AC_DEFINE(WITH_IRIX_PROJECT)
117 AC_DEFINE(WITH_IRIX_AUDIT)
118 AC_CHECK_FUNC(jlimit_startjob, [AC_DEFINE(WITH_IRIX_JOBS)])
121 AC_DEFINE(BROKEN_INET_NTOA)
125 AC_DEFINE(DONT_TRY_OTHER_AF)
126 AC_DEFINE(PAM_TTY_KLUDGE)
127 inet6_default_4in6=yes
129 mips-sony-bsd|mips-sony-newsos4)
130 AC_DEFINE(HAVE_NEWS4)
132 AC_CHECK_LIB(iberty, xatexit, AC_DEFINE(HAVE_XATEXIT),
133 AC_MSG_ERROR([*** libiberty missing - please install first ***])
140 conf_lastlog_location="/usr/adm/lastlog"
141 conf_utmp_location=/etc/utmp
142 conf_wtmp_location=/usr/adm/wtmp
145 AC_DEFINE(BROKEN_REALPATH)
147 CFLAGS="$CFLAGS -I/usr/local/include"
150 CFLAGS="$CFLAGS -I/usr/local/include"
151 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib -L/usr/ucblib -R/usr/ucblib"
153 # hardwire lastlog location (can't detect it on some versions)
154 conf_lastlog_location="/var/adm/lastlog"
155 AC_MSG_CHECKING(for obsolete utmp and wtmp in solaris2.x)
156 sol2ver=`echo "$host"| sed -e 's/.*[[0-9]]\.//'`
157 if test "$sol2ver" -ge 8; then
159 AC_DEFINE(DISABLE_UTMP)
160 AC_DEFINE(DISABLE_WTMP)
166 CFLAGS="$CFLAGS -DSUNOS4"
167 AC_CHECK_FUNCS(getpwanam)
168 conf_utmp_location=/etc/utmp
169 conf_wtmp_location=/var/adm/wtmp
170 conf_lastlog_location=/var/adm/lastlog
176 CFLAGS="$CFLAGS -I/usr/local/include"
177 LDFLAGS="$LDFLAGS -L/usr/local/lib -L/usr/ucblib"
179 AC_DEFINE(IP_TOS_IS_BROKEN)
181 LIBS="$LIBS -lgen -lnsl -lucb"
184 CFLAGS="$CFLAGS -I/usr/local/include"
185 LDFLAGS="$LDFLAGS -L/usr/local/lib"
188 LIBS="$LIBS -lgen -lsocket -lnsl -lresolv"
192 CFLAGS="$CFLAGS -I/usr/local/include"
193 LDFLAGS="$LDFLAGS -L/usr/local/lib"
196 LIBS="$LIBS -lgen -lsocket"
200 CFLAGS="$CFLAGS -I/usr/local/include"
201 LDFLAGS="$LDFLAGS -L/usr/local/lib"
204 LIBS="$LIBS -lgen -lsocket"
208 CFLAGS="$CFLAGS -Dftruncate=chsize -I/usr/local/include"
209 LDFLAGS="$LDFLAGS -L/usr/local/lib"
212 LIBS="$LIBS -lgen -lsocket -los -lprot -lx -ltinfo -lm"
215 AC_DEFINE(BROKEN_SYS_TERMIO_H)
216 rsh_path="/usr/bin/rcmd"
217 AC_DEFINE(HAVE_SCO_PROTECTED_PW)
218 AC_DEFINE(DISABLE_SHADOW)
221 CFLAGS="$CFLAGS -I/usr/local/include"
222 LDFLAGS="$LDFLAGS -L/usr/local/lib"
225 LIBS="$LIBS -lgen -lsocket -lprot -lx -ltinfo -lm"
227 rsh_path="/usr/bin/rcmd"
228 AC_DEFINE(HAVE_SCO_PROTECTED_PW)
229 AC_DEFINE(DISABLE_SHADOW)
233 if test ! -z "USE_SIA" ; then
234 AC_MSG_CHECKING(for Digital Unix Security Integration Architecture)
235 if test -f /etc/sia/matrix.conf; then
237 AC_DEFINE(HAVE_OSF_SIA)
238 AC_DEFINE(DISABLE_LOGIN)
239 LIBS="$LIBS -lsecurity -ldb -lm -laud"
247 # Allow user to specify flags
249 [ --with-cflags Specify additional flags to pass to compiler],
251 if test "x$withval" != "xno" ; then
252 CFLAGS="$CFLAGS $withval"
257 [ --with-ldflags Specify additional flags to pass to linker],
259 if test "x$withval" != "xno" ; then
260 LDFLAGS="$LDFLAGS $withval"
265 [ --with-libs Specify additional libraries to link with],
267 if test "x$withval" != "xno" ; then
268 LIBS="$LIBS $withval"
274 # Checks for libraries.
275 AC_CHECK_LIB(z, deflate, ,AC_MSG_ERROR([*** zlib missing - please install first ***]))
276 AC_CHECK_LIB(util, login, AC_DEFINE(HAVE_LIBUTIL_LOGIN) LIBS="$LIBS -lutil")
278 AC_CHECK_FUNC(regcomp,
281 AC_CHECK_LIB(pcre, pcre_info,
282 AC_DEFINE(HAVE_LIBPCRE) LIBS="$LIBS -lpcreposix -lpcre")
286 if test -z "$no_libsocket" ; then
287 AC_CHECK_LIB(nsl, yp_match, , )
289 if test -z "$no_libnsl" ; then
290 AC_CHECK_LIB(socket, main, , )
293 # Checks for header files.
294 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)
296 dnl Checks for library functions.
297 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)
298 dnl Checks for time functions
299 AC_CHECK_FUNCS(gettimeofday time)
300 dnl Checks for libutil functions
301 AC_CHECK_FUNCS(login logout updwtmp logwtmp)
302 dnl Checks for utmp functions
303 AC_CHECK_FUNCS(entutent getutent getutid getutline pututline setutent)
304 AC_CHECK_FUNCS(utmpname)
305 dnl Checks for utmpx functions
306 AC_CHECK_FUNCS(entutxent getutxent getutxid getutxline pututxline )
307 AC_CHECK_FUNCS(setutxent utmpxname)
309 AC_CHECK_FUNC(getuserattr,
310 [AC_DEFINE(HAVE_GETUSERATTR)],
311 [AC_CHECK_LIB(s, getuserattr, [LIBS="$LIBS -ls"; AC_DEFINE(HAVE_GETUSERATTR)])]
315 [AC_DEFINE(HAVE_LOGIN)],
316 [AC_CHECK_LIB(bsd, login, [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_LOGIN)])]
319 AC_CHECK_FUNC(daemon,
320 [AC_DEFINE(HAVE_DAEMON)],
321 [AC_CHECK_LIB(bsd, daemon, [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_DAEMON)])]
324 AC_CHECK_FUNC(getpagesize,
325 [AC_DEFINE(HAVE_GETPAGESIZE)],
326 [AC_CHECK_LIB(ucb, getpagesize, [LIBS="$LIBS -lucb"; AC_DEFINE(HAVE_GETPAGESIZE)])]
329 # Check for broken snprintf
330 if test "x$ac_cv_func_snprintf" = "xyes" ; then
331 AC_MSG_CHECKING([whether snprintf correctly terminates long strings])
335 int main(void){char b[5];snprintf(b,5,"123456789");return(b[4]!='\0');}
337 [AC_MSG_RESULT(yes)],
340 AC_DEFINE(BROKEN_SNPRINTF)
341 AC_MSG_WARN([****** Your snprintf() function is broken, complain to your vendor])
350 [ --without-pam Disable PAM support ],
352 if test "x$withval" = "xno" ; then
354 AC_DEFINE(DISABLE_PAM)
359 if (test -z "$no_pam" && test "x$ac_cv_header_security_pam_appl_h" = "xyes") ; then
360 AC_CHECK_LIB(dl, dlopen, , )
363 AC_CHECK_FUNCS(pam_getenvlist)
369 # Check PAM strerror arguments (old PAM)
370 AC_MSG_CHECKING([whether pam_strerror takes only one argument])
374 #include <security/pam_appl.h>
376 [(void)pam_strerror((pam_handle_t *)NULL, -1);],
379 AC_DEFINE(HAVE_OLD_PAM)
381 PAM_MSG="yes (old library)"
386 # The big search for OpenSSL
388 [ --with-ssl-dir=PATH Specify path to OpenSSL installation ],
390 if test "x$withval" != "xno" ; then
397 saved_LDFLAGS="$LDFLAGS"
398 saved_CFLAGS="$CFLAGS"
399 if test "x$prefix" != "xNONE" ; then
400 tryssldir="$tryssldir $prefix"
402 AC_CACHE_CHECK([for OpenSSL directory], ac_cv_openssldir, [
404 for ssldir in $tryssldir "" /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do
405 if test ! -z "$ssldir" ; then
406 LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir"
407 CFLAGS="$saved_CFLAGS -I$ssldir/include"
408 if test ! -z "$need_dash_r" ; then
409 LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir"
412 LDFLAGS="$saved_LDFLAGS"
415 LIBS="$saved_LIBS -lcrypto"
417 # Basic test to check for compatible version and correct linking
418 # *does not* test for RSA - that comes later.
422 #include <openssl/rand.h>
426 memset(a, 0, sizeof(a));
427 RAND_add(a, sizeof(a), sizeof(a));
428 return(RAND_status() <= 0);
437 if test ! -z "$found_crypto" ; then
442 if test -z "$found_crypto" ; then
443 AC_MSG_ERROR([Could not find working SSLeay / OpenSSL libraries, please install])
445 if test -z "$ssldir" ; then
449 ac_cv_openssldir=$ssldir
452 if (test ! -z "$ac_cv_openssldir" && test "x$ac_cv_openssldir" != "x(system)") ; then
453 AC_DEFINE(HAVE_OPENSSL)
454 dnl Need to recover ssldir - test above runs in subshell
455 ssldir=$ac_cv_openssldir
456 CFLAGS="$saved_CFLAGS -I$ssldir/include"
457 LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir"
458 if test ! -z "$need_dash_r" ; then
459 LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir"
461 if test ! -z "$blibpath" ; then
462 blibpath="$blibpath:$ssldir:$ssldir/lib"
465 LIBS="$saved_LIBS -lcrypto"
467 # Now test RSA support
469 AC_MSG_CHECKING([for RSA support])
470 for WANTS_RSAREF in "" 1 ; do
471 if test -z "$WANTS_RSAREF" ; then
474 LIBS="$saved_LIBS -lRSAglue -lrsaref"
478 #include <openssl/rand.h>
479 #include <openssl/rsa.h>
480 #include <openssl/bn.h>
481 #include <openssl/sha.h>
484 int num; RSA *key; static unsigned char p_in[] = "blahblah";
485 unsigned char c[256], p[256];
486 memset(c, 0, sizeof(c)); RAND_add(c, sizeof(c), sizeof(c));
487 if ((key=RSA_generate_key(512, 3, NULL, NULL))==NULL) return(1);
488 num = RSA_public_encrypt(sizeof(p_in) - 1, p_in, c, key, RSA_PKCS1_PADDING);
489 return(-1 == RSA_private_decrypt(num, c, p, key, RSA_PKCS1_PADDING));
498 if test ! -z "$no_rsa" ; then
499 AC_MSG_RESULT(disabled)
502 if test -z "$rsa_works" ; then
503 AC_MSG_WARN([*** No RSA support found *** ])
506 if test -z "$WANTS_RSAREF" ; then
510 RSA_MSG="yes (using RSAref)"
511 AC_MSG_RESULT(using RSAref)
512 LIBS="$saved_LIBS -lcrypto -lRSAglue -lrsaref"
517 # Cheap hack to ensure NEWS-OS libraries are arranged right.
518 if test ! -z "$SONY" ; then
519 LIBS="$LIBS -liberty";
522 # Checks for data types
523 AC_CHECK_SIZEOF(char, 1)
524 AC_CHECK_SIZEOF(short int, 2)
525 AC_CHECK_SIZEOF(int, 4)
526 AC_CHECK_SIZEOF(long int, 4)
527 AC_CHECK_SIZEOF(long long int, 8)
529 # More checks for data types
530 AC_CACHE_CHECK([for u_int type], ac_cv_have_u_int, [
532 [ #include <sys/types.h> ],
534 [ ac_cv_have_u_int="yes" ],
535 [ ac_cv_have_u_int="no" ]
538 if test "x$ac_cv_have_u_int" = "xyes" ; then
539 AC_DEFINE(HAVE_U_INT)
543 AC_CACHE_CHECK([for intXX_t types], ac_cv_have_intxx_t, [
545 [ #include <sys/types.h> ],
546 [ int8_t a; int16_t b; int32_t c; a = b = c = 1;],
547 [ ac_cv_have_intxx_t="yes" ],
548 [ ac_cv_have_intxx_t="no" ]
551 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
552 AC_DEFINE(HAVE_INTXX_T)
556 AC_CACHE_CHECK([for int64_t type], ac_cv_have_int64_t, [
558 [ #include <sys/types.h> ],
559 [ int64_t a; a = 1;],
560 [ ac_cv_have_int64_t="yes" ],
561 [ ac_cv_have_int64_t="no" ]
564 if test "x$ac_cv_have_int64_t" = "xyes" ; then
565 AC_DEFINE(HAVE_INT64_T)
569 AC_CACHE_CHECK([for u_intXX_t types], ac_cv_have_u_intxx_t, [
571 [ #include <sys/types.h> ],
572 [ u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;],
573 [ ac_cv_have_u_intxx_t="yes" ],
574 [ ac_cv_have_u_intxx_t="no" ]
577 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
578 AC_DEFINE(HAVE_U_INTXX_T)
582 AC_CACHE_CHECK([for u_int64_t types], ac_cv_have_u_int64_t, [
584 [ #include <sys/types.h> ],
585 [ u_int64_t a; a = 1;],
586 [ ac_cv_have_u_int64_t="yes" ],
587 [ ac_cv_have_u_int64_t="no" ]
590 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
591 AC_DEFINE(HAVE_U_INT64_T)
595 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
596 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
598 AC_MSG_CHECKING([for intXX_t and u_intXX_t types in sys/bitypes.h])
601 #include <sys/bitypes.h>
604 int8_t a; int16_t b; int32_t c;
605 u_int8_t e; u_int16_t f; u_int32_t g;
606 a = b = c = e = f = g = 1;
609 AC_DEFINE(HAVE_U_INTXX_T)
610 AC_DEFINE(HAVE_INTXX_T)
617 if test -z "$have_u_intxx_t" ; then
618 AC_CACHE_CHECK([for uintXX_t types], ac_cv_have_uintxx_t, [
621 #include <sys/types.h>
623 [ uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; ],
624 [ ac_cv_have_uintxx_t="yes" ],
625 [ ac_cv_have_uintxx_t="no" ]
628 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
629 AC_DEFINE(HAVE_UINTXX_T)
633 AC_CACHE_CHECK([for socklen_t], ac_cv_have_socklen_t, [
636 #include <sys/types.h>
637 #include <sys/socket.h>
639 [socklen_t foo; foo = 1235;],
640 [ ac_cv_have_socklen_t="yes" ],
641 [ ac_cv_have_socklen_t="no" ]
644 if test "x$ac_cv_have_socklen_t" = "xyes" ; then
645 AC_DEFINE(HAVE_SOCKLEN_T)
648 AC_CACHE_CHECK([for size_t], ac_cv_have_size_t, [
651 #include <sys/types.h>
653 [ size_t foo; foo = 1235; ],
654 [ ac_cv_have_size_t="yes" ],
655 [ ac_cv_have_size_t="no" ]
658 if test "x$ac_cv_have_size_t" = "xyes" ; then
659 AC_DEFINE(HAVE_SIZE_T)
662 AC_CACHE_CHECK([for ssize_t], ac_cv_have_ssize_t, [
665 #include <sys/types.h>
667 [ ssize_t foo; foo = 1235; ],
668 [ ac_cv_have_ssize_t="yes" ],
669 [ ac_cv_have_ssize_t="no" ]
672 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
673 AC_DEFINE(HAVE_SSIZE_T)
676 AC_CACHE_CHECK([for sa_family_t], ac_cv_have_sa_family_t, [
679 #include <sys/types.h>
680 #include <sys/socket.h>
682 [ sa_family_t foo; foo = 1235; ],
683 [ ac_cv_have_sa_family_t="yes" ],
686 #include <sys/types.h>
687 #include <sys/socket.h>
688 #include <netinet/in.h>
690 [ sa_family_t foo; foo = 1235; ],
691 [ ac_cv_have_sa_family_t="yes" ],
693 [ ac_cv_have_sa_family_t="no" ]
697 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
698 AC_DEFINE(HAVE_SA_FAMILY_T)
701 AC_CACHE_CHECK([for pid_t], ac_cv_have_pid_t, [
704 #include <sys/types.h>
706 [ pid_t foo; foo = 1235; ],
707 [ ac_cv_have_pid_t="yes" ],
708 [ ac_cv_have_pid_t="no" ]
711 if test "x$ac_cv_have_pid_t" = "xyes" ; then
712 AC_DEFINE(HAVE_PID_T)
715 AC_CACHE_CHECK([for mode_t], ac_cv_have_mode_t, [
718 #include <sys/types.h>
720 [ mode_t foo; foo = 1235; ],
721 [ ac_cv_have_mode_t="yes" ],
722 [ ac_cv_have_mode_t="no" ]
725 if test "x$ac_cv_have_mode_t" = "xyes" ; then
726 AC_DEFINE(HAVE_MODE_T)
730 AC_CACHE_CHECK([for struct sockaddr_storage], ac_cv_have_struct_sockaddr_storage, [
733 #include <sys/types.h>
734 #include <sys/socket.h>
736 [ struct sockaddr_storage s; ],
737 [ ac_cv_have_struct_sockaddr_storage="yes" ],
738 [ ac_cv_have_struct_sockaddr_storage="no" ]
741 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
742 AC_DEFINE(HAVE_STRUCT_SOCKADDR_STORAGE)
745 AC_CACHE_CHECK([for struct sockaddr_in6], ac_cv_have_struct_sockaddr_in6, [
748 #include <sys/types.h>
749 #include <netinet/in.h>
751 [ struct sockaddr_in6 s; s.sin6_family = 0; ],
752 [ ac_cv_have_struct_sockaddr_in6="yes" ],
753 [ ac_cv_have_struct_sockaddr_in6="no" ]
756 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
757 AC_DEFINE(HAVE_STRUCT_SOCKADDR_IN6)
760 AC_CACHE_CHECK([for struct in6_addr], ac_cv_have_struct_in6_addr, [
763 #include <sys/types.h>
764 #include <netinet/in.h>
766 [ struct in6_addr s; s.s6_addr[0] = 0; ],
767 [ ac_cv_have_struct_in6_addr="yes" ],
768 [ ac_cv_have_struct_in6_addr="no" ]
771 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
772 AC_DEFINE(HAVE_STRUCT_IN6_ADDR)
775 AC_CACHE_CHECK([for struct addrinfo], ac_cv_have_struct_addrinfo, [
778 #include <sys/types.h>
779 #include <sys/socket.h>
782 [ struct addrinfo s; s.ai_flags = AI_PASSIVE; ],
783 [ ac_cv_have_struct_addrinfo="yes" ],
784 [ ac_cv_have_struct_addrinfo="no" ]
787 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
788 AC_DEFINE(HAVE_STRUCT_ADDRINFO)
791 dnl Checks for structure members
792 OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmp.h, HAVE_HOST_IN_UTMP)
793 OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmpx.h, HAVE_HOST_IN_UTMPX)
794 OSSH_CHECK_HEADER_FOR_FIELD(syslen, utmpx.h, HAVE_SYSLEN_IN_UTMPX)
795 OSSH_CHECK_HEADER_FOR_FIELD(ut_pid, utmp.h, HAVE_PID_IN_UTMP)
796 OSSH_CHECK_HEADER_FOR_FIELD(ut_type, utmp.h, HAVE_TYPE_IN_UTMP)
797 OSSH_CHECK_HEADER_FOR_FIELD(ut_type, utmpx.h, HAVE_TYPE_IN_UTMPX)
798 OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmp.h, HAVE_TV_IN_UTMP)
799 OSSH_CHECK_HEADER_FOR_FIELD(ut_id, utmp.h, HAVE_ID_IN_UTMP)
800 OSSH_CHECK_HEADER_FOR_FIELD(ut_id, utmpx.h, HAVE_ID_IN_UTMPX)
801 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr, utmp.h, HAVE_ADDR_IN_UTMP)
802 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr, utmpx.h, HAVE_ADDR_IN_UTMPX)
803 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr_v6, utmp.h, HAVE_ADDR_V6_IN_UTMP)
804 OSSH_CHECK_HEADER_FOR_FIELD(ut_addr_v6, utmpx.h, HAVE_ADDR_V6_IN_UTMPX)
805 OSSH_CHECK_HEADER_FOR_FIELD(ut_exit, utmp.h, HAVE_EXIT_IN_UTMP)
806 OSSH_CHECK_HEADER_FOR_FIELD(ut_time, utmp.h, HAVE_TIME_IN_UTMP)
807 OSSH_CHECK_HEADER_FOR_FIELD(ut_time, utmpx.h, HAVE_TIME_IN_UTMPX)
808 OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmpx.h, HAVE_TV_IN_UTMPX)
811 AC_CACHE_CHECK([for sun_len field in struct sockaddr_un],
812 ac_cv_have_sun_len_in_struct_sockaddr_un, [
815 #include <sys/types.h>
816 #include <sys/socket.h>
818 [ struct sockaddr_un s; s.sun_len = 1; ],
819 [ ac_cv_have_sun_len_in_struct_sockaddr_un="yes" ],
820 [ ac_cv_have_sun_len_in_struct_sockaddr_un="no" ],
823 if test "x$ac_cv_have_sun_len_in_struct_sockaddr_un" = "xyes" ; then
824 AC_DEFINE(HAVE_SUN_LEN_IN_SOCKADDR_UN)
827 AC_CACHE_CHECK([for ss_family field in struct sockaddr_storage],
828 ac_cv_have_ss_family_in_struct_ss, [
831 #include <sys/types.h>
832 #include <sys/socket.h>
834 [ struct sockaddr_storage s; s.ss_family = 1; ],
835 [ ac_cv_have_ss_family_in_struct_ss="yes" ],
836 [ ac_cv_have_ss_family_in_struct_ss="no" ],
839 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
840 AC_DEFINE(HAVE_SS_FAMILY_IN_SS)
843 AC_CACHE_CHECK([for __ss_family field in struct sockaddr_storage],
844 ac_cv_have___ss_family_in_struct_ss, [
847 #include <sys/types.h>
848 #include <sys/socket.h>
850 [ struct sockaddr_storage s; s.__ss_family = 1; ],
851 [ ac_cv_have___ss_family_in_struct_ss="yes" ],
852 [ ac_cv_have___ss_family_in_struct_ss="no" ]
855 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
856 AC_DEFINE(HAVE___SS_FAMILY_IN_SS)
859 AC_CACHE_CHECK([for pw_class field in struct passwd],
860 ac_cv_have_pw_class_in_struct_passwd, [
865 [ struct passwd p; p.pw_class = 0; ],
866 [ ac_cv_have_pw_class_in_struct_passwd="yes" ],
867 [ ac_cv_have_pw_class_in_struct_passwd="no" ]
870 if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
871 AC_DEFINE(HAVE_PW_CLASS_IN_PASSWD)
875 AC_CACHE_CHECK([if libc defines __progname], ac_cv_libc_defines___progname, [
877 [ extern char *__progname; printf("%s", __progname); ],
878 [ ac_cv_libc_defines___progname="yes" ],
879 [ ac_cv_libc_defines___progname="no" ]
882 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
883 AC_DEFINE(HAVE___PROGNAME)
887 AC_CACHE_CHECK([if libc defines sys_errlist], ac_cv_libc_defines_sys_errlist, [
889 [ extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);],
890 [ ac_cv_libc_defines_sys_errlist="yes" ],
891 [ ac_cv_libc_defines_sys_errlist="no" ]
894 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
895 AC_DEFINE(HAVE_SYS_ERRLIST)
899 AC_CACHE_CHECK([if libc defines sys_nerr], ac_cv_libc_defines_sys_nerr, [
901 [ extern int sys_nerr; printf("%i", sys_nerr);],
902 [ ac_cv_libc_defines_sys_nerr="yes" ],
903 [ ac_cv_libc_defines_sys_nerr="no" ]
906 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
907 AC_DEFINE(HAVE_SYS_NERR)
911 # Looking for programs, paths and files
913 [ --with-rsh=PATH Specify path to remote shell program ],
915 if test "x$withval" != "$no" ; then
920 AC_PATH_PROG(rsh_path, rsh)
925 [ --with-xauth=PATH Specify path to xauth program ],
927 if test "x$withval" != "xno" ; then
932 AC_PATH_PROG(xauth_path, xauth,,$PATH:/usr/X/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/openwin/bin)
933 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
934 xauth_path="/usr/openwin/bin/xauth"
939 if test ! -z "$xauth_path" ; then
940 AC_DEFINE_UNQUOTED(XAUTH_PATH, "$xauth_path")
942 if test ! -z "$rsh_path" ; then
943 AC_DEFINE_UNQUOTED(RSH_PATH, "$rsh_path")
946 # Check for mail directory (last resort if we cannot get it from headers)
947 if test ! -z "$MAIL" ; then
948 maildir=`dirname $MAIL`
949 AC_DEFINE_UNQUOTED(MAIL_DIRECTORY, "$maildir")
952 if test -z "$no_dev_ptmx" ; then
953 AC_CHECK_FILE("/dev/ptmx",
955 AC_DEFINE_UNQUOTED(HAVE_DEV_PTMX)
960 AC_CHECK_FILE("/dev/ptc",
962 AC_DEFINE_UNQUOTED(HAVE_DEV_PTS_AND_PTC)
967 # Options from here on. Some of these are preset by platform above
969 # Check for user-specified random device, otherwise check /dev/urandom
971 [ --with-random=FILE read randomness from FILE (default=/dev/urandom)],
973 if test "x$withval" != "xno" ; then
974 RANDOM_POOL="$withval";
975 AC_DEFINE_UNQUOTED(RANDOM_POOL, "$RANDOM_POOL")
979 # Check for random device
980 AC_CHECK_FILE("/dev/urandom",
982 RANDOM_POOL="/dev/urandom";
983 AC_SUBST(RANDOM_POOL)
984 AC_DEFINE_UNQUOTED(RANDOM_POOL, "$RANDOM_POOL")
990 # Check for EGD pool file
991 AC_ARG_WITH(egd-pool,
992 [ --with-egd-pool=FILE read randomness from EGD pool FILE (default none)],
994 if test "x$withval" != "xno" ; then
995 EGD_SOCKET="$withval";
996 AC_DEFINE_UNQUOTED(EGD_SOCKET, "$EGD_SOCKET")
1001 # detect pathnames for entropy gathering commands, if we need them
1002 INSTALL_SSH_PRNG_CMDS=""
1004 if (test -z "$RANDOM_POOL" && test -z "$EGD_SOCKET") ; then
1005 # Use these commands to collect entropy
1006 OSSH_PATH_ENTROPY_PROG(PROG_LS, ls)
1007 OSSH_PATH_ENTROPY_PROG(PROG_NETSTAT, netstat)
1008 OSSH_PATH_ENTROPY_PROG(PROG_ARP, arp)
1009 OSSH_PATH_ENTROPY_PROG(PROG_IFCONFIG, ifconfig)
1010 OSSH_PATH_ENTROPY_PROG(PROG_PS, ps)
1011 OSSH_PATH_ENTROPY_PROG(PROG_W, w)
1012 OSSH_PATH_ENTROPY_PROG(PROG_WHO, who)
1013 OSSH_PATH_ENTROPY_PROG(PROG_LAST, last)
1014 OSSH_PATH_ENTROPY_PROG(PROG_LASTLOG, lastlog)
1015 OSSH_PATH_ENTROPY_PROG(PROG_DF, df)
1016 OSSH_PATH_ENTROPY_PROG(PROG_VMSTAT, vmstat)
1017 OSSH_PATH_ENTROPY_PROG(PROG_UPTIME, uptime)
1018 OSSH_PATH_ENTROPY_PROG(PROG_IPCS, ipcs)
1019 OSSH_PATH_ENTROPY_PROG(PROG_TAIL, tail)
1020 OSSH_PATH_ENTROPY_PROG(PROG_LS, ls)
1022 INSTALL_SSH_PRNG_CMDS="yes"
1024 AC_SUBST(INSTALL_SSH_PRNG_CMDS)
1028 [ --with-catman=man|cat Install preformatted manpages[no]],
1031 if test x"$withval" != x"yes" ; then
1037 if test -z "$MANTYPE" ; then
1038 MANTYPE='$(TROFFMAN)'
1046 # Check whether user wants Kerberos support
1048 AC_ARG_WITH(kerberos4,
1049 [ --with-kerberos4=PATH Enable Kerberos 4 support],
1051 if test "x$withval" != "xno" ; then
1053 if test "x$withval" != "xyes" ; then
1054 CFLAGS="$CFLAGS -I${withval}/include"
1055 LDFLAGS="$LDFLAGS -L${withval}/lib"
1056 if test ! -z "$need_dash_r" ; then
1057 LDFLAGS="$LDFLAGS -R${withval}/lib"
1059 if test ! -z "$blibpath" ; then
1060 blibpath="$blibpath:${withval}/lib"
1063 if test -d /usr/include/kerberosIV ; then
1064 CFLAGS="$CFLAGS -I/usr/include/kerberosIV"
1068 AC_CHECK_HEADERS(krb.h)
1069 AC_CHECK_LIB(krb, main)
1070 if test "$ac_cv_header_krb_h" != yes; then
1071 AC_MSG_WARN([Cannot find krb.h, build may fail])
1073 if test "$ac_cv_lib_krb_main" != yes; then
1074 AC_MSG_WARN([Cannot find libkrb, build may fail])
1078 AC_CHECK_LIB(resolv, dn_expand, , )
1086 # Check whether user wants AFS support
1089 [ --with-afs=PATH Enable AFS support],
1091 if test "x$withval" != "xno" ; then
1093 if test "x$withval" != "xyes" ; then
1094 CFLAGS="$CFLAGS -I${withval}/include"
1095 LDFLAGS="$LDFLAGS -L${withval}/lib"
1098 if test -z "$KRB4" ; then
1099 AC_MSG_WARN([AFS requires Kerberos IV support, build may fail])
1103 if test ! -z "$AFS_LIBS" ; then
1104 LIBS="$LIBS $AFS_LIBS"
1113 # Check whether user wants S/Key support
1116 [ --with-skey=PATH Enable S/Key support],
1118 if test "x$withval" != "xno" ; then
1120 if test "x$withval" != "xyes" ; then
1121 CFLAGS="$CFLAGS -I${withval}/include"
1122 LDFLAGS="$LDFLAGS -L${withval}/lib"
1129 AC_CHECK_FUNC(skey_keyinfo,
1132 AC_MSG_ERROR([** Incomplete or missing s/key libraries.])
1138 # Check whether user wants TCP wrappers support
1140 AC_ARG_WITH(tcp-wrappers,
1141 [ --with-tcp-wrappers Enable tcpwrappers support],
1143 if test "x$withval" != "xno" ; then
1146 AC_MSG_CHECKING(for libwrap)
1150 int deny_severity = 0, allow_severity = 0;
1159 AC_MSG_ERROR([*** libwrap missing])
1166 # Check whether to enable MD5 passwords
1168 AC_ARG_WITH(md5-passwords,
1169 [ --with-md5-passwords Enable use of MD5 passwords],
1171 if test "x$withval" != "xno" ; then
1172 AC_DEFINE(HAVE_MD5_PASSWORDS)
1178 # Whether to disable shadow password support
1180 [ --without-shadow Disable shadow password support],
1182 if test "x$withval" = "xno" ; then
1183 AC_DEFINE(DISABLE_SHADOW)
1189 if test -z "$disable_shadow" ; then
1190 AC_MSG_CHECKING([if the systems has expire shadow information])
1193 #include <sys/types.h>
1196 ],[ sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; ],
1197 [ sp_expire_available=yes ], []
1200 if test "x$sp_expire_available" = "xyes" ; then
1202 AC_DEFINE(HAS_SHADOW_EXPIRE)
1208 # Use ip address instead of hostname in $DISPLAY
1209 if test ! -z "$IPADDR_IN_DISPLAY" ; then
1210 DISPLAY_HACK_MSG="yes"
1211 AC_DEFINE(IPADDR_IN_DISPLAY)
1213 DISPLAY_HACK_MSG="no"
1214 AC_ARG_WITH(ipaddr-display,
1215 [ --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY],
1217 if test "x$withval" != "xno" ; then
1218 AC_DEFINE(IPADDR_IN_DISPLAY)
1219 DISPLAY_HACK_MSG="yes"
1225 # Whether to mess with the default path
1226 SERVER_PATH_MSG="(default)"
1227 AC_ARG_WITH(default-path,
1228 [ --with-default-path=PATH Specify default \$PATH environment for server],
1230 if test "x$withval" != "xno" ; then
1231 AC_DEFINE_UNQUOTED(USER_PATH, "$withval")
1232 SERVER_PATH_MSG="$withval"
1237 # Whether to force IPv4 by default (needed on broken glibc Linux)
1239 AC_ARG_WITH(ipv4-default,
1240 [ --with-ipv4-default Use IPv4 by connections unless '-6' specified],
1242 if test "x$withval" != "xno" ; then
1243 AC_DEFINE(IPV4_DEFAULT)
1249 AC_MSG_CHECKING([if we need to convert IPv4 in IPv6-mapped addresses])
1250 IPV4_IN6_HACK_MSG="no"
1252 [ --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses],
1254 if test "x$withval" != "xno" ; then
1256 AC_DEFINE(IPV4_IN_IPV6)
1257 IPV4_IN6_HACK_MSG="yes"
1262 if test "x$inet6_default_4in6" = "xyes"; then
1263 AC_MSG_RESULT([yes (default)])
1264 AC_DEFINE(IPV4_IN_IPV6)
1265 IPV4_IN6_HACK_MSG="yes"
1267 AC_MSG_RESULT([no (default)])
1272 AC_MSG_CHECKING(whether to install ssh as suid root)
1273 AC_ARG_ENABLE(suid-ssh,
1274 [ --enable-suid-ssh Install ssh as suid root (default)
1275 --disable-suid-ssh Install ssh without suid bit],
1276 [ case "$enableval" in
1281 *) AC_MSG_RESULT(yes)
1291 # Where to place sshd.pid
1293 AC_ARG_WITH(pid-dir,
1294 [ --with-pid-dir=PATH Specify location of ssh.pid file],
1296 if test "x$withval" != "xno" ; then
1302 # make sure the directory exists
1303 if test ! -d $piddir ; then
1304 piddir=`eval echo ${sysconfdir}`
1306 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
1310 AC_DEFINE_UNQUOTED(PIDDIR, "$piddir")
1313 dnl allow user to disable some login recording features
1314 AC_ARG_ENABLE(lastlog,
1315 [ --disable-lastlog disable use of lastlog even if detected [no]],
1316 [ AC_DEFINE(DISABLE_LASTLOG) ]
1319 [ --disable-utmp disable use of utmp even if detected [no]],
1320 [ AC_DEFINE(DISABLE_UTMP) ]
1322 AC_ARG_ENABLE(utmpx,
1323 [ --disable-utmpx disable use of utmpx even if detected [no]],
1324 [ AC_DEFINE(DISABLE_UTMPX) ]
1327 [ --disable-wtmp disable use of wtmp even if detected [no]],
1328 [ AC_DEFINE(DISABLE_WTMP) ]
1330 AC_ARG_ENABLE(wtmpx,
1331 [ --disable-wtmpx disable use of wtmpx even if detected [no]],
1332 [ AC_DEFINE(DISABLE_WTMPX) ]
1334 AC_ARG_ENABLE(libutil,
1335 [ --disable-libutil disable use of libutil (login() etc.) [no]],
1336 [ AC_DEFINE(DISABLE_LOGIN) ]
1338 AC_ARG_ENABLE(pututline,
1339 [ --disable-pututline disable use of pututline() etc. ([uw]tmp) [no]],
1340 [ AC_DEFINE(DISABLE_PUTUTLINE) ]
1342 AC_ARG_ENABLE(pututxline,
1343 [ --disable-pututxline disable use of pututxline() etc. ([uw]tmpx) [no]],
1344 [ AC_DEFINE(DISABLE_PUTUTXLINE) ]
1346 AC_ARG_WITH(lastlog,
1347 [ --with-lastlog=FILE|DIR specify lastlog location [common locations]],
1348 [ conf_lastlog_location="$withval"; ],)
1350 dnl lastlog, [uw]tmpx? detection
1351 dnl NOTE: set the paths in the platform section to avoid the
1352 dnl need for command-line parameters
1353 dnl lastlog and [uw]tmp are subject to a file search if all else fails
1355 dnl lastlog detection
1356 dnl NOTE: the code itself will detect if lastlog is a directory
1357 AC_MSG_CHECKING([if your system defines LASTLOG_FILE])
1359 #include <sys/types.h>
1361 #ifdef HAVE_LASTLOG_H
1362 # include <lastlog.h>
1368 [ char *lastlog = LASTLOG_FILE; ],
1369 [ AC_MSG_RESULT(yes) ],
1372 AC_MSG_CHECKING([if your system defines _PATH_LASTLOG])
1374 #include <sys/types.h>
1376 #ifdef HAVE_LASTLOG_H
1377 # include <lastlog.h>
1383 [ char *lastlog = _PATH_LASTLOG; ],
1384 [ AC_MSG_RESULT(yes) ],
1387 system_lastlog_path=no
1392 if test -z "$conf_lastlog_location"; then
1393 if test x"$system_lastlog_path" = x"no" ; then
1394 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
1395 if (test -d "$f" || test -f "$f") ; then
1396 conf_lastlog_location=$f
1399 if test -z "$conf_lastlog_location"; then
1400 AC_MSG_WARN([** Cannot find lastlog **])
1401 dnl Don't define DISABLE_LASTLOG - that means we don't try wtmp/wtmpx
1406 if test -n "$conf_lastlog_location"; then
1407 AC_DEFINE_UNQUOTED(CONF_LASTLOG_FILE, "$conf_lastlog_location")
1411 AC_MSG_CHECKING([if your system defines UTMP_FILE])
1413 #include <sys/types.h>
1419 [ char *utmp = UTMP_FILE; ],
1420 [ AC_MSG_RESULT(yes) ],
1422 system_utmp_path=no ]
1424 if test -z "$conf_utmp_location"; then
1425 if test x"$system_utmp_path" = x"no" ; then
1426 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
1427 if test -f $f ; then
1428 conf_utmp_location=$f
1431 if test -z "$conf_utmp_location"; then
1432 AC_DEFINE(DISABLE_UTMP)
1436 if test -n "$conf_utmp_location"; then
1437 AC_DEFINE_UNQUOTED(CONF_UTMP_FILE, "$conf_utmp_location")
1441 AC_MSG_CHECKING([if your system defines WTMP_FILE])
1443 #include <sys/types.h>
1449 [ char *wtmp = WTMP_FILE; ],
1450 [ AC_MSG_RESULT(yes) ],
1452 system_wtmp_path=no ]
1454 if test -z "$conf_wtmp_location"; then
1455 if test x"$system_wtmp_path" = x"no" ; then
1456 for f in /usr/adm/wtmp /var/log/wtmp; do
1457 if test -f $f ; then
1458 conf_wtmp_location=$f
1461 if test -z "$conf_wtmp_location"; then
1462 AC_DEFINE(DISABLE_WTMP)
1466 if test -n "$conf_wtmp_location"; then
1467 AC_DEFINE_UNQUOTED(CONF_WTMP_FILE, "$conf_wtmp_location")
1471 dnl utmpx detection - I don't know any system so perverse as to require
1472 dnl utmpx, but not define UTMPX_FILE (ditto wtmpx.) No doubt it's out
1474 AC_MSG_CHECKING([if your system defines UTMPX_FILE])
1476 #include <sys/types.h>
1485 [ char *utmpx = UTMPX_FILE; ],
1486 [ AC_MSG_RESULT(yes) ],
1488 system_utmpx_path=no ]
1490 if test -z "$conf_utmpx_location"; then
1491 if test x"$system_utmpx_path" = x"no" ; then
1492 AC_DEFINE(DISABLE_UTMPX)
1495 AC_DEFINE_UNQUOTED(CONF_UTMPX_FILE, "$conf_utmpx_location")
1499 AC_MSG_CHECKING([if your system defines WTMPX_FILE])
1501 #include <sys/types.h>
1510 [ char *wtmpx = WTMPX_FILE; ],
1511 [ AC_MSG_RESULT(yes) ],
1513 system_wtmpx_path=no ]
1515 if test -z "$conf_wtmpx_location"; then
1516 if test x"$system_wtmpx_path" = x"no" ; then
1517 AC_DEFINE(DISABLE_WTMPX)
1520 AC_DEFINE_UNQUOTED(CONF_WTMPX_FILE, "$conf_wtmpx_location")
1524 # Change default command timeout for builtin PRNG
1526 AC_ARG_WITH(entropy-timeout,
1527 [ --with-entropy-timeout Specify entropy gathering command timeout (msec)],
1529 if test "x$withval" != "xno" ; then
1530 entropy_timeout=$withval
1534 AC_DEFINE_UNQUOTED(ENTROPY_TIMEOUT_MSEC, $entropy_timeout)
1537 if test ! -z "$blibpath" ; then
1538 LDFLAGS="$LDFLAGS -blibpath:$blibpath"
1539 AC_MSG_WARN([Please check and edit -blibpath in LDFLAGS in Makefile])
1544 AC_OUTPUT(Makefile ssh_prng_cmds)
1546 # Print summary of options
1548 if test x$MANTYPE = x'$(CATMAN)' ; then
1553 if test ! -z "$RANDOM_POOL" ; then
1554 RAND_MSG="Device ($RANDOM_POOL)"
1556 if test ! -z "$EGD_SOCKET" ; then
1557 RAND_MSG="EGD ($EGD_SOCKET)"
1559 RAND_MSG="Builtin (timeout $entropy_timeout)"
1564 # Someone please show me a better way :)
1565 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
1566 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
1567 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
1568 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
1569 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
1570 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
1571 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
1574 echo "OpenSSH configured has been configured with the following options."
1575 echo " User binaries: $B"
1576 echo " User binaries: $B"
1577 echo " System binaries: $C"
1578 echo " Configuration files: $D"
1579 echo " Askpass program: $E"
1580 echo " Manual pages: $F"
1581 echo " PID file: $G"
1582 echo " Random number collection: $RAND_MSG"
1583 echo " Manpage format: $MAN_MSG"
1584 echo " PAM support: ${PAM_MSG}"
1585 echo " KerberosIV support: $KRB4_MSG"
1586 echo " AFS support: $AFS_MSG"
1587 echo " S/KEY support: $SKEY_MSG"
1588 echo " TCP Wrappers support: $TCPW_MSG"
1589 echo " MD5 password support: $MD5_MSG"
1590 echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
1591 echo " Use IPv4 by default hack: $IPV4_HACK_MSG"
1592 echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
1596 echo " Host: ${host}"
1597 echo " Compiler: ${CC}"
1598 echo " Compiler flags: ${CFLAGS}"
1599 echo " Linker flags: ${LDFLAGS}"
1600 echo " Libraries: ${LIBS}"
1604 if test ! -z "$BUILTIN_RNG" ; then
1605 echo "WARNING: you are using the builtin random number collection service."
1606 echo "Please read WARNING.RNG and request that your OS vendor includes"
1607 echo "/dev/random in future versions of their OS."