--- rxvt-unicode/autoconf/configure.in 2006/01/16 16:38:47 1.76 +++ rxvt-unicode/autoconf/configure.in 2006/01/17 11:53:07 1.78 @@ -712,23 +712,14 @@ AC_TYPE_SIGNAL dnl> AC_FUNC_VPRINTF -dnl# Note: On Ultrix, setsid() does weirdo stuff, disable it -case "$host_alias" in - *ultrix) ac_cv_func_setsid='no' ;; - *) break;; -esac - AC_CHECK_FUNCS( \ - atexit \ revoke \ unsetenv \ setutent \ seteuid \ setreuid \ - setsid \ - setpgrp \ - setpgid \ _getpty \ + getpt \ posix_openpt \ grantpt \ unlockpt \ @@ -1168,7 +1159,7 @@ AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.) fi -if test x$ac_cv_func_posix_openpt = xno; then +if test x$ac_cv_func_getpt = xno -a x$ac_cv_func_posix_openpt = xno; then AC_CHECK_FUNC(openpty, [], [AC_CHECK_LIB(util, openpty, [LIBS="$LIBS -lutil"])]) fi @@ -1176,6 +1167,8 @@ AC_CACHE_CHECK(for pty/tty type, rxvt_cv_ptys, [if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then rxvt_cv_ptys=OPENPTY + else if test x$ac_cv_func_getpt = xyes; then + rxvt_cv_ptys=GLIBC else if test x$ac_cv_func_posix_openpt = xyes; then rxvt_cv_ptys=POSIX else if test x$ac_cv_func__getpty = xyes; then @@ -1204,8 +1197,12 @@ fi fi fi +fi ]) +if test x$rxvt_cv_ptys = xGLIBC; then + AC_DEFINE(PTYS_ARE_GETPT, 1, Define for this pty type) +fi if test x$rxvt_cv_ptys = xPOSIX; then AC_DEFINE(PTYS_ARE_POSIX, 1, Define for this pty type) fi