Damien Miller | ab18c41 | 1999-11-11 10:40:23 +1100 | [diff] [blame] | 1 | AC_INIT(ssh.c) |
Damien Miller | 7f6ea02 | 1999-10-28 13:25:17 +1000 | [diff] [blame] | 2 | |
| 3 | AC_CONFIG_HEADER(config.h) |
Damien Miller | 856799b | 2000-03-15 21:18:10 +1100 | [diff] [blame] | 4 | AC_PROG_CC |
Damien Miller | 76112de | 1999-12-21 11:18:08 +1100 | [diff] [blame] | 5 | AC_CANONICAL_HOST |
Damien Miller | 7f6ea02 | 1999-10-28 13:25:17 +1000 | [diff] [blame] | 6 | |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 7 | # Checks for programs. |
Damien Miller | ab18c41 | 1999-11-11 10:40:23 +1100 | [diff] [blame] | 8 | AC_PROG_CPP |
Damien Miller | 7f6ea02 | 1999-10-28 13:25:17 +1000 | [diff] [blame] | 9 | AC_PROG_RANLIB |
Damien Miller | d8087f6 | 1999-11-25 12:31:26 +1100 | [diff] [blame] | 10 | AC_PROG_INSTALL |
Damien Miller | c7b38ce | 1999-11-09 10:28:04 +1100 | [diff] [blame] | 11 | AC_CHECK_PROG(AR, ar, ar) |
Damien Miller | e79334a | 1999-12-29 10:03:37 +1100 | [diff] [blame] | 12 | AC_PATH_PROG(PERL, perl) |
| 13 | AC_SUBST(PERL) |
Damien Miller | 8d1fd57 | 2000-05-17 21:34:07 +1000 | [diff] [blame] | 14 | AC_PATH_PROG(ENT, ent) |
| 15 | AC_SUBST(ENT) |
Damien Miller | 2e1b082 | 1999-12-25 10:11:29 +1100 | [diff] [blame] | 16 | |
Damien Miller | 166bd44 | 2000-03-16 10:48:25 +1100 | [diff] [blame] | 17 | if test -z "$LD" ; then |
| 18 | LD=$CC |
| 19 | fi |
| 20 | AC_SUBST(LD) |
| 21 | |
| 22 | # C Compiler features |
| 23 | AC_C_INLINE |
| 24 | if test "$GCC" = "yes"; then |
| 25 | CFLAGS="$CFLAGS -Wall" |
| 26 | fi |
| 27 | |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 28 | # Check for some target-specific stuff |
Damien Miller | 76112de | 1999-12-21 11:18:08 +1100 | [diff] [blame] | 29 | case "$host" in |
Damien Miller | 75b1d10 | 2000-01-07 14:01:41 +1100 | [diff] [blame] | 30 | *-*-aix*) |
| 31 | AFS_LIBS="-lld" |
Damien Miller | db81959 | 2000-03-14 13:44:01 +1100 | [diff] [blame] | 32 | CFLAGS="$CFLAGS -I/usr/local/include" |
| 33 | LDFLAGS="$LDFLAGS -L/usr/local/lib" |
Damien Miller | 29ea30d | 2000-03-17 10:54:15 +1100 | [diff] [blame] | 34 | if test "$LD" != "gcc" -a -z "$blibpath"; then |
| 35 | blibpath="/usr/lib:/lib:/usr/local/lib" |
| 36 | fi |
Damien Miller | d2c208a | 2000-05-17 22:00:02 +1000 | [diff] [blame] | 37 | AC_CHECK_FUNC(authenticate, [AC_DEFINE(WITH_AIXAUTHENTICATE)]) |
Damien Miller | eca71f8 | 2000-01-20 22:38:27 +1100 | [diff] [blame] | 38 | AC_DEFINE(BROKEN_GETADDRINFO) |
Damien Miller | 75b1d10 | 2000-01-07 14:01:41 +1100 | [diff] [blame] | 39 | ;; |
Damien Miller | 76112de | 1999-12-21 11:18:08 +1100 | [diff] [blame] | 40 | *-*-hpux10*) |
| 41 | if test -z "$GCC"; then |
Damien Miller | fda78d9 | 2000-05-20 15:33:44 +1000 | [diff] [blame^] | 42 | CFLAGS="$CFLAGS -Ae" |
Damien Miller | 76112de | 1999-12-21 11:18:08 +1100 | [diff] [blame] | 43 | fi |
| 44 | CFLAGS="$CFLAGS -D_HPUX_SOURCE" |
| 45 | AC_DEFINE(IPADDR_IN_DISPLAY) |
Damien Miller | 2e1b082 | 1999-12-25 10:11:29 +1100 | [diff] [blame] | 46 | AC_DEFINE(USE_UTMPX) |
Damien Miller | 76112de | 1999-12-21 11:18:08 +1100 | [diff] [blame] | 47 | AC_MSG_CHECKING(for HPUX trusted system password database) |
| 48 | if test -f /tcb/files/auth/system/default; then |
| 49 | AC_MSG_RESULT(yes) |
| 50 | AC_DEFINE(HAVE_HPUX_TRUSTED_SYSTEM_PW) |
| 51 | LIBS="$LIBS -lsec" |
Damien Miller | 105b7f0 | 2000-01-07 08:45:55 +1100 | [diff] [blame] | 52 | AC_MSG_WARN([This configuration is untested]) |
Damien Miller | 76112de | 1999-12-21 11:18:08 +1100 | [diff] [blame] | 53 | else |
| 54 | AC_MSG_RESULT(no) |
| 55 | AC_DEFINE(DISABLE_SHADOW) |
| 56 | fi |
Damien Miller | 670a4b8 | 2000-01-22 13:53:11 +1100 | [diff] [blame] | 57 | MANTYPE='$(CATMAN)' |
| 58 | mansubdir=cat |
Damien Miller | 76112de | 1999-12-21 11:18:08 +1100 | [diff] [blame] | 59 | ;; |
Damien Miller | 1bead33 | 2000-04-30 00:47:29 +1000 | [diff] [blame] | 60 | *-*-hpux11*) |
| 61 | if test -z "$GCC"; then |
| 62 | CFLAGS="$CFLAGS -Ae" |
| 63 | fi |
| 64 | CFLAGS="$CFLAGS -D_HPUX_SOURCE" |
Damien Miller | 1bead33 | 2000-04-30 00:47:29 +1000 | [diff] [blame] | 65 | AC_DEFINE(IPADDR_IN_DISPLAY) |
| 66 | AC_DEFINE(USE_UTMPX) |
| 67 | AC_MSG_CHECKING(for HPUX trusted system password database) |
| 68 | if test -f /tcb/files/auth/system/default; then |
| 69 | AC_MSG_RESULT(yes) |
| 70 | AC_DEFINE(HAVE_HPUX_TRUSTED_SYSTEM_PW) |
| 71 | LIBS="$LIBS -lsec" |
| 72 | AC_MSG_WARN([This configuration is untested]) |
| 73 | else |
| 74 | AC_MSG_RESULT(no) |
| 75 | AC_DEFINE(DISABLE_SHADOW) |
| 76 | fi |
| 77 | MANTYPE='$(CATMAN)' |
| 78 | mansubdir=cat |
| 79 | ;; |
Damien Miller | beb4ba5 | 1999-12-28 15:09:35 +1100 | [diff] [blame] | 80 | *-*-irix5*) |
Damien Miller | db81959 | 2000-03-14 13:44:01 +1100 | [diff] [blame] | 81 | CFLAGS="$CFLAGS -I/usr/local/include" |
| 82 | LDFLAGS="$LDFLAGS -L/usr/local/lib" |
Damien Miller | 0727893 | 2000-01-22 14:05:37 +1100 | [diff] [blame] | 83 | MANTYPE='$(CATMAN)' |
Damien Miller | 1808f38 | 2000-01-06 12:03:12 +1100 | [diff] [blame] | 84 | no_libsocket=1 |
| 85 | no_libnsl=1 |
| 86 | ;; |
| 87 | *-*-irix6*) |
Damien Miller | db81959 | 2000-03-14 13:44:01 +1100 | [diff] [blame] | 88 | CFLAGS="$CFLAGS -I/usr/local/include" |
| 89 | LDFLAGS="$LDFLAGS -L/usr/local/lib" |
Damien Miller | 0727893 | 2000-01-22 14:05:37 +1100 | [diff] [blame] | 90 | MANTYPE='$(CATMAN)' |
| 91 | AC_MSG_WARN([*** Irix 6.x is not tested, please report you experiences *** ]) |
Damien Miller | beb4ba5 | 1999-12-28 15:09:35 +1100 | [diff] [blame] | 92 | no_libsocket=1 |
| 93 | no_libnsl=1 |
| 94 | ;; |
Damien Miller | b29ea91 | 2000-01-15 14:12:03 +1100 | [diff] [blame] | 95 | *-*-linux*) |
| 96 | no_dev_ptmx=1 |
Damien Miller | 7bcb089 | 2000-03-11 20:45:40 +1100 | [diff] [blame] | 97 | AC_DEFINE(DONT_TRY_OTHER_AF) |
| 98 | inet6_default_4in6=yes |
Damien Miller | b29ea91 | 2000-01-15 14:12:03 +1100 | [diff] [blame] | 99 | ;; |
Damien Miller | ee1c0b3 | 2000-01-21 00:18:15 +1100 | [diff] [blame] | 100 | *-*-netbsd*) |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 101 | need_dash_r=1 |
Damien Miller | ee1c0b3 | 2000-01-21 00:18:15 +1100 | [diff] [blame] | 102 | ;; |
Damien Miller | 75b1d10 | 2000-01-07 14:01:41 +1100 | [diff] [blame] | 103 | *-*-solaris*) |
Damien Miller | db81959 | 2000-03-14 13:44:01 +1100 | [diff] [blame] | 104 | CFLAGS="$CFLAGS -I/usr/local/include" |
Damien Miller | 08c788a | 2000-03-16 07:52:29 +1100 | [diff] [blame] | 105 | LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib -L/usr/ucblib -R/usr/ucblib" |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 106 | need_dash_r=1 |
Damien Miller | 75b1d10 | 2000-01-07 14:01:41 +1100 | [diff] [blame] | 107 | AC_DEFINE(USE_UTMPX) |
| 108 | ;; |
Damien Miller | dfc83f4 | 2000-05-20 15:02:59 +1000 | [diff] [blame] | 109 | *-*-sunos4*) |
| 110 | CFLAGS="$CFLAGS -DSUNOS4" |
| 111 | AC_CHECK_FUNCS(getpwanam) |
| 112 | ;; |
Damien Miller | 75b1d10 | 2000-01-07 14:01:41 +1100 | [diff] [blame] | 113 | *-*-sysv*) |
Damien Miller | db81959 | 2000-03-14 13:44:01 +1100 | [diff] [blame] | 114 | CFLAGS="$CFLAGS -I/usr/local/include" |
| 115 | LDFLAGS="$LDFLAGS -L/usr/local/lib" |
Damien Miller | 0e1cf7c | 2000-01-26 12:15:30 +1100 | [diff] [blame] | 116 | AC_DEFINE(USE_UTMPX) |
| 117 | MANTYPE='$(CATMAN)' |
| 118 | mansubdir=cat |
Damien Miller | 75b1d10 | 2000-01-07 14:01:41 +1100 | [diff] [blame] | 119 | LIBS="$LIBS -lgen -lsocket" |
| 120 | ;; |
Damien Miller | 76112de | 1999-12-21 11:18:08 +1100 | [diff] [blame] | 121 | esac |
| 122 | |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 123 | # Checks for libraries. |
Damien Miller | ab18c41 | 1999-11-11 10:40:23 +1100 | [diff] [blame] | 124 | AC_CHECK_LIB(z, deflate, ,AC_MSG_ERROR([*** zlib missing - please install first ***])) |
| 125 | AC_CHECK_LIB(util, login, AC_DEFINE(HAVE_LIBUTIL_LOGIN) LIBS="$LIBS -lutil") |
Damien Miller | ab18c41 | 1999-11-11 10:40:23 +1100 | [diff] [blame] | 126 | |
Damien Miller | beb4ba5 | 1999-12-28 15:09:35 +1100 | [diff] [blame] | 127 | if test -z "$no_libsocket" ; then |
| 128 | AC_CHECK_LIB(nsl, yp_match, , ) |
| 129 | fi |
| 130 | if test -z "$no_libnsl" ; then |
| 131 | AC_CHECK_LIB(socket, main, , ) |
Damien Miller | 32b3cf2 | 1999-12-26 10:21:48 +1100 | [diff] [blame] | 132 | fi |
Damien Miller | ab18c41 | 1999-11-11 10:40:23 +1100 | [diff] [blame] | 133 | |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 134 | # Checks for header files. |
Damien Miller | fc0b11b | 2000-05-02 00:03:55 +1000 | [diff] [blame] | 135 | AC_CHECK_HEADERS(bstring.h endian.h lastlog.h login.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/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h stddef.h util.h utmp.h utmpx.h) |
Damien Miller | ab18c41 | 1999-11-11 10:40:23 +1100 | [diff] [blame] | 136 | |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 137 | # Checks for library functions. |
Damien Miller | 615f939 | 2000-05-17 22:53:33 +1000 | [diff] [blame] | 138 | AC_CHECK_FUNCS(arc4random b64_ntop bcopy bindresvport_af clock freeaddrinfo gai_strerror getaddrinfo getnameinfo getrusage innetgr md5_crypt memmove mkdtemp openpty rresvport_af setenv seteuid setlogin setproctitle setreuid snprintf strlcat strlcpy updwtmpx vsnprintf vhangup _getpty __b64_ntop) |
Damien Miller | cedfecc | 1999-11-15 14:36:53 +1100 | [diff] [blame] | 139 | |
Damien Miller | 04f8014 | 1999-11-19 15:32:34 +1100 | [diff] [blame] | 140 | AC_CHECK_FUNC(login, |
| 141 | [AC_DEFINE(HAVE_LOGIN)], |
| 142 | [AC_CHECK_LIB(bsd, login, [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_LOGIN)])] |
| 143 | ) |
| 144 | |
| 145 | AC_CHECK_FUNC(daemon, |
| 146 | [AC_DEFINE(HAVE_DAEMON)], |
| 147 | [AC_CHECK_LIB(bsd, daemon, [LIBS="$LIBS -lbsd"; AC_DEFINE(HAVE_DAEMON)])] |
| 148 | ) |
| 149 | |
Damien Miller | 9fb07e4 | 2000-03-05 16:22:59 +1100 | [diff] [blame] | 150 | AC_CHECK_FUNC(getpagesize, |
| 151 | [AC_DEFINE(HAVE_GETPAGESIZE)], |
| 152 | [AC_CHECK_LIB(ucb, getpagesize, [LIBS="$LIBS -lucb"; AC_DEFINE(HAVE_GETPAGESIZE)])] |
| 153 | ) |
| 154 | |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 155 | AC_ARG_WITH(pam, |
| 156 | [ --without-pam Disable PAM support ], |
| 157 | [ |
| 158 | if test "x$withval" = "xno" ; then |
| 159 | no_pam=1 |
| 160 | AC_DEFINE(DISABLE_PAM) |
| 161 | fi |
| 162 | ] |
| 163 | ) |
| 164 | if test -z "$no_pam" -a "x$ac_cv_header_security_pam_appl_h" = "xyes" ; then |
| 165 | AC_CHECK_LIB(dl, dlopen, , ) |
| 166 | LIBS="$LIBS -lpam" |
| 167 | |
Damien Miller | 0e65eed | 2000-05-17 22:16:05 +1000 | [diff] [blame] | 168 | AC_CHECK_FUNCS(pam_getenvlist) |
Damien Miller | 1bead33 | 2000-04-30 00:47:29 +1000 | [diff] [blame] | 169 | |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 170 | # Check PAM strerror arguments (old PAM) |
| 171 | AC_MSG_CHECKING([whether pam_strerror takes only one argument]) |
| 172 | AC_TRY_COMPILE( |
| 173 | [ |
Damien Miller | 8117111 | 2000-04-23 11:14:01 +1000 | [diff] [blame] | 174 | #include <stdlib.h> |
| 175 | #include <security/pam_appl.h> |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 176 | ], |
| 177 | [(void)pam_strerror((pam_handle_t *)NULL, -1);], |
| 178 | [AC_MSG_RESULT(no)], |
| 179 | [ |
| 180 | AC_DEFINE(HAVE_OLD_PAM) |
| 181 | AC_MSG_RESULT(yes) |
| 182 | ] |
| 183 | ) |
| 184 | fi |
| 185 | |
| 186 | # The big search for OpenSSL |
| 187 | AC_ARG_WITH(ssl-dir, |
| 188 | [ --with-ssl-dir=PATH Specify path to OpenSSL installation ], |
| 189 | [ |
| 190 | if test "x$withval" != "$xno" ; then |
| 191 | tryssldir=$withval |
| 192 | fi |
| 193 | ] |
| 194 | ) |
| 195 | |
| 196 | saved_LIBS="$LIBS" |
Damien Miller | a1ad480 | 2000-03-15 10:04:54 +1100 | [diff] [blame] | 197 | saved_LDFLAGS="$LDFLAGS" |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 198 | saved_CFLAGS="$CFLAGS" |
| 199 | if test "x$prefix" != "xNONE" ; then |
| 200 | tryssldir="$tryssldir $prefix" |
| 201 | fi |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 202 | AC_CACHE_CHECK([for OpenSSL directory], ac_cv_openssldir, [ |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 203 | |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 204 | for ssldir in "" $tryssldir /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do |
| 205 | if test ! -z "$ssldir" ; then |
| 206 | LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir" |
| 207 | CFLAGS="$saved_CFLAGS -I$ssldir/include" |
| 208 | if test ! -z "$need_dash_r" ; then |
| 209 | LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir" |
| 210 | fi |
Damien Miller | a1ad480 | 2000-03-15 10:04:54 +1100 | [diff] [blame] | 211 | else |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 212 | LDFLAGS="$saved_LDFLAGS" |
Damien Miller | b85dcad | 2000-03-11 11:37:00 +1100 | [diff] [blame] | 213 | fi |
| 214 | |
Damien Miller | 3b512e1 | 2000-05-17 23:29:18 +1000 | [diff] [blame] | 215 | LIBS="$saved_LIBS -lcrypto" |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 216 | |
Damien Miller | 3b512e1 | 2000-05-17 23:29:18 +1000 | [diff] [blame] | 217 | # Basic test to check for compatible version and correct linking |
| 218 | # *does not* test for RSA - that comes later. |
| 219 | AC_TRY_RUN( |
| 220 | [ |
Damien Miller | e59ce62 | 2000-05-01 20:54:17 +1000 | [diff] [blame] | 221 | #include <string.h> |
| 222 | #include <openssl/rand.h> |
Damien Miller | 8117111 | 2000-04-23 11:14:01 +1000 | [diff] [blame] | 223 | int main(void) |
| 224 | { |
Damien Miller | 3b512e1 | 2000-05-17 23:29:18 +1000 | [diff] [blame] | 225 | char a[2048]; |
| 226 | memset(a, 0, sizeof(a)); |
Damien Miller | 8117111 | 2000-04-23 11:14:01 +1000 | [diff] [blame] | 227 | RAND_add(a, sizeof(a), sizeof(a)); |
Damien Miller | 3b512e1 | 2000-05-17 23:29:18 +1000 | [diff] [blame] | 228 | return(RAND_status() <= 0); |
Damien Miller | 8117111 | 2000-04-23 11:14:01 +1000 | [diff] [blame] | 229 | } |
Damien Miller | 3b512e1 | 2000-05-17 23:29:18 +1000 | [diff] [blame] | 230 | ], |
| 231 | [ |
| 232 | found_crypto=1 |
| 233 | break; |
| 234 | ], [] |
| 235 | ) |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 236 | |
| 237 | if test ! -z "$found_crypto" ; then |
| 238 | break; |
| 239 | fi |
Damien Miller | b85dcad | 2000-03-11 11:37:00 +1100 | [diff] [blame] | 240 | done |
| 241 | |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 242 | if test -z "$found_crypto" ; then |
| 243 | AC_MSG_ERROR([Could not find working SSLeay / OpenSSL libraries, please install]) |
Damien Miller | b85dcad | 2000-03-11 11:37:00 +1100 | [diff] [blame] | 244 | fi |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 245 | if test -z "$ssldir" ; then |
| 246 | ssldir="(system)" |
| 247 | fi |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 248 | |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 249 | ac_cv_openssldir=$ssldir |
| 250 | ]) |
| 251 | |
| 252 | if test ! -z "$ac_cv_openssldir" -a ! "x$ac_cv_openssldir" = "x(system)" ; then |
| 253 | AC_DEFINE(HAVE_OPENSSL) |
| 254 | dnl Need to recover ssldir - test above runs in subshell |
| 255 | ssldir=$ac_cv_openssldir |
Damien Miller | a1ad480 | 2000-03-15 10:04:54 +1100 | [diff] [blame] | 256 | CFLAGS="$saved_CFLAGS -I$ssldir/include" |
| 257 | LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir" |
| 258 | if test ! -z "$need_dash_r" ; then |
| 259 | LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir" |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 260 | fi |
Damien Miller | 29ea30d | 2000-03-17 10:54:15 +1100 | [diff] [blame] | 261 | if test ! -z "$blibpath" ; then |
| 262 | blibpath="$blibpath:$ssldir:$ssldir/lib" |
| 263 | fi |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 264 | fi |
Damien Miller | 3b512e1 | 2000-05-17 23:29:18 +1000 | [diff] [blame] | 265 | LIBS="$saved_LIBS -lcrypto" |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 266 | |
Damien Miller | 3b512e1 | 2000-05-17 23:29:18 +1000 | [diff] [blame] | 267 | # Now test RSA support |
| 268 | saved_LIBS="$LIBS" |
| 269 | AC_MSG_CHECKING([for RSA support]) |
| 270 | for WANTS_RSAREF in "" 1 ; do |
| 271 | if test -z "$WANTS_RSAREF" ; then |
| 272 | LIBS="$saved_LIBS" |
| 273 | else |
| 274 | LIBS="$saved_LIBS -lRSAglue -lrsaref" |
| 275 | fi |
| 276 | AC_TRY_RUN([ |
| 277 | #include <string.h> |
| 278 | #include <openssl/rand.h> |
| 279 | #include <openssl/rsa.h> |
| 280 | #include <openssl/bn.h> |
| 281 | #include <openssl/sha.h> |
| 282 | int main(void) |
| 283 | { |
| 284 | int num; RSA *key; static unsigned char p_in[] = "blahblah"; |
| 285 | unsigned char c[256], p[256]; |
| 286 | memset(c, 0, sizeof(c)); RAND_add(c, sizeof(c), sizeof(c)); |
| 287 | if ((key=RSA_generate_key(512, 3, NULL, NULL))==NULL) return(1); |
| 288 | num = RSA_public_encrypt(sizeof(p_in) - 1, p_in, c, key, RSA_PKCS1_PADDING); |
| 289 | return(-1 == RSA_private_decrypt(num, c, p, key, RSA_PKCS1_PADDING)); |
| 290 | } |
| 291 | ], |
| 292 | [ |
| 293 | rsa_works=1 |
| 294 | break; |
| 295 | ], []) |
| 296 | done |
| 297 | |
| 298 | if test ! -z "$no_rsa" ; then |
| 299 | AC_MSG_RESULT(disabled) |
| 300 | else |
| 301 | if test -z "$rsa_works" ; then |
| 302 | AC_MSG_WARN([*** No RSA support found *** ]) |
| 303 | else |
| 304 | if test -z "$WANTS_RSAREF" ; then |
| 305 | AC_MSG_RESULT(yes) |
| 306 | else |
| 307 | AC_MSG_RESULT(using RSAref) |
| 308 | LIBS="$saved_LIBS -lcrypto -lRSAglue -lrsaref" |
| 309 | fi |
| 310 | fi |
| 311 | fi |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 312 | |
| 313 | # Checks for data types |
Damien Miller | e0f4574 | 2000-01-18 09:12:06 +1100 | [diff] [blame] | 314 | AC_CHECK_SIZEOF(char, 1) |
Damien Miller | c6398ef | 1999-11-20 12:18:40 +1100 | [diff] [blame] | 315 | AC_CHECK_SIZEOF(short int, 2) |
| 316 | AC_CHECK_SIZEOF(int, 4) |
| 317 | AC_CHECK_SIZEOF(long int, 4) |
| 318 | AC_CHECK_SIZEOF(long long int, 8) |
| 319 | |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 320 | # More checks for data types |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 321 | AC_CACHE_CHECK([for intXX_t types], ac_cv_have_intxx_t, [ |
| 322 | AC_TRY_COMPILE( |
| 323 | [ #include <sys/types.h> ], |
| 324 | [ int8_t a; int16_t b; int32_t c; a = b = c = 1;], |
| 325 | [ ac_cv_have_intxx_t="yes" ], |
| 326 | [ ac_cv_have_intxx_t="no" ] |
| 327 | ) |
| 328 | ]) |
| 329 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then |
| 330 | AC_DEFINE(HAVE_INTXX_T) |
| 331 | have_intxx_t=1 |
| 332 | fi |
| 333 | |
| 334 | AC_CACHE_CHECK([for u_intXX_t types], ac_cv_have_u_intxx_t, [ |
| 335 | AC_TRY_COMPILE( |
| 336 | [ #include <sys/types.h> ], |
| 337 | [ u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;], |
| 338 | [ ac_cv_have_u_intxx_t="yes" ], |
| 339 | [ ac_cv_have_u_intxx_t="no" ] |
| 340 | ) |
| 341 | ]) |
| 342 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then |
| 343 | AC_DEFINE(HAVE_U_INTXX_T) |
| 344 | have_u_intxx_t=1 |
| 345 | fi |
Damien Miller | c6398ef | 1999-11-20 12:18:40 +1100 | [diff] [blame] | 346 | |
Damien Miller | c6398ef | 1999-11-20 12:18:40 +1100 | [diff] [blame] | 347 | |
Damien Miller | eaf9994 | 2000-01-19 13:45:07 +1100 | [diff] [blame] | 348 | if test -z "$have_u_intxx_t" -o -z "$have_intxx_t" -a \ |
Damien Miller | b29ea91 | 2000-01-15 14:12:03 +1100 | [diff] [blame] | 349 | "x$ac_cv_header_sys_bitypes_h" = "xyes" |
| 350 | then |
| 351 | AC_MSG_CHECKING([for intXX_t and u_intXX_t types in sys/bitypes.h]) |
| 352 | AC_TRY_COMPILE( |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 353 | [ |
| 354 | #include <sys/bitypes.h> |
| 355 | ], |
Damien Miller | b29ea91 | 2000-01-15 14:12:03 +1100 | [diff] [blame] | 356 | [ |
Damien Miller | 70494d1 | 2000-04-03 15:57:06 +1000 | [diff] [blame] | 357 | int8_t a; int16_t b; int32_t c; |
| 358 | u_int8_t e; u_int16_t f; u_int32_t g; |
| 359 | a = b = c = e = f = g = 1; |
Damien Miller | b29ea91 | 2000-01-15 14:12:03 +1100 | [diff] [blame] | 360 | ], |
| 361 | [ |
| 362 | AC_DEFINE(HAVE_U_INTXX_T) |
| 363 | AC_DEFINE(HAVE_INTXX_T) |
| 364 | AC_MSG_RESULT(yes) |
| 365 | ], |
| 366 | [AC_MSG_RESULT(no)] |
| 367 | ) |
| 368 | fi |
| 369 | |
Damien Miller | d6121d2 | 2000-03-17 23:26:46 +1100 | [diff] [blame] | 370 | if test -z "$have_u_intxx_t" ; then |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 371 | AC_CACHE_CHECK([for uintXX_t types], ac_cv_have_uintxx_t, [ |
| 372 | AC_TRY_COMPILE( |
| 373 | [ |
| 374 | #include <sys/types.h> |
| 375 | ], |
| 376 | [ uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; ], |
| 377 | [ ac_cv_have_uintxx_t="yes" ], |
| 378 | [ ac_cv_have_uintxx_t="no" ] |
| 379 | ) |
| 380 | ]) |
| 381 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then |
| 382 | AC_DEFINE(HAVE_UINTXX_T) |
| 383 | fi |
Damien Miller | d6121d2 | 2000-03-17 23:26:46 +1100 | [diff] [blame] | 384 | fi |
Damien Miller | c6398ef | 1999-11-20 12:18:40 +1100 | [diff] [blame] | 385 | |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 386 | AC_CACHE_CHECK([for socklen_t], ac_cv_have_socklen_t, [ |
| 387 | AC_TRY_COMPILE( |
| 388 | [ |
Damien Miller | 8117111 | 2000-04-23 11:14:01 +1000 | [diff] [blame] | 389 | #include <sys/types.h> |
| 390 | #include <sys/socket.h> |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 391 | ], |
| 392 | [socklen_t foo; foo = 1235;], |
| 393 | [ ac_cv_have_socklen_t="yes" ], |
| 394 | [ ac_cv_have_socklen_t="no" ] |
| 395 | ) |
| 396 | ]) |
| 397 | if test "x$ac_cv_have_socklen_t" = "xyes" ; then |
| 398 | AC_DEFINE(HAVE_SOCKLEN_T) |
| 399 | fi |
Damien Miller | 74d0d4a | 1999-12-29 02:24:35 +1100 | [diff] [blame] | 400 | |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 401 | AC_CACHE_CHECK([for size_t], ac_cv_have_size_t, [ |
| 402 | AC_TRY_COMPILE( |
| 403 | [ |
| 404 | #include <sys/types.h> |
| 405 | ], |
| 406 | [ size_t foo; foo = 1235; ], |
| 407 | [ ac_cv_have_size_t="yes" ], |
| 408 | [ ac_cv_have_size_t="no" ] |
| 409 | ) |
| 410 | ]) |
| 411 | if test "x$ac_cv_have_size_t" = "xyes" ; then |
| 412 | AC_DEFINE(HAVE_SIZE_T) |
| 413 | fi |
Damien Miller | 9505851 | 1999-12-29 10:36:45 +1100 | [diff] [blame] | 414 | |
Damien Miller | 615f939 | 2000-05-17 22:53:33 +1000 | [diff] [blame] | 415 | AC_CACHE_CHECK([for ssize_t], ac_cv_have_ssize_t, [ |
| 416 | AC_TRY_COMPILE( |
| 417 | [ |
| 418 | #include <sys/types.h> |
| 419 | ], |
| 420 | [ ssize_t foo; foo = 1235; ], |
| 421 | [ ac_cv_have_ssize_t="yes" ], |
| 422 | [ ac_cv_have_ssize_t="no" ] |
| 423 | ) |
| 424 | ]) |
| 425 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then |
| 426 | AC_DEFINE(HAVE_SSIZE_T) |
| 427 | fi |
| 428 | |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 429 | |
| 430 | AC_CACHE_CHECK([for struct sockaddr_storage], ac_cv_have_struct_sockaddr_storage, [ |
| 431 | AC_TRY_COMPILE( |
| 432 | [ |
Damien Miller | 8117111 | 2000-04-23 11:14:01 +1000 | [diff] [blame] | 433 | #include <sys/types.h> |
| 434 | #include <sys/socket.h> |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 435 | ], |
| 436 | [ struct sockaddr_storage s; ], |
| 437 | [ ac_cv_have_struct_sockaddr_storage="yes" ], |
| 438 | [ ac_cv_have_struct_sockaddr_storage="no" ] |
| 439 | ) |
| 440 | ]) |
| 441 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then |
| 442 | AC_DEFINE(HAVE_STRUCT_SOCKADDR_STORAGE) |
| 443 | fi |
Damien Miller | 34132e5 | 2000-01-14 15:45:46 +1100 | [diff] [blame] | 444 | |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 445 | AC_CACHE_CHECK([for struct sockaddr_in6], ac_cv_have_struct_sockaddr_in6, [ |
| 446 | AC_TRY_COMPILE( |
| 447 | [ |
| 448 | #include <netinet/in.h> |
| 449 | ], |
| 450 | [ struct sockaddr_in6 s; s.sin6_family = 0; ], |
| 451 | [ ac_cv_have_struct_sockaddr_in6="yes" ], |
| 452 | [ ac_cv_have_struct_sockaddr_in6="no" ] |
| 453 | ) |
| 454 | ]) |
| 455 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then |
| 456 | AC_DEFINE(HAVE_STRUCT_SOCKADDR_IN6) |
| 457 | fi |
Damien Miller | 34132e5 | 2000-01-14 15:45:46 +1100 | [diff] [blame] | 458 | |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 459 | AC_CACHE_CHECK([for struct in6_addr], ac_cv_have_struct_in6_addr, [ |
| 460 | AC_TRY_COMPILE( |
| 461 | [ |
| 462 | #include <netinet/in.h> |
| 463 | ], |
| 464 | [ struct in6_addr s; s.s6_addr[0] = 0; ], |
| 465 | [ ac_cv_have_struct_in6_addr="yes" ], |
| 466 | [ ac_cv_have_struct_in6_addr="no" ] |
| 467 | ) |
| 468 | ]) |
| 469 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then |
| 470 | AC_DEFINE(HAVE_STRUCT_IN6_ADDR) |
| 471 | fi |
Damien Miller | 34132e5 | 2000-01-14 15:45:46 +1100 | [diff] [blame] | 472 | |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 473 | AC_CACHE_CHECK([for struct addrinfo], ac_cv_have_struct_addrinfo, [ |
| 474 | AC_TRY_COMPILE( |
| 475 | [ |
Damien Miller | 8117111 | 2000-04-23 11:14:01 +1000 | [diff] [blame] | 476 | #include <sys/types.h> |
| 477 | #include <sys/socket.h> |
| 478 | #include <netdb.h> |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 479 | ], |
| 480 | [ struct addrinfo s; s.ai_flags = AI_PASSIVE; ], |
| 481 | [ ac_cv_have_struct_addrinfo="yes" ], |
| 482 | [ ac_cv_have_struct_addrinfo="no" ] |
| 483 | ) |
| 484 | ]) |
| 485 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then |
| 486 | AC_DEFINE(HAVE_STRUCT_ADDRINFO) |
| 487 | fi |
| 488 | |
Damien Miller | 34132e5 | 2000-01-14 15:45:46 +1100 | [diff] [blame] | 489 | |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 490 | # Checks for structure members |
Damien Miller | 34132e5 | 2000-01-14 15:45:46 +1100 | [diff] [blame] | 491 | |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 492 | OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmp.h, HAVE_HOST_IN_UTMP) |
| 493 | OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmpx.h, HAVE_HOST_IN_UTMPX) |
| 494 | OSSH_CHECK_HEADER_FOR_FIELD(syslen, utmpx.h, HAVE_SYSLEN_IN_UTMPX) |
| 495 | OSSH_CHECK_HEADER_FOR_FIELD(ut_pid, utmp.h, HAVE_PID_IN_UTMP) |
| 496 | OSSH_CHECK_HEADER_FOR_FIELD(ut_type, utmp.h, HAVE_TYPE_IN_UTMP) |
Damien Miller | ad1bc5f | 2000-05-20 14:53:09 +1000 | [diff] [blame] | 497 | OSSH_CHECK_HEADER_FOR_FIELD(ut_type, utmpx.h, HAVE_TYPE_IN_UTMPX) |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 498 | OSSH_CHECK_HEADER_FOR_FIELD(ut_tv, utmp.h, HAVE_TV_IN_UTMP) |
| 499 | OSSH_CHECK_HEADER_FOR_FIELD(ut_id, utmp.h, HAVE_ID_IN_UTMP) |
| 500 | OSSH_CHECK_HEADER_FOR_FIELD(ut_addr, utmp.h, HAVE_ADDR_IN_UTMP) |
| 501 | OSSH_CHECK_HEADER_FOR_FIELD(ut_addr, utmpx.h, HAVE_ADDR_IN_UTMPX) |
| 502 | OSSH_CHECK_HEADER_FOR_FIELD(ut_addr_v6, utmp.h, HAVE_ADDR_V6_IN_UTMP) |
| 503 | OSSH_CHECK_HEADER_FOR_FIELD(ut_addr_v6, utmpx.h, HAVE_ADDR_V6_IN_UTMPX) |
| 504 | |
| 505 | |
| 506 | AC_CACHE_CHECK([for ss_family field in struct sockaddr_storage], |
| 507 | ac_cv_have_ss_family_in_struct_ss, [ |
| 508 | AC_TRY_COMPILE( |
| 509 | [ |
Damien Miller | 8117111 | 2000-04-23 11:14:01 +1000 | [diff] [blame] | 510 | #include <sys/types.h> |
| 511 | #include <sys/socket.h> |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 512 | ], |
| 513 | [ struct sockaddr_storage s; s.ss_family = 1; ], |
| 514 | [ ac_cv_have_ss_family_in_struct_ss="yes" ], |
| 515 | [ ac_cv_have_ss_family_in_struct_ss="no" ], |
| 516 | ) |
| 517 | ]) |
| 518 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then |
| 519 | AC_DEFINE(HAVE_SS_FAMILY_IN_SS) |
| 520 | fi |
| 521 | |
| 522 | |
| 523 | AC_CACHE_CHECK([for __ss_family field in struct sockaddr_storage], |
| 524 | ac_cv_have___ss_family_in_struct_ss, [ |
| 525 | AC_TRY_COMPILE( |
| 526 | [ |
Damien Miller | 8117111 | 2000-04-23 11:14:01 +1000 | [diff] [blame] | 527 | #include <sys/types.h> |
| 528 | #include <sys/socket.h> |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 529 | ], |
| 530 | [ struct sockaddr_storage s; s.__ss_family = 1; ], |
| 531 | [ ac_cv_have___ss_family_in_struct_ss="yes" ], |
| 532 | [ ac_cv_have___ss_family_in_struct_ss="no" ] |
| 533 | ) |
| 534 | ]) |
| 535 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then |
| 536 | AC_DEFINE(HAVE___SS_FAMILY_IN_SS) |
| 537 | fi |
Damien Miller | bf1c9b2 | 1999-12-09 10:16:54 +1100 | [diff] [blame] | 538 | |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 539 | |
| 540 | AC_CACHE_CHECK([if libc defines __progname], ac_cv_libc_defines___progname, [ |
| 541 | AC_TRY_LINK([], |
| 542 | [ extern char *__progname; printf("%s", __progname); ], |
| 543 | [ ac_cv_libc_defines___progname="yes" ], |
| 544 | [ ac_cv_libc_defines___progname="no" ] |
| 545 | ) |
| 546 | ]) |
| 547 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then |
| 548 | AC_DEFINE(HAVE___PROGNAME) |
| 549 | fi |
| 550 | |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 551 | |
| 552 | # Looking for programs, paths and files |
| 553 | AC_ARG_WITH(rsh, |
| 554 | [ --with-rsh=PATH Specify path to remote shell program ], |
| 555 | [ |
Damien Miller | b85dcad | 2000-03-11 11:37:00 +1100 | [diff] [blame] | 556 | if test "x$withval" != "$no" ; then |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 557 | AC_DEFINE_UNQUOTED(RSH_PATH, "$withval") |
| 558 | fi |
| 559 | ], |
| 560 | [ |
| 561 | AC_PATH_PROG(rsh_path, rsh) |
| 562 | ] |
| 563 | ) |
| 564 | |
| 565 | AC_ARG_WITH(xauth, |
| 566 | [ --with-xauth=PATH Specify path to xauth program ], |
| 567 | [ |
| 568 | if test "x$withval" != "$xno" ; then |
| 569 | AC_DEFINE_UNQUOTED(XAUTH_PATH, "$withval") |
| 570 | fi |
| 571 | ], |
| 572 | [ |
| 573 | AC_PATH_PROG(xauth_path, xauth) |
| 574 | if test ! -z "$xauth_path" -a -x "/usr/openwin/bin/xauth" ; then |
| 575 | xauth_path="/usr/openwin/bin/xauth" |
| 576 | fi |
| 577 | ] |
| 578 | ) |
| 579 | |
| 580 | if test ! -z "$xauth_path" ; then |
| 581 | AC_DEFINE_UNQUOTED(XAUTH_PATH, "$xauth_path") |
| 582 | fi |
| 583 | if test ! -z "$rsh_path" ; then |
| 584 | AC_DEFINE_UNQUOTED(RSH_PATH, "$rsh_path") |
| 585 | fi |
| 586 | |
| 587 | # Check for mail directory (last resort if we cannot get it from headers) |
| 588 | if test ! -z "$MAIL" ; then |
| 589 | maildir=`dirname $MAIL` |
| 590 | AC_DEFINE_UNQUOTED(MAIL_DIRECTORY, "$maildir") |
| 591 | fi |
| 592 | |
| 593 | # Look for lastlog location |
Damien Miller | 76112de | 1999-12-21 11:18:08 +1100 | [diff] [blame] | 594 | AC_ARG_WITH(lastlog, |
Damien Miller | 5a3e683 | 1999-12-27 09:48:56 +1100 | [diff] [blame] | 595 | [ --with-lastlog=FILE Location of lastlog file], |
Damien Miller | 76112de | 1999-12-21 11:18:08 +1100 | [diff] [blame] | 596 | [ |
| 597 | if test "x$withval" = "xno" ; then |
| 598 | AC_DEFINE(DISABLE_LASTLOG) |
| 599 | else |
| 600 | AC_DEFINE_UNQUOTED(LASTLOG_LOCATION, "$withval") |
| 601 | fi |
| 602 | ], |
| 603 | [ |
| 604 | AC_MSG_CHECKING([location of lastlog file]) |
Damien Miller | 27f4c78 | 2000-01-27 18:22:13 +1100 | [diff] [blame] | 605 | for lastlog in /var/log/lastlog /var/adm/lastlog /usr/adm/lastlog /etc/security/lastlog ; do |
Damien Miller | 76112de | 1999-12-21 11:18:08 +1100 | [diff] [blame] | 606 | if test -f $lastlog ; then |
| 607 | gotlastlog="file" |
| 608 | break |
| 609 | fi |
| 610 | if test -d $lastlog ; then |
| 611 | gotlastlog="dir" |
| 612 | break |
| 613 | fi |
| 614 | done |
| 615 | if test -z "$gotlastlog" ; then |
Damien Miller | beb4ba5 | 1999-12-28 15:09:35 +1100 | [diff] [blame] | 616 | AC_MSG_RESULT(not found) |
Damien Miller | 76112de | 1999-12-21 11:18:08 +1100 | [diff] [blame] | 617 | nolastlog=1 |
| 618 | else |
| 619 | if test "x$gotlastlog" = "xdir" ; then |
Damien Miller | beb4ba5 | 1999-12-28 15:09:35 +1100 | [diff] [blame] | 620 | AC_MSG_RESULT(${lastlog}/) |
Damien Miller | 76112de | 1999-12-21 11:18:08 +1100 | [diff] [blame] | 621 | AC_DEFINE(LASTLOG_IS_DIR) |
Damien Miller | beb4ba5 | 1999-12-28 15:09:35 +1100 | [diff] [blame] | 622 | else |
| 623 | AC_MSG_RESULT($lastlog) |
| 624 | AC_DEFINE_UNQUOTED(LASTLOG_LOCATION, "$lastlog") |
Damien Miller | 76112de | 1999-12-21 11:18:08 +1100 | [diff] [blame] | 625 | fi |
Damien Miller | 76112de | 1999-12-21 11:18:08 +1100 | [diff] [blame] | 626 | fi |
| 627 | ] |
| 628 | ) |
| 629 | |
| 630 | if test ! -z "$nolastlog" ; then |
| 631 | AC_MSG_WARN([*** Disabling lastlog support *** ]) |
| 632 | AC_DEFINE(DISABLE_LASTLOG) |
| 633 | fi |
Damien Miller | 3f90587 | 1999-11-15 17:10:57 +1100 | [diff] [blame] | 634 | |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 635 | if test -z "$no_dev_ptmx" ; then |
Damien Miller | 204ad07 | 2000-03-02 23:56:12 +1100 | [diff] [blame] | 636 | AC_CHECK_FILE("/dev/ptmx", |
| 637 | [ |
| 638 | AC_DEFINE_UNQUOTED(HAVE_DEV_PTMX) |
| 639 | have_dev_ptmx=1 |
| 640 | ] |
| 641 | ) |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 642 | fi |
Damien Miller | 204ad07 | 2000-03-02 23:56:12 +1100 | [diff] [blame] | 643 | AC_CHECK_FILE("/dev/ptc", |
| 644 | [ |
| 645 | AC_DEFINE_UNQUOTED(HAVE_DEV_PTS_AND_PTC) |
| 646 | have_dev_ptc=1 |
| 647 | ] |
| 648 | ) |
| 649 | |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 650 | # Options from here on. Some of these are preset by platform above |
| 651 | |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 652 | # Check for user-specified random device, otherwise check /dev/urandom |
| 653 | AC_ARG_WITH(random, |
| 654 | [ --with-random=FILE read randomness from FILE (default=/dev/urandom)], |
| 655 | [ |
Damien Miller | 040f383 | 2000-04-03 14:50:43 +1000 | [diff] [blame] | 656 | if test "x$withval" != "xno" ; then |
| 657 | RANDOM_POOL="$withval"; |
| 658 | AC_DEFINE_UNQUOTED(RANDOM_POOL, "$RANDOM_POOL") |
| 659 | fi |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 660 | ], |
| 661 | [ |
| 662 | # Check for random device |
| 663 | AC_CHECK_FILE("/dev/urandom", |
| 664 | [ |
| 665 | RANDOM_POOL="/dev/urandom"; |
| 666 | AC_SUBST(RANDOM_POOL) |
| 667 | AC_DEFINE_UNQUOTED(RANDOM_POOL, "$RANDOM_POOL") |
| 668 | ] |
| 669 | ) |
| 670 | ] |
| 671 | ) |
| 672 | |
| 673 | # Check for EGD pool file |
| 674 | AC_ARG_WITH(egd-pool, |
| 675 | [ --with-egd-pool=FILE read randomness from EGD pool FILE (default none)], |
| 676 | [ |
Damien Miller | 040f383 | 2000-04-03 14:50:43 +1000 | [diff] [blame] | 677 | if test "x$withval" != "xno" ; then |
| 678 | EGD_SOCKET="$withval"; |
| 679 | AC_DEFINE_UNQUOTED(EGD_SOCKET, "$EGD_SOCKET") |
| 680 | fi |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 681 | ] |
| 682 | ) |
| 683 | |
Damien Miller | 0437b33 | 2000-05-02 09:56:41 +1000 | [diff] [blame] | 684 | # detect pathnames for entropy gathering commands, if we need them |
| 685 | INSTALL_SSH_PRNG_CMDS="" |
| 686 | rm -f prng_commands |
Damien Miller | 11e37f6 | 2000-04-08 18:23:30 +1000 | [diff] [blame] | 687 | if test -z "$RANDOM_POOL" -a -z "$EGD_SOCKET" ; then |
| 688 | # Use these commands to collect entropy |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 689 | OSSH_PATH_ENTROPY_PROG(PROG_LS, ls) |
| 690 | OSSH_PATH_ENTROPY_PROG(PROG_NETSTAT, netstat) |
| 691 | OSSH_PATH_ENTROPY_PROG(PROG_ARP, arp) |
| 692 | OSSH_PATH_ENTROPY_PROG(PROG_IFCONFIG, ifconfig) |
| 693 | OSSH_PATH_ENTROPY_PROG(PROG_PS, ps) |
| 694 | OSSH_PATH_ENTROPY_PROG(PROG_W, w) |
| 695 | OSSH_PATH_ENTROPY_PROG(PROG_WHO, who) |
| 696 | OSSH_PATH_ENTROPY_PROG(PROG_LAST, last) |
| 697 | OSSH_PATH_ENTROPY_PROG(PROG_LASTLOG, lastlog) |
| 698 | OSSH_PATH_ENTROPY_PROG(PROG_DF, df) |
| 699 | OSSH_PATH_ENTROPY_PROG(PROG_VMSTAT, vmstat) |
| 700 | OSSH_PATH_ENTROPY_PROG(PROG_UPTIME, uptime) |
| 701 | OSSH_PATH_ENTROPY_PROG(PROG_IPCS, ipcs) |
| 702 | OSSH_PATH_ENTROPY_PROG(PROG_TAIL, tail) |
| 703 | OSSH_PATH_ENTROPY_PROG(PROG_LS, ls) |
Damien Miller | 0437b33 | 2000-05-02 09:56:41 +1000 | [diff] [blame] | 704 | |
| 705 | INSTALL_SSH_PRNG_CMDS="yes" |
Damien Miller | 11e37f6 | 2000-04-08 18:23:30 +1000 | [diff] [blame] | 706 | fi |
Damien Miller | 0437b33 | 2000-05-02 09:56:41 +1000 | [diff] [blame] | 707 | AC_SUBST(INSTALL_SSH_PRNG_CMDS) |
| 708 | |
Damien Miller | 11e37f6 | 2000-04-08 18:23:30 +1000 | [diff] [blame] | 709 | |
Damien Miller | 670a4b8 | 2000-01-22 13:53:11 +1100 | [diff] [blame] | 710 | AC_ARG_WITH(catman, |
| 711 | [ --with-catman=man|cat Install preformatted manpages[no]], |
| 712 | [ |
| 713 | MANTYPE='$(CATMAN)' |
| 714 | if test x"$withval" != x"yes" ; then |
| 715 | mansubdir=$withval |
| 716 | else |
| 717 | mansubdir=cat |
| 718 | fi |
| 719 | ], [ |
| 720 | if test -z "$MANTYPE" ; then |
| 721 | MANTYPE='$(TROFFMAN)' |
| 722 | mansubdir=man |
| 723 | fi |
| 724 | ] |
| 725 | ) |
| 726 | AC_SUBST(MANTYPE) |
| 727 | AC_SUBST(mansubdir) |
Damien Miller | 8bdeee2 | 1999-12-30 15:50:54 +1100 | [diff] [blame] | 728 | |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 729 | # Check whether user wants Kerberos support |
Damien Miller | 8029775 | 1999-11-19 13:03:25 +1100 | [diff] [blame] | 730 | AC_ARG_WITH(kerberos4, |
Damien Miller | 105b7f0 | 2000-01-07 08:45:55 +1100 | [diff] [blame] | 731 | [ --with-kerberos4=PATH Enable Kerberos 4 support], |
Damien Miller | 8029775 | 1999-11-19 13:03:25 +1100 | [diff] [blame] | 732 | [ |
Damien Miller | b85dcad | 2000-03-11 11:37:00 +1100 | [diff] [blame] | 733 | if test "x$withval" != "xno" ; then |
Damien Miller | 105b7f0 | 2000-01-07 08:45:55 +1100 | [diff] [blame] | 734 | |
| 735 | if test "x$withval" != "$xyes" ; then |
| 736 | CFLAGS="$CFLAGS -I${withval}/include" |
| 737 | LDFLAGS="$LDFLAGS -L${withval}/lib" |
Damien Miller | 29ea30d | 2000-03-17 10:54:15 +1100 | [diff] [blame] | 738 | if test ! -z "$need_dash_r" ; then |
| 739 | LDFLAGS="$LDFLAGS -R${withval}/lib" |
| 740 | fi |
| 741 | if test ! -z "$blibpath" ; then |
| 742 | blibpath="$blibpath:${withval}/lib" |
| 743 | fi |
Damien Miller | 105b7f0 | 2000-01-07 08:45:55 +1100 | [diff] [blame] | 744 | else |
| 745 | if test -d /usr/include/kerberosIV ; then |
| 746 | CFLAGS="$CFLAGS -I/usr/include/kerberosIV" |
| 747 | fi |
| 748 | fi |
| 749 | |
| 750 | AC_CHECK_HEADERS(krb.h) |
| 751 | AC_CHECK_LIB(krb, main) |
| 752 | if test "$ac_cv_header_krb_h" != yes; then |
| 753 | AC_MSG_WARN([Cannot find krb.h, build may fail]) |
| 754 | fi |
| 755 | if test "$ac_cv_lib_krb_main" != yes; then |
| 756 | AC_MSG_WARN([Cannot find libkrb, build may fail]) |
| 757 | fi |
| 758 | |
Damien Miller | c85f9b4 | 2000-01-29 10:20:21 +1100 | [diff] [blame] | 759 | KLIBS="-lkrb -ldes" |
Damien Miller | 105b7f0 | 2000-01-07 08:45:55 +1100 | [diff] [blame] | 760 | AC_CHECK_LIB(resolv, dn_expand, , ) |
| 761 | KRB4=yes |
Damien Miller | 8bdeee2 | 1999-12-30 15:50:54 +1100 | [diff] [blame] | 762 | AC_DEFINE(KRB4) |
Damien Miller | 8bdeee2 | 1999-12-30 15:50:54 +1100 | [diff] [blame] | 763 | fi |
Damien Miller | 8029775 | 1999-11-19 13:03:25 +1100 | [diff] [blame] | 764 | ] |
| 765 | ) |
| 766 | |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 767 | # Check whether user wants AFS support |
Damien Miller | c6398ef | 1999-11-20 12:18:40 +1100 | [diff] [blame] | 768 | AC_ARG_WITH(afs, |
Damien Miller | 105b7f0 | 2000-01-07 08:45:55 +1100 | [diff] [blame] | 769 | [ --with-afs=PATH Enable AFS support], |
Damien Miller | 8029775 | 1999-11-19 13:03:25 +1100 | [diff] [blame] | 770 | [ |
Damien Miller | b85dcad | 2000-03-11 11:37:00 +1100 | [diff] [blame] | 771 | if test "x$withval" != "xno" ; then |
Damien Miller | 105b7f0 | 2000-01-07 08:45:55 +1100 | [diff] [blame] | 772 | |
| 773 | if test "x$withval" != "$xyes" ; then |
| 774 | CFLAGS="$CFLAGS -I${withval}/include" |
| 775 | LFLAGS="$LFLAGS -L${withval}/lib" |
| 776 | fi |
| 777 | |
| 778 | if test -z "$KRB4" ; then |
| 779 | AC_MSG_WARN([AFS requires Kerberos IV support, build may fail]) |
| 780 | fi |
| 781 | |
Damien Miller | 8bdeee2 | 1999-12-30 15:50:54 +1100 | [diff] [blame] | 782 | LIBS="$LIBS -lkafs" |
Damien Miller | 105b7f0 | 2000-01-07 08:45:55 +1100 | [diff] [blame] | 783 | if test ! -z "$AFS_LIBS" ; then |
| 784 | LIBS="$LIBS $AFS_LIBS" |
| 785 | fi |
| 786 | AC_DEFINE(AFS) |
Damien Miller | 8bdeee2 | 1999-12-30 15:50:54 +1100 | [diff] [blame] | 787 | fi |
Damien Miller | 8029775 | 1999-11-19 13:03:25 +1100 | [diff] [blame] | 788 | ] |
| 789 | ) |
Damien Miller | c85f9b4 | 2000-01-29 10:20:21 +1100 | [diff] [blame] | 790 | LIBS="$LIBS $KLIBS" |
Damien Miller | 8029775 | 1999-11-19 13:03:25 +1100 | [diff] [blame] | 791 | |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 792 | # Check whether user wants S/Key support |
Damien Miller | 8029775 | 1999-11-19 13:03:25 +1100 | [diff] [blame] | 793 | AC_ARG_WITH(skey, |
| 794 | [ --with-skey Enable S/Key support], |
| 795 | [ |
Damien Miller | b85dcad | 2000-03-11 11:37:00 +1100 | [diff] [blame] | 796 | if test "x$withval" != "xno" ; then |
Damien Miller | 8bdeee2 | 1999-12-30 15:50:54 +1100 | [diff] [blame] | 797 | AC_DEFINE(SKEY) |
| 798 | LIBS="$LIBS -lskey" |
| 799 | fi |
Damien Miller | 8029775 | 1999-11-19 13:03:25 +1100 | [diff] [blame] | 800 | ] |
| 801 | ) |
| 802 | |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 803 | # Check whether user wants TCP wrappers support |
Damien Miller | f7c0f82 | 1999-11-22 22:31:49 +1100 | [diff] [blame] | 804 | AC_ARG_WITH(tcp-wrappers, |
Damien Miller | 8029775 | 1999-11-19 13:03:25 +1100 | [diff] [blame] | 805 | [ --with-tcp-wrappers Enable tcpwrappers support], |
| 806 | [ |
Damien Miller | b85dcad | 2000-03-11 11:37:00 +1100 | [diff] [blame] | 807 | if test "x$withval" != "xno" ; then |
Damien Miller | 65165f8 | 2000-03-05 17:02:45 +1100 | [diff] [blame] | 808 | saved_LIBS="$LIBS" |
Damien Miller | 105b7f0 | 2000-01-07 08:45:55 +1100 | [diff] [blame] | 809 | LIBS="$LIBS -lwrap" |
Damien Miller | 65165f8 | 2000-03-05 17:02:45 +1100 | [diff] [blame] | 810 | AC_MSG_CHECKING(for libwrap) |
| 811 | AC_TRY_LINK( |
| 812 | [ |
Damien Miller | 8117111 | 2000-04-23 11:14:01 +1000 | [diff] [blame] | 813 | #include <tcpd.h> |
Damien Miller | 65165f8 | 2000-03-05 17:02:45 +1100 | [diff] [blame] | 814 | int deny_severity = 0, allow_severity = 0; |
| 815 | ], |
| 816 | [hosts_access(0);], |
| 817 | [ |
| 818 | AC_MSG_RESULT(yes) |
| 819 | AC_DEFINE(LIBWRAP) |
| 820 | ], |
| 821 | [ |
| 822 | AC_MSG_RESULT(no) |
| 823 | AC_MSG_WARN([*** libwrap missing - tcpwrapper support disabled ***]) |
| 824 | LIBS="$saved_LIBS" |
| 825 | ] |
| 826 | ) |
Damien Miller | 8bdeee2 | 1999-12-30 15:50:54 +1100 | [diff] [blame] | 827 | fi |
Damien Miller | 8029775 | 1999-11-19 13:03:25 +1100 | [diff] [blame] | 828 | ] |
| 829 | ) |
| 830 | |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 831 | # Check whether to enable MD5 passwords |
Damien Miller | f7c0f82 | 1999-11-22 22:31:49 +1100 | [diff] [blame] | 832 | AC_ARG_WITH(md5-passwords, |
Damien Miller | dd1c7ba | 1999-11-19 15:53:20 +1100 | [diff] [blame] | 833 | [ --with-md5-passwords Enable use of MD5 passwords], |
Damien Miller | 8bdeee2 | 1999-12-30 15:50:54 +1100 | [diff] [blame] | 834 | [ |
Damien Miller | b85dcad | 2000-03-11 11:37:00 +1100 | [diff] [blame] | 835 | if test "x$withval" != "xno" ; then |
Damien Miller | 8bdeee2 | 1999-12-30 15:50:54 +1100 | [diff] [blame] | 836 | AC_DEFINE(HAVE_MD5_PASSWORDS) |
| 837 | fi |
| 838 | ] |
Damien Miller | dd1c7ba | 1999-11-19 15:53:20 +1100 | [diff] [blame] | 839 | ) |
| 840 | |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 841 | # Check whether to enable utmpx support |
Damien Miller | 368cf64 | 1999-12-21 09:51:36 +1100 | [diff] [blame] | 842 | AC_ARG_WITH(utmpx, |
| 843 | [ --with-utmpx Enable utmpx support], |
Damien Miller | 76112de | 1999-12-21 11:18:08 +1100 | [diff] [blame] | 844 | [ |
| 845 | if test "x$withval" != "xno" ; then |
| 846 | AC_DEFINE(USE_UTMPX) |
| 847 | fi |
| 848 | ] |
Damien Miller | 368cf64 | 1999-12-21 09:51:36 +1100 | [diff] [blame] | 849 | ) |
| 850 | |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 851 | # Whether to disable shadow password support |
Damien Miller | 76112de | 1999-12-21 11:18:08 +1100 | [diff] [blame] | 852 | AC_ARG_WITH(shadow, |
| 853 | [ --without-shadow Disable shadow password support], |
| 854 | [ |
| 855 | if test "x$withval" = "xno" ; then |
| 856 | AC_DEFINE(DISABLE_SHADOW) |
| 857 | fi |
| 858 | ] |
| 859 | ) |
| 860 | |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 861 | # Use ip address instead of hostname in $DISPLAY |
Damien Miller | 76112de | 1999-12-21 11:18:08 +1100 | [diff] [blame] | 862 | AC_ARG_WITH(ipaddr-display, |
| 863 | [ --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY], |
| 864 | [ |
Damien Miller | 6640995 | 2000-01-17 21:40:06 +1100 | [diff] [blame] | 865 | if test "x$withval" = "xno" ; then |
Damien Miller | 76112de | 1999-12-21 11:18:08 +1100 | [diff] [blame] | 866 | AC_DEFINE(IPADDR_IN_DISPLAY) |
| 867 | fi |
| 868 | ] |
| 869 | ) |
| 870 | |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 871 | # Whether to mess with the default path |
Damien Miller | e7f626c | 1999-12-31 09:49:44 +1100 | [diff] [blame] | 872 | AC_ARG_WITH(default-path, |
Damien Miller | 5a3e683 | 1999-12-27 09:48:56 +1100 | [diff] [blame] | 873 | [ --with-default-path=PATH Specify default \$PATH environment for server], |
| 874 | [ |
| 875 | if test "x$withval" != "xno" ; then |
Damien Miller | 9550a76 | 1999-12-29 02:32:22 +1100 | [diff] [blame] | 876 | AC_DEFINE_UNQUOTED(USER_PATH, "$withval") |
Damien Miller | 5a3e683 | 1999-12-27 09:48:56 +1100 | [diff] [blame] | 877 | fi |
| 878 | ] |
| 879 | ) |
| 880 | |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 881 | # Whether to force IPv4 by default (needed on broken glibc Linux) |
Damien Miller | 7d80e34 | 2000-01-19 14:36:49 +1100 | [diff] [blame] | 882 | AC_ARG_WITH(ipv4-default, |
| 883 | [ --with-ipv4-default Use IPv4 by connections unless '-6' specified], |
| 884 | [ |
| 885 | if test "x$withval" != "xno" ; then |
| 886 | AC_DEFINE(IPV4_DEFAULT) |
| 887 | fi |
| 888 | ] |
| 889 | ) |
| 890 | |
Damien Miller | 61e50f1 | 2000-05-08 20:49:37 +1000 | [diff] [blame] | 891 | AC_MSG_CHECKING([if we need to convert IPv4 in IPv6-mapped addresses]) |
Damien Miller | 7bcb089 | 2000-03-11 20:45:40 +1100 | [diff] [blame] | 892 | AC_ARG_WITH(4in6, |
| 893 | [ --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses], |
| 894 | [ |
| 895 | if test "x$withval" != "xno" ; then |
| 896 | AC_MSG_RESULT(yes) |
| 897 | AC_DEFINE(IPV4_IN_IPV6) |
| 898 | else |
| 899 | AC_MSG_RESULT(no) |
| 900 | fi |
| 901 | ],[ |
| 902 | if test "x$inet6_default_4in6" = "xyes"; then |
| 903 | AC_MSG_RESULT([yes (default)]) |
| 904 | AC_DEFINE(IPV4_IN_IPV6) |
| 905 | else |
| 906 | AC_MSG_RESULT([no (default)]) |
| 907 | fi |
| 908 | ] |
| 909 | ) |
| 910 | |
Damien Miller | a22ba01 | 2000-03-02 23:09:20 +1100 | [diff] [blame] | 911 | # Where to place sshd.pid |
Damien Miller | b13c73e | 2000-01-17 22:02:17 +1100 | [diff] [blame] | 912 | piddir=/var/run |
Damien Miller | 5eed6a2 | 2000-01-16 12:05:18 +1100 | [diff] [blame] | 913 | AC_ARG_WITH(pid-dir, |
| 914 | [ --with-pid-dir=PATH Specify location of ssh.pid file], |
| 915 | [ |
| 916 | if test "x$withval" != "xno" ; then |
Damien Miller | b13c73e | 2000-01-17 22:02:17 +1100 | [diff] [blame] | 917 | piddir=$withval |
Damien Miller | 5eed6a2 | 2000-01-16 12:05:18 +1100 | [diff] [blame] | 918 | fi |
| 919 | ] |
| 920 | ) |
Damien Miller | 4018c19 | 2000-04-30 09:30:44 +1000 | [diff] [blame] | 921 | |
Damien Miller | dbd250f | 2000-01-18 08:57:14 +1100 | [diff] [blame] | 922 | AC_DEFINE_UNQUOTED(PIDDIR, "$piddir") |
Damien Miller | b13c73e | 2000-01-17 22:02:17 +1100 | [diff] [blame] | 923 | AC_SUBST(piddir) |
Damien Miller | 5eed6a2 | 2000-01-16 12:05:18 +1100 | [diff] [blame] | 924 | |
Damien Miller | 4018c19 | 2000-04-30 09:30:44 +1000 | [diff] [blame] | 925 | |
| 926 | # Change default command timeout for builtin PRNG |
| 927 | entropy_timeout=100 |
| 928 | AC_ARG_WITH(entropy-timeout, |
| 929 | [ --with-entropy-timeout Specify entropy gathering command timeout (msec)], |
| 930 | [ |
| 931 | if test "x$withval" != "xno" ; then |
| 932 | entropy_timeout=$withval |
| 933 | fi |
| 934 | ] |
| 935 | ) |
| 936 | AC_DEFINE_UNQUOTED(ENTROPY_TIMEOUT_MSEC, $entropy_timeout) |
| 937 | |
| 938 | |
Damien Miller | 29ea30d | 2000-03-17 10:54:15 +1100 | [diff] [blame] | 939 | if test ! -z "$blibpath" ; then |
| 940 | LDFLAGS="$LDFLAGS -blibpath:$blibpath" |
| 941 | AC_MSG_WARN([Please check and edit -blibpath in LDFLAGS in Makefile]) |
| 942 | fi |
| 943 | |
Damien Miller | 0437b33 | 2000-05-02 09:56:41 +1000 | [diff] [blame] | 944 | AC_OUTPUT(Makefile ssh_prng_cmds) |
| 945 | |
| 946 | |