… | |
… | |
53 | seteuid \ |
53 | seteuid \ |
54 | setreuid \ |
54 | setreuid \ |
55 | setresuid \ |
55 | setresuid \ |
56 | ) |
56 | ) |
57 | |
57 | |
58 | AC_MSG_CHECKING(for UNIX98 ptys) |
58 | AC_MSG_CHECKING(for UNIX98 ptys) |
59 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdlib.h>]], |
59 | AC_LINK_IFELSE( |
|
|
60 | [AC_LANG_PROGRAM( |
|
|
61 | [[#include <stdlib.h>]], |
60 | [[grantpt(0);unlockpt(0);ptsname(0);]])], |
62 | [[grantpt(0);unlockpt(0);ptsname(0);]])], |
61 | [unix98_pty=yes |
63 | [unix98_pty=yes |
62 | AC_DEFINE(UNIX98_PTY, 1, "") |
64 | AC_DEFINE(UNIX98_PTY, 1, "") |
63 | AC_MSG_RESULT(yes)], |
65 | AC_MSG_RESULT(yes)], |
64 | [AC_MSG_RESULT(no)]) |
66 | [AC_MSG_RESULT(no)]) |
65 | |
67 | |
66 | if test -z "$unix98_pty"; then |
68 | if test -z "$unix98_pty"; then |
67 | AC_SEARCH_LIBS(openpty, util, AC_DEFINE(HAVE_OPENPTY, 1, "")) |
69 | AC_SEARCH_LIBS(openpty, util, AC_DEFINE(HAVE_OPENPTY, 1, "")) |
68 | fi |
70 | fi |
69 | ]) |
71 | ]) |