diff --git a/configure.ac b/configure.ac index 0864d10bffd25ce79f46a1699e62116dd5f236ed..1f5014a013cfdc466b064d4294713b8694228ce8 100644 --- a/configure.ac +++ b/configure.ac @@ -197,6 +197,7 @@ AC_ARG_ENABLE([rdp-compositor], [ --enable-rdp-compositor],, AM_CONDITIONAL([ENABLE_RDP_COMPOSITOR], [test x$enable_rdp_compositor = xyes]) if test x$enable_rdp_compositor = xyes; then + AC_DEFINE([BUILD_RDP_COMPOSITOR], [1], [Build the RDP compositor]) PKG_CHECK_MODULES(RDP_COMPOSITOR, [freerdp >= 1.1.0]) fi diff --git a/src/compositor.c b/src/compositor.c index 16d04819c58d45782ec39c4f83dd39e7ff859062..a02da8b5ec1fd229ba9c904da7b32dbc03955692 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -3222,6 +3222,21 @@ usage(int error_code) "\n"); #endif +#if defined(BUILD_RDP_COMPOSITOR) + fprintf(stderr, + "Options for rdp-backend.so:\n\n" + " --width=WIDTH\t\tWidth of desktop\n" + " --height=HEIGHT\tHeight of desktop\n" + " --extra-modes=MODES\t\n" + " --env-socket=SOCKET\tUse that socket as peer connection\n" + " --address=ADDR\tThe address to bind\n" + " --port=PORT\tThe port to listen on\n" + " --rdp4-key=FILE\tThe file containing the key for RDP4 encryption\n" + " --rdp-tls-cert=FILE\tThe file containing the certificate for TLS encryption\n" + " --rdp-tls-key=FILE\tThe file containing the private key for TLS encryption\n" + "\n"); +#endif + exit(error_code); }