summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/echoping/files/echoping-6.0.2-gnutls.patch')
-rw-r--r--net-analyzer/echoping/files/echoping-6.0.2-gnutls.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/net-analyzer/echoping/files/echoping-6.0.2-gnutls.patch b/net-analyzer/echoping/files/echoping-6.0.2-gnutls.patch
new file mode 100644
index 000000000000..b5be2d989776
--- /dev/null
+++ b/net-analyzer/echoping/files/echoping-6.0.2-gnutls.patch
@@ -0,0 +1,41 @@
+Date: 2009-06-30 14:26
+Sender: bortz
+
+The patch by ametzler seems indeed to work (thanks to him). I've committed
+it (r426) and will make a new release soon.
+
+http://sourceforge.net/tracker/index.php?func=detail&aid=2811861&group_id=4581&atid=104581
+
+
+--- trunk/SRC/configure.ac 2009/06/30 14:18:15 425
++++ trunk/SRC/configure.ac 2009/06/30 14:19:07 426
+@@ -92,14 +92,21 @@
+ AC_ARG_WITH(gnutls,
+ [ --with-gnutls[=DIR] SSL/TLS crypt support (needs GNU TLS), the argument DIR should not be necessary],dnl
+ [if test "$withval" != "no"; then
+- AC_DEFINE(GNUTLS,,[Crypto (TLS) support])
+- GNUTLS=1
+- CPPFLAGS="${CPPFLAGS} `libgnutls-config --cflags`"
+- LDFLAGS="${LDFLAGS} `libgnutls-config --libs`"
+- if test "$withval" != "yes"; then
+- GNUTLSROOT=$withval
+- LDFLAGS="${LDFLAGS} -L$GNUTLSROOT/lib"
+- CPPFLAGS="${CPPFLAGS} -I$GNUTLSROOT/include"
++ if test "$withval" = "yes"; then
++ PKG_CHECK_MODULES([LIBGNUTLS], [gnutls >= 1.0.0],
++ [
++ echo "GnuTLS found"
++ AC_DEFINE(GNUTLS,,[Crypto (TLS) support])
++ GNUTLS=1
++ CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
++ LIBS="$LIBS $LIBGNUTLS_LIBS"
++ ],)
++ else
++ AC_DEFINE(GNUTLS,,[Crypto (TLS) support])
++ GNUTLS=1
++ GNUTLSROOT=$withval
++ LDFLAGS="${LDFLAGS} -L$GNUTLSROOT/lib -lgnutls"
++ CPPFLAGS="${CPPFLAGS} -I$GNUTLSROOT/include"
+ fi
+ fi],
+ dnl Default: disable it