[Spice-devel] [[PATCH] [spice-common] 2/2] Add check for openssl

Eduardo Lima (Etrunko) etrunko at redhat.com
Mon Mar 28 21:00:28 UTC 2016


From: "Eduardo Lima (Etrunko)" <etrunko at redhat.com>

It is required to compile ssl-verify.[ch].

Signed-off-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>
---
 configure.ac     | 5 +++--
 m4/spice-deps.m4 | 9 +++++++++
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index bfdf869..1064bd6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -38,9 +38,10 @@ SPICE_CHECK_CELT051
 SPICE_CHECK_GLIB2(2.38)
 SPICE_CHECK_OPUS
 SPICE_CHECK_OPENGL
+SPICE_CHECK_OPENSSL
 
-SPICE_COMMON_CFLAGS='$(PIXMAN_CFLAGS) $(SMARTCARD_CFLAGS) $(CELT051_CFLAGS) $(GLIB2_CFLAGS) $(OPUS_CFLAGS) $(GL_CFLAGS)'
-SPICE_COMMON_LIBS='$(PIXMAN_LIBS) $(CELT051_LIBS) $(GLIB2_LIBS) $(OPUS_LIBS) $(GL_LIBS)'
+SPICE_COMMON_CFLAGS='$(PIXMAN_CFLAGS) $(SMARTCARD_CFLAGS) $(CELT051_CFLAGS) $(GLIB2_CFLAGS) $(OPUS_CFLAGS) $(GL_CFLAGS) $(OPENSSL_CFLAGS)'
+SPICE_COMMON_LIBS='$(PIXMAN_LIBS) $(CELT051_LIBS) $(GLIB2_LIBS) $(OPUS_LIBS) $(GL_LIBS) $(OPENSSL_LIBS)'
 AC_SUBST(SPICE_COMMON_CFLAGS)
 AC_SUBST(SPICE_COMMON_LIBS)
 
diff --git a/m4/spice-deps.m4 b/m4/spice-deps.m4
index ecae80a..fe70900 100644
--- a/m4/spice-deps.m4
+++ b/m4/spice-deps.m4
@@ -302,3 +302,12 @@ AC_DEFUN([SPICE_CHECK_SASL], [
       fi
     fi
 ])
+
+# SPICE_CHECK_OPENSSL
+# -----------------
+# Check for the availability of openssl. If found, it will return the flags to
+# use in the OPENSSL_CFLAGS and OPENSSL_LIBS variables.
+#------------------
+AC_DEFUN([SPICE_CHECK_OPENSSL], [
+    PKG_CHECK_MODULES(OPENSSL, openssl)
+])
-- 
1.8.3.1



More information about the Spice-devel mailing list