aboutsummaryrefslogtreecommitdiffstats
path: root/testing/loudmouth/04-use-pkg-config-for-gnutls.patch
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2012-01-03 05:06:35 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-01-16 15:41:16 +0000
commitb91d477a12229fcbf1bb723745d8e0b9386d3148 (patch)
tree95070dd18aac1a3e92a5f87463d985e5d4182a25 /testing/loudmouth/04-use-pkg-config-for-gnutls.patch
parent040d8932239b6e90967869178b344f7e12d2aaab (diff)
downloadaports-b91d477a12229fcbf1bb723745d8e0b9386d3148.tar.gz
aports-b91d477a12229fcbf1bb723745d8e0b9386d3148.tar.bz2
aports-b91d477a12229fcbf1bb723745d8e0b9386d3148.tar.xz
Patch files for loudmouth
Diffstat (limited to 'testing/loudmouth/04-use-pkg-config-for-gnutls.patch')
-rw-r--r--testing/loudmouth/04-use-pkg-config-for-gnutls.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/loudmouth/04-use-pkg-config-for-gnutls.patch b/testing/loudmouth/04-use-pkg-config-for-gnutls.patch
new file mode 100644
index 0000000000..eecd419871
--- /dev/null
+++ b/testing/loudmouth/04-use-pkg-config-for-gnutls.patch
@@ -0,0 +1,24 @@
+Description: use pkg-config to detect gnutls
+Debian: http://bugs.debian.org/529835
+Origin: http://groups.google.com/group/loudmouth-dev/browse_thread/thread/3f78255837048daf#
+
+--- a/configure.ac.orig 2009-08-16 20:29:36.000000000 +0200
++++ b/configure.ac 2009-08-16 20:30:43.000000000 +0200
+@@ -146,10 +146,12 @@ AC_ARG_WITH(openssl-libs,
+ enable_ssl=no
+ if test "x$ac_ssl" = "xgnutls"; then
+ dnl Look for GnuTLS
+- AM_PATH_LM_LIBGNUTLS($GNUTLS_REQUIRED, have_libgnutls=yes, have_libgnutls=no)
+- if test "x$have_libgnutls" = "xyes"; then
+- CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
+- LIBS="$LIBS $LIBGNUTLS_LIBS"
++ PKG_CHECK_MODULES(GNUTLS, gnutls >= $GNUTLS_REQUIRED, have_gnutls=yes, have_gnutls=no)
++ if test "x$have_gnutls" = "xyes"; then
++ AC_SUBST(ASYNCNS_CFLAGS)
++ AC_SUBST(ASYNCNS_LIBS)
++ CFLAGS="$CFLAGS $GNUTLS_CFLAGS"
++ LIBS="$LIBS $GNUTLS_LIBS"
+ AC_DEFINE(HAVE_GNUTLS, 1, [whether to use GnuTSL support.])
+ enable_ssl=GnuTLS
+ else
+