[telepathy-gabble/master] Pass flags to choose wocky tls backend on to embedded wocky configure.

Vivek Dasmohapatra vivek at collabora.co.uk
Mon Oct 5 10:46:32 PDT 2009


---
 configure.ac |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 1e1c036..f807747 100644
--- a/configure.ac
+++ b/configure.ac
@@ -186,6 +186,17 @@ AC_ARG_ENABLE(wocky-gtk-doc,
   AC_HELP_STRING([--enable-wocky-gtk-doc],[compile wocky with gtk-doc enabled]),
     enable_wocky_gtk_doc=$enableval, enable_wocky_gtk_doc=no )
 
+AC_ARG_WITH([wocky-tls],
+  AS_HELP_STRING([--with-wocky-tls],[tls library (gnutls, openssl, auto)]),
+  [],
+  [with_wocky_tls=auto])
+
+AS_CASE([$with_wocky_tls],
+  [gnutls], [with_wocky_tls=gnutls],
+  [openssl],[with_wocky_tls=openssl],
+  [auto],   [with_wocky_tls=auto],
+  [*],      [AC_MSG_ERROR(unknown ssl library "$with_wocky_tls")])
+
 confcmd="$origdir"/"$srcdir"/lib/ext/wocky/configure
 if test x$enable_wocky_gtk_doc != xno; then
   confcmd="$confcmd --enable-gtk-doc"
@@ -193,6 +204,7 @@ fi
 if test x$enable_silent_rules != xno; then
   confcmd="$confcmd --enable-silent-rules"
 fi
+confcmd="$confcmd --with-tls=$with_wocky_tls"
 cd "$ac_top_build_prefix"lib/ext/wocky && echo "running $confcmd" &&
   $confcmd ||
   AC_MSG_ERROR([Failed to configure embedded Wocky tree])
-- 
1.5.6.5



More information about the telepathy-commits mailing list