diff options
author | Michael Jennings <mej@kainx.org> | 2009-10-25 20:30:06 +0000 |
---|---|---|
committer | Michael Jennings <mej@kainx.org> | 2009-10-25 20:30:06 +0000 |
commit | 42a135456a75ba914291984b0c83942ac6664f75 (patch) | |
tree | adba3ae09d57eb83d398e3553cc66a4754481041 /configure.ac | |
parent | c6ff25f5f1391f8c7cdf0c487c284e91fdd747e9 (diff) | |
download | eterm-42a135456a75ba914291984b0c83942ac6664f75.tar.gz |
Sun Oct 25 12:36:01 2009 Michael Jennings (mej)
Patch for FreeBSD UNIX98 pty support from Ed Schouten <ed@80386.nl>.
----------------------------------------------------------------------
SVN revision: 43281
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 03d0a4c..1e4502d 100644 --- a/configure.ac +++ b/configure.ac @@ -258,6 +258,9 @@ AC_ARG_WITH(debugging, [ --with-debugging[=num] enable debugging output, num i 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 ) @@ -270,6 +273,10 @@ AC_CHECK_FUNC(unlockpt, dnl# Check for the appropriate pty mechanism AC_MSG_CHECKING(for pty mechanism) PTY_MECH="" +if test ! -z "$HAVE_POSIX_OPENPT" -a ! -z "$HAVE_PTSNAME" -a ! -z "$HAVE_GRANTPT" -a ! -z "$HAVE_UNLOCKPT"; then + AC_DEFINE(HAVE_POSIX_OPENPT, , [Define for posix_openpt() support.]) + PTY_MECH="POSIX $PTY_MECH" +fi if test -c /dev/ptc ; then AC_DEFINE(HAVE_DEV_PTC, , [Define for /dev/ptc support.]) PTY_MECH="AIX $PTY_MECH" |