257 |
|
dnl Darwin seems to define mach_task_self() instead of task_self(). |
258 |
|
AC_CHECK_FUNCS(mach_task_self task_self) |
259 |
|
|
260 |
+ |
dnl Check for headers and functions related to pty support (sshpty.c) |
261 |
+ |
dnl From openssh-3.2.2p1 configure.ac |
262 |
+ |
|
263 |
+ |
AC_CHECK_HEADERS(strings.h login.h sys/bsdtty.h sys/stat.h util.h pty.h) |
264 |
+ |
AC_CHECK_FUNCS(_getpty vhangup strlcpy) |
265 |
+ |
|
266 |
+ |
case "$host" in |
267 |
+ |
*-*-hpux10.26) |
268 |
+ |
disable_ptmx_check=yes |
269 |
+ |
;; |
270 |
+ |
*-*-linux*) |
271 |
+ |
no_dev_ptmx=1 |
272 |
+ |
;; |
273 |
+ |
mips-sony-bsd|mips-sony-newsos4) |
274 |
+ |
AC_DEFINE(HAVE_NEWS4) |
275 |
+ |
;; |
276 |
+ |
*-*-sco3.2v4*) |
277 |
+ |
no_dev_ptmx=1 |
278 |
+ |
;; |
279 |
+ |
*-*-sco3.2v5*) |
280 |
+ |
no_dev_ptmx=1 |
281 |
+ |
;; |
282 |
+ |
esac |
283 |
+ |
|
284 |
+ |
if test -z "$no_dev_ptmx" ; then |
285 |
+ |
if test "x$disable_ptmx_check" != "xyes" ; then |
286 |
+ |
AC_CHECK_FILE("/dev/ptmx", |
287 |
+ |
[ |
288 |
+ |
AC_DEFINE_UNQUOTED(HAVE_DEV_PTMX) |
289 |
+ |
have_dev_ptmx=1 |
290 |
+ |
] |
291 |
+ |
) |
292 |
+ |
fi |
293 |
+ |
fi |
294 |
+ |
AC_CHECK_FILE("/dev/ptc", |
295 |
+ |
[ |
296 |
+ |
AC_DEFINE_UNQUOTED(HAVE_DEV_PTS_AND_PTC) |
297 |
+ |
have_dev_ptc=1 |
298 |
+ |
] |
299 |
+ |
) |
300 |
+ |
|
301 |
+ |
dnl (end of code from openssh-3.2.2p1 configure.ac) |
302 |
+ |
|
303 |
+ |
|
304 |
|
dnl Select system-dependant source files. |
305 |
|
SERIALSRC=serial_unix.cpp |
306 |
|
ETHERSRC=../dummy/ether_dummy.cpp |