Mercurial > dropbear
comparison configure.in @ 57:3b2a5a1c4347 authpam
svr-authpam code merged and works. needs tidying a log
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 08 Aug 2004 16:57:37 +0000 |
parents | 45ee5ffd6ea0 |
children | 5312ca05ed48 |
comparison
equal
deleted
inserted
replaced
56:6f091656c100 | 57:3b2a5a1c4347 |
---|---|
106 AC_CHECK_LIB(z, deflate, , AC_MSG_ERROR([*** zlib missing - install first or check config.log ***])) | 106 AC_CHECK_LIB(z, deflate, , AC_MSG_ERROR([*** zlib missing - install first or check config.log ***])) |
107 AC_MSG_RESULT(Enabling zlib) | 107 AC_MSG_RESULT(Enabling zlib) |
108 ] | 108 ] |
109 ) | 109 ) |
110 | 110 |
111 # Check if pam is needed | |
112 AC_ARG_WITH(pam, | |
113 [ --with-pam=PATH Use pam in PATH], | |
114 [ | |
115 # option is given | |
116 if test -d "$withval/lib"; then | |
117 LDFLAGS="-L${withval}/lib ${LDFLAGS}" | |
118 else | |
119 LDFLAGS="-L${withval} ${LDFLAGS}" | |
120 fi | |
121 if test -d "$withval/include"; then | |
122 CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | |
123 else | |
124 CPPFLAGS="-I${withval} ${CPPFLAGS}" | |
125 fi | |
126 ] | |
127 ) | |
128 | |
129 AC_ARG_ENABLE(pam, | |
130 [ --disable-pam Don't include PAM support], | |
131 [ | |
132 if test "x$enableval" = "xno"; then | |
133 AC_DEFINE(DISABLE_PAM,, Use PAM) | |
134 AC_MSG_RESULT(Disabling PAM) | |
135 else | |
136 AC_CHECK_LIB(pam, pam_authenticate, , AC_MSG_ERROR([*** PAM missing - install first or check config.log ***])) | |
137 AC_MSG_RESULT(Enabling PAM) | |
138 fi | |
139 ], | |
140 [ | |
141 # if not disabled, check for pam | |
142 AC_CHECK_LIB(pam, pam_authenticate, , AC_MSG_ERROR([*** PAM missing - install first or check config.log ***])) | |
143 AC_MSG_RESULT(Enabling PAM) | |
144 ] | |
145 ) | |
146 | |
111 AC_ARG_ENABLE(openpty, | 147 AC_ARG_ENABLE(openpty, |
112 [ --disable-openpty Don't use openpty, use alternative method], | 148 [ --disable-openpty Don't use openpty, use alternative method], |
113 [ | 149 [ |
114 if test "x$enableval" = "xno"; then | 150 if test "x$enableval" = "xno"; then |
115 AC_MSG_RESULT(Not using openpty) | 151 AC_MSG_RESULT(Not using openpty) |
158 | 194 |
159 | 195 |
160 # Checks for header files. | 196 # Checks for header files. |
161 AC_HEADER_STDC | 197 AC_HEADER_STDC |
162 AC_HEADER_SYS_WAIT | 198 AC_HEADER_SYS_WAIT |
163 AC_CHECK_HEADERS([fcntl.h limits.h netinet/in.h netinet/tcp.h stdlib.h string.h sys/socket.h sys/time.h termios.h unistd.h crypt.h pty.h ioctl.h libutil.h libgen.h inttypes.h stropts.h utmp.h utmpx.h lastlog.h paths.h util.h netdb.h sys/dirent.h]) | 199 AC_CHECK_HEADERS([fcntl.h limits.h netinet/in.h netinet/tcp.h stdlib.h string.h sys/socket.h sys/time.h termios.h unistd.h crypt.h pty.h ioctl.h libutil.h libgen.h inttypes.h stropts.h utmp.h utmpx.h lastlog.h paths.h util.h netdb.h sys/dirent.h security/pam_appl.h pam/pam_appl.h]) |
164 | 200 |
165 # Checks for typedefs, structures, and compiler characteristics. | 201 # Checks for typedefs, structures, and compiler characteristics. |
166 AC_C_CONST | 202 AC_C_CONST |
167 AC_TYPE_UID_T | 203 AC_TYPE_UID_T |
168 AC_TYPE_MODE_T | 204 AC_TYPE_MODE_T |