[Spice-devel] [PATCH v4 3/3] Add configure option for --enable-alignment-checks
Christophe de Dinechin
christophe at dinechin.org
Tue May 30 12:51:51 UTC 2017
From: Christophe de Dinechin <dinechin at redhat.com>
Signed-off-by: Christophe de Dinechin <dinechin at redhat.com>
---
configure.ac | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/configure.ac b/configure.ac
index 6d9f378..efd7317 100644
--- a/configure.ac
+++ b/configure.ac
@@ -28,6 +28,14 @@ AM_PROG_CC_C_O
SPICE_CHECK_SYSDEPS
+AC_ARG_ENABLE([alignment-checks],
+ AS_HELP_STRING([--enable-alignment-checks],
+ [Enable runtime checks for cast alignment @<:@default=no@:>@]),
+ [],
+ enable_alignment_checks="no")
+AS_IF([test "x$enable_alignment_checks" = "xyes"],
+ [AC_DEFINE([SPICE_DEBUG_ALIGNMENT], 1, [Enable runtime checks for cast alignment])])
+
# Checks for libraries
PKG_CHECK_MODULES([PROTOCOL], [spice-protocol >= 0.12.12])
--
2.11.0 (Apple Git-81)
More information about the Spice-devel
mailing list