From daac7b3b2aae9895e6fd46588739b992655c66f5 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 5 Mar 2010 10:32:35 +0100 Subject: forkpty() compatibility --- configure.ac | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index ce686568..f1e98934 100644 --- a/configure.ac +++ b/configure.ac @@ -78,11 +78,15 @@ AS_IF([test "x$enable_gtk" != "xno"], AM_CONDITIONAL([HAVE_GTK], test x$havegtk = xtrue) -AC_CHECK_FUNCS(forkpty,, +AC_CHECK_FUNCS(forkpty, + AC_DEFINE([HAVE_FORKPTY_BSD], [1], + [Define to 1 if a Linux-style forkpty is available]), AC_CHECK_LIB(util,forkpty, - [AC_DEFINE(HAVE_FORKPTY) LIBS="$LIBS -lutil"], - AC_CHECK_LIB(bsd,forkpty, [AC_DEFINE(HAVE_FORKPTY) LIBS="$LIBS -lbsd"]) - ) + [ + AC_DEFINE([HAVE_FORKPTY_LINUX], [1], + [Define to 1 if a Linux-style forkpty is available]) + LIBS="$LIBS -lutil" + ]) ) -- cgit v1.2.3