[spice-common 3/3] build-sys: Set automake conditional in SPICE_CHECK_SMARTCARD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



spice-server will use this.
---
 m4/spice-deps.m4 | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/m4/spice-deps.m4 b/m4/spice-deps.m4
index 83ebb4f..117d346 100644
--- a/m4/spice-deps.m4
+++ b/m4/spice-deps.m4
@@ -33,8 +33,9 @@ AC_DEFUN([SPICE_CHECK_SYSDEPS], [
 # Adds a --enable-smartcard switch in order to enable/disable smartcard
 # support, and checks if the needed libraries are available. If found, it will
 # return the flags to use in the SMARTCARD_CFLAGS and SMARTCARD_LIBS variables, and
-# it will define a USE_SMARTCARD preprocessor symbol.
-#----------------------
+# it will define a USE_SMARTCARD preprocessor symbol as well as a HAVE_SMARTCARD
+# Makefile conditional.
+----------------------
 AC_DEFUN([SPICE_CHECK_SMARTCARD], [
     AC_ARG_ENABLE([smartcard],
       AS_HELP_STRING([--enable-smartcard=@<:@yes/no/auto@:>@],
@@ -52,6 +53,7 @@ AC_DEFUN([SPICE_CHECK_SMARTCARD], [
         AC_DEFINE(USE_SMARTCARD, [1], [Define if supporting smartcard proxying])
       fi
     fi
+    AM_CONDITIONAL(HAVE_SMARTCARD, test "x$have_smartcard" = "xyes")
 ])
 
 
-- 
2.5.0

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]