2
## 02_fix_gnutls_config.dpatch
4
## DP: Fix configure script to make sure GnuTLS module is built.
5
## DP: Cherry picked from upstream.
8
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
12
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
13
patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
16
-patch) patch $patch_opts -p1 < $0;;
17
-unpatch) patch $patch_opts -p1 -R < $0;;
19
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
26
diff -Naur a/configure b/configure
27
--- a/configure 2009-01-04 19:08:57.000000000 +0000
28
+++ b/configure 2009-01-04 19:10:15.000000000 +0000
30
chomp($config{HAS_OPENSSL} = `pkg-config --modversion openssl 2>/dev/null`); # Openssl version
31
chomp($gnutls_ver = $config{HAS_GNUTLS});
32
chomp($openssl_ver = $config{HAS_OPENSSL});
33
-$config{HAS_GNUTLS} = "n";
34
+$config{USE_GNUTLS} = "n";
35
if (defined $opt_use_gnutls)
37
- $config{HAS_GNUTLS} = "y"; # Use gnutls.
38
+ $config{USE_GNUTLS} = "y"; # Use gnutls.
40
$config{USE_OPENSSL} = "n"; # Use openssl.
41
if (defined $opt_use_openssl)