Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1156,6 +1156,21 @@ then
[AC_MSG_RESULT([no])])
fi

if test "x${have_freerdp}" = "xyes"
then
AC_CHECK_DECLS([FreeRDP_AadSecurity],
[have_freerdp_aad=yes], [have_freerdp_aad=no],
[#include <freerdp/settings.h>])

if test "x${have_freerdp_aad}" = "xyes"
then
PKG_CHECK_MODULES([CURL], [libcurl],
[AC_DEFINE([HAVE_FREERDP_AAD_SUPPORT],,
[Defined if FreeRDP supports Azure AD authentication and libcurl is available])],
[AC_MSG_WARN([libcurl not found - Azure AD authentication disabled])])
fi
fi

# Restore CPPFLAGS, removing FreeRDP-specific options needed for testing
CPPFLAGS="$OLDCPPFLAGS"

Expand Down
5 changes: 4 additions & 1 deletion src/protocols/rdp/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ nodist_libguac_client_rdp_la_SOURCES = \
_generated_keymaps.c

libguac_client_rdp_la_SOURCES = \
aad.c \
argv.c \
beep.c \
channels/audio-input/audio-buffer.c \
Expand Down Expand Up @@ -84,6 +85,7 @@ libguac_client_rdp_la_SOURCES = \
user.c

noinst_HEADERS = \
aad.h \
argv.h \
beep.h \
channels/audio-input/audio-buffer.h \
Expand Down Expand Up @@ -141,7 +143,8 @@ libguac_client_rdp_la_LDFLAGS = \
-version-info 0:0:0 \
@CAIRO_LIBS@ \
@PTHREAD_LIBS@ \
@RDP_LIBS@
@RDP_LIBS@ \
@CURL_LIBS@

libguac_client_rdp_la_LIBADD = \
@COMMON_LTLIB@ \
Expand Down
Loading
Loading