From 9487eb2dc9d3e1ac4841a8fd2829102db8455316 Mon Sep 17 00:00:00 2001 From: Nick Couchman Date: Tue, 11 Jul 2017 12:20:59 -0400 Subject: [PATCH 1/2] GUACAMOLE-296: Fix linking issue that causes audio issues with FreeRDP 1.1 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index e04d581a..fb12fb43 100644 --- a/configure.ac +++ b/configure.ac @@ -695,7 +695,7 @@ fi # Check for stream support via WinPR if test "x${have_freerdp}" = "xyes" then - AC_CHECK_HEADER(winpr/stream.h,, + AC_CHECK_HEADER(winpr/stream.h,[RDP_LIBS="$RDP_LIBS -lwinpr-utils"], [have_winpr=no, AC_CHECK_DECL([stream_write_uint8],, [AC_MSG_WARN([ From caedf26a065e8ed70a9ed044a7451ebf78231506 Mon Sep 17 00:00:00 2001 From: Nick Couchman Date: Fri, 13 Oct 2017 21:25:32 -0400 Subject: [PATCH 2/2] GUACAMOLE-296: Break out WINPR libs into their own variable. --- configure.ac | 4 +++- src/protocols/rdp/Makefile.am | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index fb12fb43..87257487 100644 --- a/configure.ac +++ b/configure.ac @@ -506,6 +506,7 @@ fi have_freerdp=disabled RDP_LIBS= +WINPR_LIBS= AC_ARG_WITH([rdp], [AS_HELP_STRING([--with-rdp], [support RDP @<:@default=check@:>@])], @@ -695,7 +696,7 @@ fi # Check for stream support via WinPR if test "x${have_freerdp}" = "xyes" then - AC_CHECK_HEADER(winpr/stream.h,[RDP_LIBS="$RDP_LIBS -lwinpr-utils"], + AC_CHECK_HEADER(winpr/stream.h,[WINPR_LIBS="$WINPR_LIBS -lwinpr-utils"], [have_winpr=no, AC_CHECK_DECL([stream_write_uint8],, [AC_MSG_WARN([ @@ -1015,6 +1016,7 @@ AM_CONDITIONAL([ENABLE_WINPR], [test "x${have_winpr}" = "xyes"]) AM_CONDITIONAL([ENABLE_RDP], [test "x${have_freerdp}" = "xyes"]) AC_SUBST(RDP_LIBS) +AC_SUBST(WINPR_LIBS) # # libssh2 diff --git a/src/protocols/rdp/Makefile.am b/src/protocols/rdp/Makefile.am index 2a2ebca0..f9fa62a1 100644 --- a/src/protocols/rdp/Makefile.am +++ b/src/protocols/rdp/Makefile.am @@ -185,7 +185,8 @@ guacai_cflags = \ guacai_ldflags = \ -module -avoid-version -shared \ @PTHREAD_LIBS@ \ - @RDP_LIBS@ + @RDP_LIBS@ \ + @WINPR_LIBS@ guacai_libadd = \ @COMMON_LTLIB@ \