From 4aed2c8219774f5d797760606b8489a92ddc5163 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- konsole/configure.in.in | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 konsole/configure.in.in (limited to 'konsole/configure.in.in') diff --git a/konsole/configure.in.in b/konsole/configure.in.in new file mode 100644 index 000000000..d68c0f9fc --- /dev/null +++ b/konsole/configure.in.in @@ -0,0 +1,41 @@ +dnl beta tests for openpty support +AC_MSG_CHECKING(whether we can use openpty) +ac_use_openpty="yes" +AC_ARG_ENABLE(openpty, + AC_HELP_STRING([--disable-openpty],[disable openpty (UNIX98 terminals) support [default=enabled]]), + [ac_use_openpty="no"]) +if test "$ac_use_openpty" = "yes"; then + kde_safe_LIBS=$LIBS + LIBS="$LIBS $LIBUTIL" + AC_TRY_RUN([ +#include + +int main(int argc, char* argv) { + int master_fd, slave_fd; + int result; + + result = openpty(&master_fd, &slave_fd, 0, 0, 0); + + return 0; +} +], [ac_use_openpty="yes"], [ac_use_openpty="no"]) + LIBS=$kde_safe_LIBS +fi +if test "$ac_use_openpty" = "yes"; then + AC_DEFINE(HAVE_OPENPTY, 1, [Defines whether we can use the openpty() function]) + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Set preprocessor variable of how to get cwd from a process +AC_MSG_CHECKING(how cwd can be be found by seperate process) +case "$host" in + *-*-linux*) cwd_method='proc' ;; + *) cwd_method='no' ;; +esac +AC_MSG_RESULT($cwd_method) + +case "$cwd_method" in + proc) AC_DEFINE(HAVE_PROC_CWD, 1, [Defines whether /proc/`pid`/cwd exists]) ;; +esac -- cgit v1.2.1