diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2003-03-21 01:42:58 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-03-21 01:42:58 (GMT) |
commit | 865400fd07adfae27c83dbf71e56c202d0420519 (patch) | |
tree | ac93374d53cb2583e5dc6b42619d73d778fffd48 | |
parent | 7d8145268ee282f14d6adce9305dc3c1c7ffec14 (diff) | |
download | cpython-865400fd07adfae27c83dbf71e56c202d0420519.zip cpython-865400fd07adfae27c83dbf71e56c202d0420519.tar.gz cpython-865400fd07adfae27c83dbf71e56c202d0420519.tar.bz2 |
/dev/ptmx doesn't exist on AIX, they had to be different and use /dev/ptc.
Otherwise, the 2 devices seem to work the same for allocating a pseudo-tty.
-rwxr-xr-x | configure | 19 | ||||
-rw-r--r-- | configure.in | 11 | ||||
-rw-r--r-- | pyconfig.h.in | 3 |
3 files changed, 32 insertions, 1 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 1.393 . +# From configure.in Revision: 1.394 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.53 for python 2.3. # @@ -16821,6 +16821,23 @@ else echo "${ECHO_T}no" >&6 fi +echo "$as_me:$LINENO: checking for /dev/ptc" >&5 +echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 + +if test -e /dev/ptc +then + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +cat >>confdefs.h <<\_ACEOF +#define HAVE_DEV_PTC 1 +_ACEOF + +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + echo "$as_me:$LINENO: checking for socklen_t" >&5 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 if test "${ac_cv_type_socklen_t+set}" = set; then diff --git a/configure.in b/configure.in index 229caef..bc57591 100644 --- a/configure.in +++ b/configure.in @@ -2602,6 +2602,17 @@ else AC_MSG_RESULT(no) fi +AC_MSG_CHECKING(for /dev/ptc) + +if test -e /dev/ptc +then + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_DEV_PTC, 1, + [Define if we have /dev/ptc.]) +else + AC_MSG_RESULT(no) +fi + AC_CHECK_TYPE(socklen_t,, AC_DEFINE(socklen_t,int, Define to `int' if <sys/socket.h> does not define.),[ diff --git a/pyconfig.h.in b/pyconfig.h.in index 37fd5fc..e0ab1b9 100644 --- a/pyconfig.h.in +++ b/pyconfig.h.in @@ -68,6 +68,9 @@ /* Define to 1 if you have the device macros. */ #undef HAVE_DEVICE_MACROS +/* Define if we have /dev/ptc. */ +#undef HAVE_DEV_PTC + /* Define if we have /dev/ptmx. */ #undef HAVE_DEV_PTMX |