Add support for ignoring certificate, security, authentication, and pre-connection...
[libguac-client-rdp.git] / configure.in
index fa11749..a2d8052 100644 (file)
@@ -35,7 +35,7 @@
 # ***** END LICENSE BLOCK *****
 
 AC_INIT(src/client.c)
-AM_INIT_AUTOMAKE([libguac-client-rdp], 0.5.0)
+AM_INIT_AUTOMAKE([libguac-client-rdp], 0.6.1)
 AC_CONFIG_MACRO_DIR([m4])
 
 # Checks for programs.
@@ -53,7 +53,12 @@ AC_CHECK_LIB([freerdp-utils], [xzalloc],, AC_MSG_ERROR("libfreerdp-utils is requ
 AC_CHECK_LIB([freerdp-codec], [freerdp_image_convert],, AC_MSG_ERROR("libfreerdp-codec is required (part of FreeRDP)"))
 
 # Checks for header files.
-AC_CHECK_HEADERS([guacamole/client.h guacamole/guacio.h guacamole/protocol.h])
+AC_CHECK_HEADERS([guacamole/client.h guacamole/guacio.h guacamole/protocol.h freerdp/locale/keyboard.h freerdp/kbd/layouts.h])
+
+# Check for FreeRDP version-specific features
+AC_CHECK_MEMBERS([rdpPointer.SetDefault, rdpPointer.SetNull, rdpSettings.preconnection_id, rdpSettings.security_layer_negotiation, rdpSettings.preconnection_blob],
+                [], [],
+                [[#include <freerdp/freerdp.h>]])
 
 # Checks for library functions.
 AC_FUNC_MALLOC