summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index aa9f51c4..d28ac034 100644
--- a/configure.ac
+++ b/configure.ac
@@ -70,6 +70,9 @@ AC_ARG_ENABLE(pam, AS_HELP_STRING([--disable-pam],
[Build PAM support (default: yes)]),
[], [enable_pam=yes])
AM_CONDITIONAL(SESMAN_NOPAM, [test x$enable_pam != xyes])
+AC_ARG_ENABLE(vsock, AS_HELP_STRING([--enable-vsock],
+ [Build AF_VSOCK support (default: no)]),
+ [], [enable_vsock=no])
AC_ARG_ENABLE(ipv6, AS_HELP_STRING([--enable-ipv6],
[Build IPv6 support (default: no, experimental)]),
[], [enable_ipv6=no])
@@ -197,6 +200,15 @@ fi
AC_SUBST(PAM_RULES)
+if test "x$enable_vsock" = "xyes"
+then
+ enable_vsock=yes
+ AC_CHECK_HEADERS([linux/socket.h linux/vm_sockets.h],
+ [AC_DEFINE([XRDP_ENABLE_VSOCK], 1, [Enable AF_VSOCK])],
+ [],
+ [#include <sys/socket.h>])
+fi
+
if test "x$enable_ipv6only" = "xyes"
then
enable_ipv6=yes