[vinagre] Fix build on Cygwin, bug 665368



commit 969171dd1c7827d4af65bfdfbd0544f135ff68fd
Author: Yaakov Selkowitz <yselkowitz users sourceforge net>
Date:   Fri Dec 2 02:06:18 2011 -0600

    Fix build on Cygwin, bug 665368
    
    Cygwin uses gio-unix, not gio-windows.
    
    Cygwin has posix_openpt but not getpt, which is nonstandard. Either will
    work in pty_open.c, but in vinagre-ssh.c, USE_PTY is determined by
    HAVE_GRANTPT, which is true on Cygwin. Using grantpt as the determining
    factor across the board prevents any chance of error.
    
    Signed-off-by: Yaakov Selkowitz <yselkowitz users sourceforge net>

 configure.ac |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2d95052..c54d117 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,7 +21,7 @@ AC_CANONICAL_HOST
 
 AC_MSG_CHECKING([whether to build for a Windows host])
 AS_CASE([$host_os],
-  [*mingw*|*cygwin*], [gio_os=gio-windows-2.0; windows_host=yes],
+  [*mingw*], [gio_os=gio-windows-2.0; windows_host=yes],
   [gio_os=gio-unix-2.0; windows_host=no])
 AC_MSG_RESULT([$windows_host])
 
@@ -118,7 +118,7 @@ AC_TYPE_UINT64_T
 # Checks for library functions. See vinagre/pty_open.c for usage.
 AC_CHECK_FUNCS([getpt posix_openpt grantpt unlockpt ptsname ptsname_r])
 
-AM_CONDITIONAL([VINAGRE_PTY_OPEN], [test "x$ac_cv_func_getpt" = xyes])
+AM_CONDITIONAL([VINAGRE_PTY_OPEN], [test "x$ac_cv_func_grantpt" == xyes])
 
 AC_SEARCH_LIBS([strerror], [cposix])
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]