Add C macro for WinPR detection.

This commit is contained in:
Michael Jumper 2013-07-16 19:36:58 -07:00
parent 4eccb8c4d5
commit 20ca4ef6f6

View File

@ -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)