aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure30
1 files changed, 30 insertions, 0 deletions
diff --git a/configure b/configure
index 9b77604c..3bdc4e76 100755
--- a/configure
+++ b/configure
@@ -33,6 +33,7 @@ debug=0
strip=1
gcov=0
plugins=1
+otr=auto
events=glib
ldap=0
@@ -76,6 +77,7 @@ Option Description Default
--strip=0/1 Disable/enable binary stripping $strip
--gcov=0/1 Disable/enable test coverage reporting $gcov
--plugins=0/1 Disable/enable plugins support $plugins
+--otr=0/1 Disable/enable OTR encryption support $otr
--events=... Event handler (glib, libevent) $events
--ssl=... SSL library to use (gnutls, nss, openssl, bogus, auto)
@@ -482,6 +484,28 @@ else
echo '#define WITH_PLUGINS' >> config.h
fi
+otrprefix=""
+for i in / /usr /usr/local; do
+ if [ -f ${i}/lib/libotr.a ]; then
+ otrprefix=${i}
+ break
+ fi
+done
+if [ "$otr" = "auto" ]; then
+ if [ -n "$otrprefix" ]; then
+ otr=1
+ else
+ otr=0
+ fi
+fi
+if [ "$otr" = 1 ]; then
+ echo '#define WITH_OTR' >> config.h
+ echo "EFLAGS+=-L${otrprefix}/lib -lotr" >> Makefile.settings
+ echo "CFLAGS+=-I${otrprefix}/include" >> Makefile.settings
+else
+ echo '#undef WITH_OTR' >> config.h
+fi
+
if [ ! -e doc/user-guide/help.txt ] && ! type xmlto > /dev/null 2> /dev/null; then
echo
echo 'WARNING: Building from an unreleased source tree without prebuilt helpfile.'
@@ -668,6 +692,12 @@ else
echo ' Binary stripping disabled.'
fi
+if [ "$otr" = "1" ]; then
+ echo ' Off-the-Record (OTR) Messaging enabled.'
+else
+ echo ' Off-the-Record (OTR) Messaging disabled.'
+fi
+
echo ' Using event handler: '$events
echo ' Using SSL library: '$ssl
echo ' Building with these storage backends: '$STORAGES
ix/0.21.0.37 Unnamed repository; edit this file 'description' to name the repository.MimesBrønn
aboutsummaryrefslogtreecommitdiffstats
path: root/docs/running/upgrading.md
blob: 67a9eeba06ae5f15a4f42cf5ea11df42358dfe25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93