1 | #!/bin/sh |
---|
2 | |
---|
3 | ############################## |
---|
4 | ## Configurer for BitlBee ## |
---|
5 | ## ## |
---|
6 | ## Copyright 2004 Lintux ## |
---|
7 | ## Copyright 2002 Lucumo ## |
---|
8 | ############################## |
---|
9 | |
---|
10 | prefix='/usr/local/' |
---|
11 | bindir='$prefix/bin/' |
---|
12 | sbindir='$prefix/sbin/' |
---|
13 | etcdir='$prefix/etc/bitlbee/' |
---|
14 | mandir='$prefix/share/man/' |
---|
15 | datadir='$prefix/share/bitlbee/' |
---|
16 | config='/var/lib/bitlbee/' |
---|
17 | libdir='$prefix/lib/' |
---|
18 | plugindir='$prefix/lib/bitlbee/' |
---|
19 | includedir='$prefix/include/bitlbee/' |
---|
20 | systemdsystemunitdir='' |
---|
21 | libevent='/usr/' |
---|
22 | pidfile='/var/run/bitlbee.pid' |
---|
23 | ipcsocket='' |
---|
24 | pcdir='$prefix/lib/pkgconfig' |
---|
25 | systemlibdirs="/lib64 /usr/lib64 /usr/local/lib64 /lib /usr/lib /usr/local/lib" |
---|
26 | sysroot='' |
---|
27 | |
---|
28 | configure_args="$@" |
---|
29 | |
---|
30 | # Set these to default-on to let it be overriden by either the user or purple |
---|
31 | # |
---|
32 | # If the user sets one of these to 1, purple won't disable them. |
---|
33 | # Otherwise, if it's still default-on, it gets included in normal builds, |
---|
34 | # but not purple ones. |
---|
35 | msn="default-on" |
---|
36 | jabber="default-on" |
---|
37 | oscar="default-on" |
---|
38 | |
---|
39 | twitter=1 |
---|
40 | purple=0 |
---|
41 | |
---|
42 | verbose=0 |
---|
43 | doc=1 |
---|
44 | debug=0 |
---|
45 | strip=0 |
---|
46 | gcov=0 |
---|
47 | asan=0 |
---|
48 | plugins=1 |
---|
49 | otr=0 |
---|
50 | skype=0 |
---|
51 | |
---|
52 | events=glib |
---|
53 | ssl=auto |
---|
54 | |
---|
55 | pam=0 |
---|
56 | ldap=0 |
---|
57 | |
---|
58 | pie=1 |
---|
59 | |
---|
60 | arch=$(uname -s) |
---|
61 | |
---|
62 | GLIB_MIN_VERSION=2.16 |
---|
63 | |
---|
64 | # Cygwin and Darwin don't support PIC/PIE |
---|
65 | case "$arch" in |
---|
66 | CYGWIN* ) |
---|
67 | pie=0;; |
---|
68 | Darwin ) |
---|
69 | pie=0;; |
---|
70 | esac |
---|
71 | |
---|
72 | get_version() { |
---|
73 | REAL_BITLBEE_VERSION=$(grep '^#define BITLBEE_VERSION ' $srcdir/bitlbee.h | sed 's/.*\"\(.*\)\".*/\1/') |
---|
74 | |
---|
75 | if [ -n "$BITLBEE_VERSION" ]; then |
---|
76 | # environment variable already set to something to spoof it |
---|
77 | # don't replace it with the git stuff |
---|
78 | return |
---|
79 | fi |
---|
80 | |
---|
81 | BITLBEE_VERSION=$REAL_BITLBEE_VERSION |
---|
82 | |
---|
83 | if [ -d $srcdir/.git ] && type git > /dev/null 2> /dev/null; then |
---|
84 | timestamp=$(cd $srcdir; git show -s --format=%ci HEAD | sed 's/ .*$//; s/-//g') |
---|
85 | branch=$(cd $srcdir; git rev-parse --abbrev-ref HEAD) |
---|
86 | |
---|
87 | search='\(.*\)-\([0-9]*\)-\(g[0-9a-f]*\)' |
---|
88 | replace="\1+$timestamp+$branch+\2-\3-git" |
---|
89 | |
---|
90 | describe=$(cd $srcdir; git describe --long --tags 2>/dev/null) |
---|
91 | if [ $? -ne 0 ]; then |
---|
92 | describe=${REAL_BITLBEE_VERSION}-0-g$(cd $srcdir; git rev-parse --short HEAD) |
---|
93 | fi |
---|
94 | |
---|
95 | BITLBEE_VERSION=$(echo $describe | sed "s#$search#$replace#") |
---|
96 | |
---|
97 | unset timestamp branch search replace describe |
---|
98 | fi |
---|
99 | } |
---|
100 | |
---|
101 | if [ "$1" = "--dump-version" ]; then |
---|
102 | srcdir=$(cd $(dirname $0);pwd) |
---|
103 | get_version |
---|
104 | echo $BITLBEE_VERSION |
---|
105 | exit |
---|
106 | fi |
---|
107 | |
---|
108 | echo BitlBee configure |
---|
109 | |
---|
110 | while [ -n "$1" ]; do |
---|
111 | e="$(expr "X$1" : 'X--\(.*=.*\)')" |
---|
112 | if [ -z "$e" ]; then |
---|
113 | cat<<EOF |
---|
114 | |
---|
115 | Usage: $0 [OPTIONS] |
---|
116 | |
---|
117 | Option Description Default |
---|
118 | |
---|
119 | --prefix=... Directories to put files in $prefix |
---|
120 | --bindir=... $bindir |
---|
121 | --sbindir=... $sbindir |
---|
122 | --etcdir=... $etcdir |
---|
123 | --mandir=... $mandir |
---|
124 | --datadir=... $datadir |
---|
125 | --plugindir=... $plugindir |
---|
126 | --systemdsystemunitdir=... $systemdsystemunitdir |
---|
127 | --pidfile=... $pidfile |
---|
128 | --config=... $config |
---|
129 | |
---|
130 | --verbose=0/1 Disable/enable verbose build $verbose |
---|
131 | |
---|
132 | --msn=0/1 Disable/enable MSN part $msn |
---|
133 | --jabber=0/1 Disable/enable Jabber part $jabber |
---|
134 | --oscar=0/1 Disable/enable Oscar part (ICQ, AIM) $oscar |
---|
135 | --twitter=0/1 Disable/enable Twitter part $twitter |
---|
136 | |
---|
137 | --purple=0/1 Disable/enable libpurple support $purple |
---|
138 | (automatically disables other protocol modules) |
---|
139 | |
---|
140 | --pam=0/1 Disable/enable PAM authentication $pam |
---|
141 | --ldap=0/1 Disable/enable LDAP authentication $ldap |
---|
142 | |
---|
143 | --doc=0/1 Disable/enable help.txt generation $doc |
---|
144 | --debug=0/1 Disable/enable debugging $debug |
---|
145 | --strip=0/1 Disable/enable binary stripping $strip |
---|
146 | --pie=0/1 Build position independent executable $pie |
---|
147 | --gcov=0/1 Disable/enable test coverage reporting $gcov |
---|
148 | --asan=0/1 Disable/enable AddressSanitizer $asan |
---|
149 | --plugins=0/1 Disable/enable plugins support $plugins |
---|
150 | --otr=0/1/auto/plugin |
---|
151 | Disable/enable OTR encryption support $otr |
---|
152 | --skype=0/1/plugin |
---|
153 | Disable/enable Skype support $skype |
---|
154 | |
---|
155 | --events=... Event handler (glib, libevent) $events |
---|
156 | --ssl=... SSL library to use (gnutls, nss, openssl, auto) |
---|
157 | $ssl |
---|
158 | |
---|
159 | |
---|
160 | --target=... Cross compilation target same as host |
---|
161 | --sysroot=... Cross compilation sysroot $sysroot |
---|
162 | EOF |
---|
163 | exit; |
---|
164 | fi |
---|
165 | eval "$e" |
---|
166 | shift; |
---|
167 | done |
---|
168 | |
---|
169 | # Expand $prefix and get rid of double slashes |
---|
170 | bindir=$(eval echo "$bindir/" | sed 's/\/\{1,\}/\//g') |
---|
171 | sbindir=$(eval echo "$sbindir/" | sed 's/\/\{1,\}/\//g') |
---|
172 | etcdir=$(eval echo "$etcdir/" | sed 's/\/\{1,\}/\//g') |
---|
173 | mandir=$(eval echo "$mandir/" | sed 's/\/\{1,\}/\//g') |
---|
174 | datadir=$(eval echo "$datadir/" | sed 's/\/\{1,\}/\//g') |
---|
175 | config=$(eval echo "$config/" | sed 's/\/\{1,\}/\//g') |
---|
176 | libdir=$(eval echo "$libdir/" | sed 's/\/\{1,\}/\//g') |
---|
177 | plugindir=$(eval echo "$plugindir/" | sed 's/\/\{1,\}/\//g') |
---|
178 | includedir=$(eval echo "$includedir"/ | sed 's/\/\{1,\}/\//g') |
---|
179 | libevent=$(eval echo "$libevent"/ | sed 's/\/\{1,\}/\//g') |
---|
180 | |
---|
181 | pidfile=$(eval echo "$pidfile" | sed 's/\/\{1,\}/\//g') |
---|
182 | ipcsocket=$(eval echo "$ipcsocket" | sed 's/\/\{1,\}/\//g') |
---|
183 | pcdir=$(eval echo "$pcdir" | sed 's/\/\{1,\}/\//g') |
---|
184 | |
---|
185 | protocols_mods="" |
---|
186 | |
---|
187 | cat <<EOF >Makefile.settings |
---|
188 | ## BitlBee settings, generated by configure |
---|
189 | |
---|
190 | # ./configure $configure_args |
---|
191 | |
---|
192 | PREFIX=$prefix |
---|
193 | BINDIR=$bindir |
---|
194 | SBINDIR=$sbindir |
---|
195 | ETCDIR=$etcdir |
---|
196 | MANDIR=$mandir |
---|
197 | DATADIR=$datadir |
---|
198 | PLUGINDIR=$plugindir |
---|
199 | CONFIG=$config |
---|
200 | LIBDIR=$libdir |
---|
201 | INCLUDEDIR=$includedir |
---|
202 | PCDIR=$pcdir |
---|
203 | |
---|
204 | TARGET=$target |
---|
205 | |
---|
206 | INSTALL=install -p |
---|
207 | |
---|
208 | DESTDIR= |
---|
209 | LFLAGS= |
---|
210 | EFLAGS=-lm |
---|
211 | EOF |
---|
212 | |
---|
213 | srcdir=$(cd $(dirname $0);pwd) |
---|
214 | currdir=$(pwd) |
---|
215 | if [ "$srcdir" != "$currdir" ]; then |
---|
216 | echo |
---|
217 | echo "configure script run from a different directory. Will create some symlinks..." |
---|
218 | if [ ! -e Makefile -o -L Makefile ]; then |
---|
219 | COPYDIRS="doc lib protocols tests utils" |
---|
220 | mkdir -p $(cd "$srcdir"; find $COPYDIRS -type d) |
---|
221 | find . -name Makefile -type l -print0 | xargs -0 rm 2> /dev/null |
---|
222 | dst="$PWD" |
---|
223 | cd "$srcdir" |
---|
224 | for i in $(find . -name Makefile -type f); do |
---|
225 | ln -s "$PWD${i#.}" "$dst/$i"; |
---|
226 | done |
---|
227 | cd "$dst" |
---|
228 | rm -rf .bzr |
---|
229 | fi |
---|
230 | |
---|
231 | echo "_SRCDIR_=$srcdir/" >> Makefile.settings |
---|
232 | CFLAGS="$CFLAGS -I${dst}" |
---|
233 | else |
---|
234 | srcdir=$PWD |
---|
235 | fi |
---|
236 | |
---|
237 | cat<<EOF >config.h |
---|
238 | /* BitlBee settings, generated by configure |
---|
239 | |
---|
240 | Do *NOT* use any of these defines in your code without thinking twice, most |
---|
241 | of them can/will be overridden at run-time */ |
---|
242 | |
---|
243 | #define BITLBEE_CONFIGURE_ARGS "$configure_args" |
---|
244 | |
---|
245 | #define CONFIG "$config" |
---|
246 | #define ETCDIR "$etcdir" |
---|
247 | #define VARDIR "$datadir" |
---|
248 | #define PLUGINDIR "$plugindir" |
---|
249 | #define DATADIR "$datadir" |
---|
250 | #define PIDFILE "$pidfile" |
---|
251 | #define IPCSOCKET "$ipcsocket" |
---|
252 | EOF |
---|
253 | |
---|
254 | |
---|
255 | |
---|
256 | if [ -n "$target" ]; then |
---|
257 | # prepend sysroot to system lib dirs |
---|
258 | |
---|
259 | systemlibdirs_cross='' |
---|
260 | for i in $systemlibdirs; do |
---|
261 | systemlibdirs_cross="$systemlibdirs_cross $sysroot$i" |
---|
262 | done |
---|
263 | systemlibdirs=$systemlibdirs_cross |
---|
264 | unset systemlibdirs_cross |
---|
265 | |
---|
266 | # backward compatibility |
---|
267 | |
---|
268 | if [ -z "$PKG_CONFIG_LIBDIR" ]; then |
---|
269 | PKG_CONFIG_LIBDIR=/usr/$target/lib/pkgconfig |
---|
270 | export PKG_CONFIG_LIBDIR |
---|
271 | fi |
---|
272 | |
---|
273 | if [ -d /usr/$target/bin ]; then |
---|
274 | PATH=/usr/$target/bin:$PATH |
---|
275 | fi |
---|
276 | |
---|
277 | if [ -d /usr/$target/lib ]; then |
---|
278 | systemlibdirs="$systemlibdirs /usr/$target/lib" |
---|
279 | fi |
---|
280 | |
---|
281 | CC=$target-cc |
---|
282 | LD=$target-ld |
---|
283 | STRIP=$target-strip |
---|
284 | fi |
---|
285 | |
---|
286 | if [ "$asan" = "1" ]; then |
---|
287 | CFLAGS="$CFLAGS -fsanitize=address" |
---|
288 | LDFLAGS="$LDFLAGS -fsanitize=address" |
---|
289 | debug=1 |
---|
290 | fi |
---|
291 | |
---|
292 | if [ "$verbose" = "0" ]; then |
---|
293 | echo 'VERBOSE=@' >> Makefile.settings |
---|
294 | else |
---|
295 | echo 'VERBOSE=' >> Makefile.settings |
---|
296 | fi |
---|
297 | |
---|
298 | cat <<EOF >>Makefile.settings |
---|
299 | |
---|
300 | # Enable/disable output verbosity |
---|
301 | ifdef V |
---|
302 | ifeq (\$(V),1) |
---|
303 | VERBOSE= |
---|
304 | else |
---|
305 | VERBOSE=@ |
---|
306 | endif |
---|
307 | endif |
---|
308 | |
---|
309 | EOF |
---|
310 | |
---|
311 | if [ "$debug" = "1" ]; then |
---|
312 | echo 'DEBUG=1' >> Makefile.settings |
---|
313 | CFLAGS="$CFLAGS -g3 -DDEBUG -O0" |
---|
314 | else |
---|
315 | [ -z "$CFLAGS" ] && CFLAGS="-g -O2 -fno-strict-aliasing" |
---|
316 | fi |
---|
317 | |
---|
318 | if [ "$pie" = "1" ]; then |
---|
319 | echo 'CFLAGS_BITLBEE=-fPIE' >> Makefile.settings |
---|
320 | echo 'LDFLAGS_BITLBEE=-pie' >> Makefile.settings |
---|
321 | fi |
---|
322 | |
---|
323 | echo LDFLAGS=$LDFLAGS >> Makefile.settings |
---|
324 | |
---|
325 | echo CFLAGS=$CFLAGS $CPPFLAGS >> Makefile.settings |
---|
326 | echo CFLAGS+=-I${srcdir} -I${srcdir}/lib -I${srcdir}/protocols -I. >> Makefile.settings |
---|
327 | |
---|
328 | echo CFLAGS+=-DHAVE_CONFIG_H -D_GNU_SOURCE >> Makefile.settings |
---|
329 | |
---|
330 | if [ -n "$CC" ]; then |
---|
331 | CC=$CC |
---|
332 | elif type gcc > /dev/null 2> /dev/null; then |
---|
333 | CC=gcc |
---|
334 | elif type cc > /dev/null 2> /dev/null; then |
---|
335 | CC=cc |
---|
336 | else |
---|
337 | echo 'Cannot find a C compiler, aborting.' |
---|
338 | exit 1; |
---|
339 | fi |
---|
340 | |
---|
341 | echo "CC=$CC" >> Makefile.settings; |
---|
342 | if echo $CC | grep -qw gcc; then |
---|
343 | # Apparently -Wall is gcc-specific? |
---|
344 | echo CFLAGS+=-Wall >> Makefile.settings |
---|
345 | fi |
---|
346 | |
---|
347 | if [ -z "$LD" ]; then |
---|
348 | if type ld > /dev/null 2> /dev/null; then |
---|
349 | LD=ld |
---|
350 | else |
---|
351 | echo 'Cannot find ld, aborting.' |
---|
352 | exit 1; |
---|
353 | fi |
---|
354 | fi |
---|
355 | |
---|
356 | echo "LD=$LD" >> Makefile.settings |
---|
357 | |
---|
358 | if [ -z "$PKG_CONFIG" ]; then |
---|
359 | PKG_CONFIG=pkg-config |
---|
360 | fi |
---|
361 | |
---|
362 | if ! $PKG_CONFIG --version > /dev/null 2>/dev/null; then |
---|
363 | echo |
---|
364 | echo 'Cannot find pkg-config, aborting.' |
---|
365 | exit 1 |
---|
366 | fi |
---|
367 | |
---|
368 | if $PKG_CONFIG glib-2.0; then |
---|
369 | if $PKG_CONFIG glib-2.0 --atleast-version=$GLIB_MIN_VERSION; then |
---|
370 | cat<<EOF >>Makefile.settings |
---|
371 | EFLAGS+=$($PKG_CONFIG --libs glib-2.0 gmodule-2.0) |
---|
372 | CFLAGS+=$($PKG_CONFIG --cflags glib-2.0 gmodule-2.0) |
---|
373 | EOF |
---|
374 | else |
---|
375 | echo |
---|
376 | echo 'Found glib2 '$($PKG_CONFIG glib-2.0 --modversion)', but version '$GLIB_MIN_VERSION' or newer is required.' |
---|
377 | exit 1 |
---|
378 | fi |
---|
379 | else |
---|
380 | echo |
---|
381 | echo 'Cannot find glib2 development libraries, aborting. (Install libglib2-dev?)' |
---|
382 | exit 1 |
---|
383 | fi |
---|
384 | |
---|
385 | if [ "$events" = "libevent" ]; then |
---|
386 | if ! [ -f "${libevent}include/event.h" ]; then |
---|
387 | echo |
---|
388 | echo 'Warning: Could not find event.h, you might have to install it and/or specify' |
---|
389 | echo 'its location using the --libevent= argument. (Example: If event.h is in' |
---|
390 | echo '/usr/local/include and binaries are in /usr/local/lib: --libevent=/usr/local)' |
---|
391 | fi |
---|
392 | |
---|
393 | echo '#define EVENTS_LIBEVENT' >> config.h |
---|
394 | cat <<EOF >>Makefile.settings |
---|
395 | EFLAGS+=-levent -L${libevent}lib |
---|
396 | CFLAGS+=-I${libevent}include |
---|
397 | EOF |
---|
398 | elif [ "$events" = "glib" ]; then |
---|
399 | ## We already use glib anyway, so this is all we need (and in fact not even this, but just to be sure...): |
---|
400 | echo '#define EVENTS_GLIB' >> config.h |
---|
401 | else |
---|
402 | echo |
---|
403 | echo 'ERROR: Unknown event handler specified.' |
---|
404 | exit 1 |
---|
405 | fi |
---|
406 | echo 'EVENT_HANDLER=events_'$events'.o' >> Makefile.settings |
---|
407 | |
---|
408 | detect_gnutls() |
---|
409 | { |
---|
410 | if $PKG_CONFIG --exists gnutls; then |
---|
411 | cat <<EOF >>Makefile.settings |
---|
412 | EFLAGS+=$($PKG_CONFIG --libs gnutls) $(libgcrypt-config --libs) |
---|
413 | CFLAGS+=$($PKG_CONFIG --cflags gnutls) $(libgcrypt-config --cflags) |
---|
414 | EOF |
---|
415 | ssl=gnutls |
---|
416 | if ! $PKG_CONFIG gnutls --atleast-version=2.8; then |
---|
417 | echo |
---|
418 | echo 'Warning: With GnuTLS versions <2.8, certificate expire dates are not verified.' |
---|
419 | fi |
---|
420 | ret=1 |
---|
421 | elif libgnutls-config --version > /dev/null 2> /dev/null; then |
---|
422 | cat <<EOF >>Makefile.settings |
---|
423 | EFLAGS+=$(libgnutls-config --libs) $(libgcrypt-config --libs) |
---|
424 | CFLAGS+=$(libgnutls-config --cflags) $(libgcrypt-config --cflags) |
---|
425 | EOF |
---|
426 | |
---|
427 | ssl=gnutls |
---|
428 | ret=1; |
---|
429 | else |
---|
430 | ret=0; |
---|
431 | fi; |
---|
432 | } |
---|
433 | |
---|
434 | detect_nss() |
---|
435 | { |
---|
436 | if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG nss; then |
---|
437 | cat<<EOF >>Makefile.settings |
---|
438 | EFLAGS+=$($PKG_CONFIG --libs nss) |
---|
439 | CFLAGS+=$($PKG_CONFIG --cflags nss) |
---|
440 | EOF |
---|
441 | |
---|
442 | ssl=nss |
---|
443 | ret=1; |
---|
444 | else |
---|
445 | ret=0; |
---|
446 | fi; |
---|
447 | } |
---|
448 | |
---|
449 | RESOLV_TESTCODE=' |
---|
450 | #include <sys/types.h> |
---|
451 | #include <netinet/in.h> |
---|
452 | #include <arpa/nameser.h> |
---|
453 | #include <resolv.h> |
---|
454 | |
---|
455 | int main() |
---|
456 | { |
---|
457 | |
---|
458 | res_query( NULL, 0, 0, NULL, 0); |
---|
459 | dn_expand( NULL, NULL, NULL, NULL, 0); |
---|
460 | dn_skipname( NULL, NULL); |
---|
461 | } |
---|
462 | ' |
---|
463 | RESOLV_NS_TESTCODE=' |
---|
464 | #include <sys/types.h> |
---|
465 | #include <netinet/in.h> |
---|
466 | #include <arpa/nameser.h> |
---|
467 | #include <resolv.h> |
---|
468 | |
---|
469 | int main() |
---|
470 | { |
---|
471 | ns_initparse( NULL, 0, NULL ); |
---|
472 | ns_parserr( NULL, ns_s_an, 0, NULL ); |
---|
473 | } |
---|
474 | ' |
---|
475 | RESOLV_NS_TYPES_TESTCODE=' |
---|
476 | #include <sys/types.h> |
---|
477 | #include <netinet/in.h> |
---|
478 | #include <arpa/nameser.h> |
---|
479 | |
---|
480 | int main() |
---|
481 | { |
---|
482 | ns_msg nsh; |
---|
483 | ns_rr rr; |
---|
484 | |
---|
485 | /* Not all platforms we want to work on have |
---|
486 | ns_* routines, so use this to make sure |
---|
487 | the compiler uses it.*/ |
---|
488 | return (int)(sizeof(nsh) + sizeof(rr)); |
---|
489 | } |
---|
490 | ' |
---|
491 | |
---|
492 | detect_resolv_dynamic() |
---|
493 | { |
---|
494 | case "$arch" in |
---|
495 | OpenBSD ) |
---|
496 | # In FreeBSD res_*/dn_* routines are present in libc.so |
---|
497 | LIBRESOLV=;; |
---|
498 | FreeBSD ) |
---|
499 | # In FreeBSD res_*/dn_* routines are present in libc.so |
---|
500 | LIBRESOLV=;; |
---|
501 | CYGWIN* ) |
---|
502 | # In Cygwin res_*/dn_* routines are present in libc.so |
---|
503 | LIBRESOLV=;; |
---|
504 | * ) |
---|
505 | LIBRESOLV=-lresolv;; |
---|
506 | esac |
---|
507 | TMPFILE=$(mktemp /tmp/bitlbee-configure.XXXXXX) |
---|
508 | ret=1 |
---|
509 | echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - $LIBRESOLV >/dev/null 2>/dev/null |
---|
510 | if [ "$?" = "0" ]; then |
---|
511 | echo "EFLAGS+=$LIBRESOLV" >> Makefile.settings |
---|
512 | ret=0 |
---|
513 | fi |
---|
514 | |
---|
515 | rm -f $TMPFILE |
---|
516 | return $ret |
---|
517 | } |
---|
518 | |
---|
519 | detect_resolv_static() |
---|
520 | { |
---|
521 | TMPFILE=$(mktemp /tmp/bitlbee-configure.XXXXXX) |
---|
522 | ret=1 |
---|
523 | for i in $systemlibdirs; do |
---|
524 | if [ -f $i/libresolv.a ]; then |
---|
525 | echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - -Wl,$i/libresolv.a >/dev/null 2>/dev/null |
---|
526 | if [ "$?" = "0" ]; then |
---|
527 | echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings |
---|
528 | ret=0 |
---|
529 | fi |
---|
530 | fi |
---|
531 | done |
---|
532 | |
---|
533 | rm -f $TMPFILE |
---|
534 | return $ret |
---|
535 | } |
---|
536 | |
---|
537 | detect_resolv_ns_dynamic() |
---|
538 | { |
---|
539 | case "$arch" in |
---|
540 | FreeBSD ) |
---|
541 | # In FreeBSD ns_ routines are present in libc.so |
---|
542 | LIBRESOLV=;; |
---|
543 | * ) |
---|
544 | LIBRESOLV=-lresolv;; |
---|
545 | esac |
---|
546 | TMPFILE=$(mktemp /tmp/bitlbee-configure.XXXXXX) |
---|
547 | ret=1 |
---|
548 | echo "$RESOLV_NS_TESTCODE" | $CC -o $TMPFILE -x c - $LIBRESOLV >/dev/null 2>/dev/null |
---|
549 | if [ "$?" = "0" ]; then |
---|
550 | ret=0 |
---|
551 | fi |
---|
552 | |
---|
553 | rm -f $TMPFILE |
---|
554 | return $ret |
---|
555 | } |
---|
556 | |
---|
557 | detect_resolv_ns_static() |
---|
558 | { |
---|
559 | TMPFILE=$(mktemp /tmp/bitlbee-configure.XXXXXX) |
---|
560 | ret=1 |
---|
561 | for i in $systemlibdirs; do |
---|
562 | if [ -f $i/libresolv.a ]; then |
---|
563 | echo "$RESOLV_NS_TESTCODE" | $CC -o $TMPFILE -x c - -Wl,$i/libresolv.a >/dev/null 2>/dev/null |
---|
564 | if [ "$?" = "0" ]; then |
---|
565 | ret=0 |
---|
566 | fi |
---|
567 | fi |
---|
568 | done |
---|
569 | |
---|
570 | rm -f $TMPFILE |
---|
571 | return $ret |
---|
572 | } |
---|
573 | |
---|
574 | detect_nameser_has_ns_types() |
---|
575 | { |
---|
576 | TMPFILE=$(mktemp /tmp/bitlbee-configure.XXXXXX) |
---|
577 | ret=1 |
---|
578 | # since we aren't actually linking with ns_* routines |
---|
579 | # we can just compile the test code |
---|
580 | echo "$RESOLV_NS_TYPES_TESTCODE" | $CC -o $TMPFILE -x c - >/dev/null 2>/dev/null |
---|
581 | if [ "$?" = "0" ]; then |
---|
582 | ret=0 |
---|
583 | fi |
---|
584 | |
---|
585 | rm -f $TMPFILE |
---|
586 | return $ret |
---|
587 | } |
---|
588 | |
---|
589 | if [ "$ssl" = "auto" ]; then |
---|
590 | detect_gnutls |
---|
591 | if [ "$ret" = "0" ]; then |
---|
592 | # Disable NSS for now as it's known to not work very well ATM. |
---|
593 | #detect_nss |
---|
594 | : |
---|
595 | fi |
---|
596 | elif [ "$ssl" = "gnutls" ]; then |
---|
597 | detect_gnutls |
---|
598 | elif [ "$ssl" = "nss" ]; then |
---|
599 | detect_nss |
---|
600 | elif [ "$ssl" = "openssl" ]; then |
---|
601 | echo |
---|
602 | echo 'No detection code exists for OpenSSL. Make sure that you have a complete' |
---|
603 | echo 'installation of OpenSSL (including devel/header files) before reporting' |
---|
604 | echo 'compilation problems.' |
---|
605 | echo |
---|
606 | echo 'Also, keep in mind that the OpenSSL is, according to some people, not' |
---|
607 | echo 'completely GPL-compatible. Using GnuTLS is recommended and better supported' |
---|
608 | echo 'by us. However, on many BSD machines, OpenSSL can be considered part of the' |
---|
609 | echo 'operating system, which makes it GPL-compatible.' |
---|
610 | echo |
---|
611 | echo 'For more info, see: http://www.openssl.org/support/faq.html#LEGAL2' |
---|
612 | echo ' http://www.gnome.org/~markmc/openssl-and-the-gpl.html' |
---|
613 | echo |
---|
614 | echo 'Please note that distributing a BitlBee binary which links to OpenSSL is' |
---|
615 | echo 'probably illegal. If you want to create and distribute a binary BitlBee' |
---|
616 | echo 'package, you really should use GnuTLS instead.' |
---|
617 | echo |
---|
618 | echo 'Also, the OpenSSL license requires us to say this:' |
---|
619 | echo ' * "This product includes software developed by the OpenSSL Project' |
---|
620 | echo ' * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"' |
---|
621 | |
---|
622 | echo 'EFLAGS+=-lssl -lcrypto' >> Makefile.settings |
---|
623 | |
---|
624 | ret=1 |
---|
625 | else |
---|
626 | echo |
---|
627 | echo 'ERROR: Unknown SSL library specified.' |
---|
628 | exit 1 |
---|
629 | fi |
---|
630 | |
---|
631 | if [ "$ret" = "0" ]; then |
---|
632 | echo |
---|
633 | echo 'ERROR: Could not find a suitable SSL library (GnuTLS, libnss or OpenSSL).' |
---|
634 | echo ' Please note that this script doesn'\''t have detection code for OpenSSL,' |
---|
635 | echo ' so if you want to use that, you have to select it by hand.' |
---|
636 | |
---|
637 | exit 1 |
---|
638 | fi; |
---|
639 | |
---|
640 | echo 'SSL_CLIENT=ssl_'$ssl'.o' >> Makefile.settings |
---|
641 | |
---|
642 | if detect_nameser_has_ns_types; then |
---|
643 | echo '#define NAMESER_HAS_NS_TYPES' >> config.h |
---|
644 | fi |
---|
645 | if detect_resolv_dynamic || detect_resolv_static; then |
---|
646 | echo '#define HAVE_RESOLV_A' >> config.h |
---|
647 | if detect_resolv_ns_dynamic || detect_resolv_ns_static; then |
---|
648 | echo '#define HAVE_RESOLV_A_WITH_NS' >> config.h |
---|
649 | fi |
---|
650 | else |
---|
651 | echo 'Insufficient resolv routines. Jabber server must be set explicitly' |
---|
652 | fi |
---|
653 | |
---|
654 | |
---|
655 | STORAGES="xml" |
---|
656 | |
---|
657 | for i in $STORAGES; do |
---|
658 | STORAGE_OBJS="$STORAGE_OBJS storage_$i.o" |
---|
659 | done |
---|
660 | echo "STORAGE_OBJS="$STORAGE_OBJS >> Makefile.settings |
---|
661 | |
---|
662 | authobjs= |
---|
663 | authlibs= |
---|
664 | if [ "$pam" = 0 ]; then |
---|
665 | echo '#undef WITH_PAM' >> config.h |
---|
666 | else |
---|
667 | if ! echo '#include <security/pam_appl.h>' | $CC -E - >/dev/null 2>/dev/null; then |
---|
668 | echo 'Cannot find libpam development libraries, aborting. (Install libpam0g-dev?)' |
---|
669 | exit 1 |
---|
670 | fi |
---|
671 | echo '#define WITH_PAM' >> config.h |
---|
672 | authobjs=$authobjs'auth_pam.o ' |
---|
673 | authlibs=$authlibs'-lpam ' |
---|
674 | fi |
---|
675 | if [ "$ldap" = 0 ]; then |
---|
676 | echo '#undef WITH_LDAP' >> config.h |
---|
677 | else |
---|
678 | if ! echo '#include <ldap.h>' | $CC -E - >/dev/null 2>/dev/null; then |
---|
679 | echo 'Cannot find libldap development libraries, aborting. (Install libldap2-dev?)' |
---|
680 | exit 1 |
---|
681 | fi |
---|
682 | echo '#define WITH_LDAP' >> config.h |
---|
683 | authobjs=$authobjs'auth_ldap.o ' |
---|
684 | authlibs=$authlibs'-lldap ' |
---|
685 | fi |
---|
686 | echo AUTH_OBJS=$authobjs >> Makefile.settings |
---|
687 | echo EFLAGS+=$authlibs >> Makefile.settings |
---|
688 | |
---|
689 | if [ "$strip" = 0 ]; then |
---|
690 | echo "STRIP=\# skip strip" >> Makefile.settings; |
---|
691 | else |
---|
692 | if [ "$debug" = 1 ]; then |
---|
693 | echo |
---|
694 | echo 'Stripping binaries does not make sense when debugging. Stripping disabled.' |
---|
695 | echo 'STRIP=\# skip strip' >> Makefile.settings |
---|
696 | strip=0; |
---|
697 | elif [ -n "$STRIP" ]; then |
---|
698 | echo "STRIP=$STRIP" >> Makefile.settings; |
---|
699 | elif type strip > /dev/null 2> /dev/null; then |
---|
700 | echo "STRIP=strip" >> Makefile.settings; |
---|
701 | else |
---|
702 | echo |
---|
703 | echo 'No strip utility found, cannot remove unnecessary parts from executable.' |
---|
704 | echo 'STRIP=\# skip strip' >> Makefile.settings |
---|
705 | strip=0; |
---|
706 | fi; |
---|
707 | fi |
---|
708 | |
---|
709 | if [ -z "$systemdsystemunitdir" ]; then |
---|
710 | if $PKG_CONFIG --exists systemd; then |
---|
711 | systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd) |
---|
712 | fi |
---|
713 | fi |
---|
714 | if [ -n "$systemdsystemunitdir" ]; then |
---|
715 | if [ "$systemdsystemunitdir" != "no" ]; then |
---|
716 | echo "SYSTEMDSYSTEMUNITDIR=$systemdsystemunitdir" >> Makefile.settings |
---|
717 | fi |
---|
718 | fi |
---|
719 | |
---|
720 | if [ "$gcov" = "1" ]; then |
---|
721 | echo "CFLAGS+=--coverage" >> Makefile.settings |
---|
722 | echo "EFLAGS+=--coverage" >> Makefile.settings |
---|
723 | fi |
---|
724 | |
---|
725 | if [ "$plugins" = 0 ]; then |
---|
726 | plugindir="" |
---|
727 | echo '#undef WITH_PLUGINS' >> config.h |
---|
728 | else |
---|
729 | echo '#define WITH_PLUGINS' >> config.h |
---|
730 | fi |
---|
731 | |
---|
732 | otrprefix="" |
---|
733 | if [ "$otr" = "auto" ]; then |
---|
734 | ! $PKG_CONFIG --exists libotr |
---|
735 | otr=$? |
---|
736 | fi |
---|
737 | |
---|
738 | if [ "$otr" != 0 ] && ! $PKG_CONFIG --atleast-version=4.0 --print-errors libotr; then |
---|
739 | exit 1 |
---|
740 | fi |
---|
741 | |
---|
742 | if [ "$otr" = 1 ]; then |
---|
743 | # BI == built-in |
---|
744 | echo '#define OTR_BI' >> config.h |
---|
745 | echo "EFLAGS+=$($PKG_CONFIG --libs libotr) $(libgcrypt-config --libs)" >> Makefile.settings |
---|
746 | echo "CFLAGS+=$($PKG_CONFIG --cflags libotr) $(libgcrypt-config --cflags)" >> Makefile.settings |
---|
747 | echo 'OTR_BI=otr.o' >> Makefile.settings |
---|
748 | elif [ "$otr" = "plugin" ]; then |
---|
749 | # for some mysterious reason beyond the comprehension of my mortal mind, |
---|
750 | # the libgcrypt flags aren't needed when building as plugin. add them anyway. |
---|
751 | echo '#define OTR_PI' >> config.h |
---|
752 | echo "OTRFLAGS=$($PKG_CONFIG --libs libotr) $(libgcrypt-config --libs)" >> Makefile.settings |
---|
753 | echo "CFLAGS+=$($PKG_CONFIG --cflags libotr) $(libgcrypt-config --cflags)" >> Makefile.settings |
---|
754 | echo 'OTR_PI=otr.so' >> Makefile.settings |
---|
755 | fi |
---|
756 | |
---|
757 | if [ "$skype" = "1" -o "$skype" = "plugin" ]; then |
---|
758 | if [ "$arch" = "Darwin" ]; then |
---|
759 | echo "SKYPEFLAGS=-dynamiclib -undefined dynamic_lookup" >> Makefile.settings |
---|
760 | else |
---|
761 | echo "SKYPEFLAGS=-fPIC -shared" >> Makefile.settings |
---|
762 | fi |
---|
763 | echo 'SKYPE_PI=skype.so' >> Makefile.settings |
---|
764 | protocols_mods="$protocol_mods skype(plugin)" |
---|
765 | fi |
---|
766 | |
---|
767 | if [ -z "$PYTHON" ]; then |
---|
768 | PYTHON=python |
---|
769 | fi |
---|
770 | |
---|
771 | if [ "$doc" = "1" ]; then |
---|
772 | # check this here just in case someone tries to install it in python2.4... |
---|
773 | if [ ! -e $srcdir/doc/user-guide/help.txt ] && ! $PYTHON -m xml.etree.ElementTree > /dev/null 2>&1; then |
---|
774 | echo |
---|
775 | echo 'ERROR: Python (>=2.5 or 3.x) is required to generate docs' |
---|
776 | echo "(Use the PYTHON environment variable if it's in a weird location)" |
---|
777 | exit 1 |
---|
778 | fi |
---|
779 | echo "DOC=1" >> Makefile.settings |
---|
780 | echo "PYTHON=$PYTHON" >> Makefile.settings |
---|
781 | fi |
---|
782 | |
---|
783 | get_version |
---|
784 | |
---|
785 | if [ "$BITLBEE_VERSION" != "$REAL_BITLBEE_VERSION" ]; then |
---|
786 | echo 'Spoofing version number: '$BITLBEE_VERSION |
---|
787 | echo '#undef BITLBEE_VERSION' >> config.h |
---|
788 | echo '#define BITLBEE_VERSION "'$BITLBEE_VERSION'"' >> config.h |
---|
789 | echo |
---|
790 | fi |
---|
791 | |
---|
792 | if ! make helloworld > /dev/null 2>&1; then |
---|
793 | echo "WARNING: Your version of make (BSD make?) does not support BitlBee's makefiles." |
---|
794 | echo "BitlBee needs GNU make to build properly. On most systems GNU make is available" |
---|
795 | echo "under the name 'gmake'." |
---|
796 | echo |
---|
797 | if gmake helloworld > /dev/null 2>&1; then |
---|
798 | echo "gmake seems to be available on your machine, great." |
---|
799 | echo |
---|
800 | else |
---|
801 | echo "gmake is not installed (or not working). Please try to install it." |
---|
802 | echo |
---|
803 | fi |
---|
804 | fi |
---|
805 | |
---|
806 | pkgconfiglibs='' |
---|
807 | case "$arch" in |
---|
808 | CYGWIN* ) |
---|
809 | pkgconfiglibs='-L${libdir} -lbitlbee -no-undefined' |
---|
810 | esac |
---|
811 | |
---|
812 | cat <<EOF >bitlbee.pc |
---|
813 | prefix=$prefix |
---|
814 | includedir=$includedir |
---|
815 | plugindir=$plugindir |
---|
816 | libdir=$libdir |
---|
817 | datadir=$datadir |
---|
818 | |
---|
819 | Name: bitlbee |
---|
820 | Description: IRC to IM gateway |
---|
821 | Requires: glib-2.0 |
---|
822 | Version: $BITLBEE_VERSION |
---|
823 | Libs: $pkgconfiglibs |
---|
824 | Cflags: -I\${includedir} |
---|
825 | |
---|
826 | EOF |
---|
827 | |
---|
828 | protocols='' |
---|
829 | protoobjs='' |
---|
830 | |
---|
831 | if [ "$purple" = 0 ]; then |
---|
832 | echo '#undef WITH_PURPLE' >> config.h |
---|
833 | else |
---|
834 | if ! $PKG_CONFIG purple; then |
---|
835 | echo |
---|
836 | echo 'Cannot find libpurple development libraries, aborting. (Install libpurple-dev?)' |
---|
837 | exit 1 |
---|
838 | fi |
---|
839 | echo '#define WITH_PURPLE' >> config.h |
---|
840 | cat<<EOF >>Makefile.settings |
---|
841 | EFLAGS += $($PKG_CONFIG purple --libs) |
---|
842 | PURPLE_CFLAGS += $($PKG_CONFIG purple --cflags) |
---|
843 | EOF |
---|
844 | protocols=$protocols'purple ' |
---|
845 | protoobjs=$protoobjs'purple_mod.o ' |
---|
846 | |
---|
847 | # only disable these if the user didn't enable them explicitly |
---|
848 | [ "$msn" = "default-on" ] && msn=0 |
---|
849 | [ "$jabber" = "default-on" ] && jabber=0 |
---|
850 | [ "$oscar" = "default-on" ] && oscar=0 |
---|
851 | |
---|
852 | echo '#undef PACKAGE' >> config.h |
---|
853 | echo '#define PACKAGE "BitlBee-LIBPURPLE"' >> config.h |
---|
854 | |
---|
855 | if [ "$events" = "libevent" ]; then |
---|
856 | echo 'Warning: Some libpurple modules (including msn-pecan) do their event handling' |
---|
857 | echo 'outside libpurple, talking to GLib directly. At least for now the combination' |
---|
858 | echo 'libpurple + libevent is *not* recommended!' |
---|
859 | echo |
---|
860 | fi |
---|
861 | fi |
---|
862 | |
---|
863 | case "$CC" in |
---|
864 | *gcc* ) |
---|
865 | echo CFLAGS+=-MMD -MF .depend/\$@.d >> Makefile.settings |
---|
866 | for i in . lib tests protocols protocols/*/; do |
---|
867 | mkdir -p $i/.depend |
---|
868 | done |
---|
869 | esac |
---|
870 | |
---|
871 | if [ "$msn" = 0 ]; then |
---|
872 | echo '#undef WITH_MSN' >> config.h |
---|
873 | else |
---|
874 | echo '#define WITH_MSN' >> config.h |
---|
875 | protocols=$protocols'msn ' |
---|
876 | protoobjs=$protoobjs'msn_mod.o ' |
---|
877 | fi |
---|
878 | |
---|
879 | if [ "$jabber" = 0 ]; then |
---|
880 | echo '#undef WITH_JABBER' >> config.h |
---|
881 | else |
---|
882 | echo '#define WITH_JABBER' >> config.h |
---|
883 | protocols=$protocols'jabber ' |
---|
884 | protoobjs=$protoobjs'jabber_mod.o ' |
---|
885 | fi |
---|
886 | |
---|
887 | if [ "$oscar" = 0 ]; then |
---|
888 | echo '#undef WITH_OSCAR' >> config.h |
---|
889 | else |
---|
890 | echo '#define WITH_OSCAR' >> config.h |
---|
891 | protocols=$protocols'oscar ' |
---|
892 | protoobjs=$protoobjs'oscar_mod.o ' |
---|
893 | fi |
---|
894 | |
---|
895 | if [ "$twitter" = 0 ]; then |
---|
896 | echo '#undef WITH_TWITTER' >> config.h |
---|
897 | else |
---|
898 | echo '#define WITH_TWITTER' >> config.h |
---|
899 | protocols=$protocols'twitter ' |
---|
900 | protoobjs=$protoobjs'twitter_mod.o ' |
---|
901 | fi |
---|
902 | |
---|
903 | if [ "$protocols" = "PROTOCOLS = " ]; then |
---|
904 | echo "Warning: You haven't selected any communication protocol to compile!" |
---|
905 | echo " BitlBee will run, but you will be unable to connect to IM servers!" |
---|
906 | fi |
---|
907 | |
---|
908 | echo "PROTOCOLS = $protocols" >> Makefile.settings |
---|
909 | echo "PROTOOBJS = $protoobjs" >> Makefile.settings |
---|
910 | |
---|
911 | echo Architecture: $arch |
---|
912 | case "$arch" in |
---|
913 | Linux ) |
---|
914 | ;; |
---|
915 | GNU/* ) |
---|
916 | ;; |
---|
917 | *BSD ) |
---|
918 | ;; |
---|
919 | Darwin ) |
---|
920 | echo 'STRIP=\# skip strip' >> Makefile.settings |
---|
921 | ;; |
---|
922 | IRIX ) |
---|
923 | ;; |
---|
924 | SunOS ) |
---|
925 | echo 'EFLAGS+=-lresolv -lnsl -lsocket' >> Makefile.settings |
---|
926 | echo 'STRIP=\# skip strip' >> Makefile.settings |
---|
927 | echo '#define NO_FD_PASSING' >> config.h |
---|
928 | ;; |
---|
929 | AIX ) |
---|
930 | echo 'EFLAGS+=-Wl,-brtl' >> Makefile.settings |
---|
931 | ;; |
---|
932 | CYGWIN* ) |
---|
933 | echo 'EFLAGS+=-Wl,--export-all,--out-implib,libbitlbee.dll.a' >> Makefile.settings |
---|
934 | echo 'IMPLIB=libbitlbee.dll.a' >> Makefile.settings |
---|
935 | ;; |
---|
936 | Windows ) |
---|
937 | echo 'Native windows compilation is not supported anymore, use cygwin instead.' |
---|
938 | ;; |
---|
939 | * ) |
---|
940 | echo 'We haven'\''t tested BitlBee on many platforms yet, yours is untested. YMMV.' |
---|
941 | echo 'Please report any problems at http://bugs.bitlbee.org/.' |
---|
942 | ;; |
---|
943 | esac |
---|
944 | |
---|
945 | if [ -n "$target" ]; then |
---|
946 | echo "Cross-compiling for: $target" |
---|
947 | fi |
---|
948 | |
---|
949 | echo |
---|
950 | echo 'Configuration done:' |
---|
951 | |
---|
952 | if [ "$debug" = "1" ]; then |
---|
953 | echo ' Debugging enabled.' |
---|
954 | else |
---|
955 | echo ' Debugging disabled.' |
---|
956 | fi |
---|
957 | |
---|
958 | if [ "$asan" = "1" ]; then |
---|
959 | echo ' AddressSanitizer (ASAN) enabled.' |
---|
960 | else |
---|
961 | echo ' AddressSanitizer (ASAN) disabled.' |
---|
962 | fi |
---|
963 | |
---|
964 | if [ "$pie" = "1" ]; then |
---|
965 | echo ' Building PIE executable' |
---|
966 | else |
---|
967 | echo ' Building non-PIE executable' |
---|
968 | fi |
---|
969 | |
---|
970 | if [ "$strip" = "1" ]; then |
---|
971 | echo ' Binary stripping enabled.' |
---|
972 | else |
---|
973 | echo ' Binary stripping disabled.' |
---|
974 | fi |
---|
975 | |
---|
976 | if [ "$otr" = "1" ]; then |
---|
977 | echo ' Off-the-Record (OTR) Messaging enabled.' |
---|
978 | elif [ "$otr" = "plugin" ]; then |
---|
979 | echo ' Off-the-Record (OTR) Messaging enabled (as a plugin).' |
---|
980 | else |
---|
981 | echo ' Off-the-Record (OTR) Messaging disabled.' |
---|
982 | fi |
---|
983 | |
---|
984 | if [ -n "$systemdsystemunitdir" ]; then |
---|
985 | echo ' systemd enabled.' |
---|
986 | else |
---|
987 | echo ' systemd disabled.' |
---|
988 | fi |
---|
989 | |
---|
990 | echo ' Using event handler: '$events |
---|
991 | echo ' Using SSL library: '$ssl |
---|
992 | #echo ' Building with these storage backends: '$STORAGES |
---|
993 | |
---|
994 | if [ -n "$protocols" ]; then |
---|
995 | echo ' Building with these protocols:' $protocols$protocols_mods |
---|
996 | case "$protocols" in |
---|
997 | *purple*) |
---|
998 | echo " Note that BitlBee-libpurple is supported on a best-effort basis. It's" |
---|
999 | echo " not *fully* compatible with normal BitlBee. Don't use it unless you" |
---|
1000 | echo " absolutely need it (i.e. support for a certain protocol or feature)." |
---|
1001 | esac |
---|
1002 | else |
---|
1003 | echo ' Building without IM-protocol support. We wish you a lot of fun...' |
---|
1004 | fi |
---|