Add C macro for WinPR detection.
This commit is contained in:
parent
4eccb8c4d5
commit
20ca4ef6f6
11
configure.ac
11
configure.ac
@ -213,6 +213,7 @@ fi
|
||||
# FreeRDP
|
||||
#
|
||||
|
||||
have_winpr=yes
|
||||
have_freerdp=yes
|
||||
RDP_LIBS=
|
||||
|
||||
@ -245,9 +246,17 @@ AC_CHECK_LIB([freerdp-codec], [freerdp_image_convert],
|
||||
|
||||
# Check for stream support via WinPR
|
||||
AC_CHECK_HEADER(winpr/stream.h,, # <-- stable-1.1
|
||||
[have_winpr=no,
|
||||
AC_CHECK_LIB([freerdp-utils], [stream_write_uint8],, # <-- stable-1.0
|
||||
[have_freerdp=no]))
|
||||
[have_freerdp=no])])
|
||||
|
||||
if test "x${have_winpr}" = "xyes"
|
||||
then
|
||||
AC_DEFINE([ENABLE_WINPR])
|
||||
fi
|
||||
|
||||
|
||||
AM_CONDITIONAL([ENABLE_WINPR], [test "x${have_winpr}" = "xyes"])
|
||||
AM_CONDITIONAL([ENABLE_RDP], [test "x${have_freerdp}" = "xyes"])
|
||||
|
||||
AC_SUBST(RDP_LIBS)
|
||||
|
Loading…
Reference in New Issue
Block a user