Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / apps / konsole / configure.in.in
blobd68c0f9fc35a4a4c29ef1d7dc6f0335f6183f053
1 dnl beta tests for openpty support
2 AC_MSG_CHECKING(whether we can use openpty)
3 ac_use_openpty="yes"
4 AC_ARG_ENABLE(openpty,
5  AC_HELP_STRING([--disable-openpty],[disable openpty (UNIX98 terminals) support [default=enabled]]),
6  [ac_use_openpty="no"])
7 if test "$ac_use_openpty" = "yes"; then
8         kde_safe_LIBS=$LIBS
9         LIBS="$LIBS $LIBUTIL"
10         AC_TRY_RUN([
11 #include <pty.h>
13 int main(int argc, char* argv) {
14         int master_fd, slave_fd;
15         int result;
17         result = openpty(&master_fd, &slave_fd, 0, 0, 0);
19         return 0;
21 ], [ac_use_openpty="yes"], [ac_use_openpty="no"])
22         LIBS=$kde_safe_LIBS
24 if test "$ac_use_openpty" = "yes"; then
25         AC_DEFINE(HAVE_OPENPTY, 1, [Defines whether we can use the openpty() function])
26         AC_MSG_RESULT(yes)
27 else
28         AC_MSG_RESULT(no)
31 dnl Set preprocessor variable of how to get cwd from a process
32 AC_MSG_CHECKING(how cwd can be be found by seperate process)
33 case "$host" in 
34   *-*-linux*) cwd_method='proc' ;;
35         *) cwd_method='no' ;;
36 esac
37 AC_MSG_RESULT($cwd_method)
39 case "$cwd_method" in
40         proc) AC_DEFINE(HAVE_PROC_CWD, 1, [Defines whether /proc/`pid`/cwd exists]) ;;
41 esac