openbsd-ports/x11/eterm/patches/patch-configure_in

34 lines
1.3 KiB
Plaintext
Raw Normal View History

$OpenBSD: patch-configure_in,v 1.1 2012/12/17 18:37:59 naddy Exp $
--- configure.in.orig Wed May 14 21:49:22 2008
+++ configure.in Thu Dec 13 21:02:23 2012
@@ -220,7 +220,7 @@ AC_TYPE_UID_T
dnl# Checks for library functions.
AC_TYPE_SIGNAL
AC_CHECK_FUNCS(atexit _exit unsetenv setutent \
-seteuid memmove putenv strsep setresuid setresgid \
+seteuid setegid memmove putenv strsep setresuid setresgid \
memmem usleep snprintf strcasestr strcasechr \
strcasepbrk strrev nl_langinfo \
)
@@ -259,6 +259,9 @@ AC_ARG_WITH(debugging, [ --with-debugging[=num] enab
AC_DEFINE_UNQUOTED(DEBUG, 4, [Debugging level to compile in.])
])
+AC_CHECK_FUNC(posix_openpt,
+ HAVE_POSIX_OPENPT=yes
+ )
AC_CHECK_FUNC(ptsname,
HAVE_PTSNAME=yes
)
@@ -274,6 +277,10 @@ PTY_MECH=""
if test -c /dev/ptc ; then
AC_DEFINE(HAVE_DEV_PTC, , [Define for /dev/ptc support.])
PTY_MECH="AIX $PTY_MECH"
+fi
+if ! -z "$HAVE_POSIX_OPENPT" -a ! -z "$HAVE_PTSNAME" -a ! -z "$HAVE_GRANTPT" -a ! -z "$HAVE_UNLOCKPT"; then
+ AC_DEFINE(HAVE_POSIX_PTYS, , [Define for POSIX pty support.])
+ PTY_MECH="POSIX $PTY_MECH"
fi
if test -r /dev/ptmx -a ! -z "$HAVE_PTSNAME" -a ! -z "$HAVE_GRANTPT" -a ! -z "$HAVE_UNLOCKPT"; then
AC_DEFINE(HAVE_DEV_PTMX, , [Define for /dev/ptmx support.])