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/sbin/' |
---|
12 | etcdir='$prefix/etc/bitlbee/' |
---|
13 | mandir='$prefix/share/man/' |
---|
14 | datadir='$prefix/share/bitlbee/' |
---|
15 | config='/var/lib/bitlbee/' |
---|
16 | plugindir='$prefix/lib/bitlbee/' |
---|
17 | includedir='$prefix/include/bitlbee/' |
---|
18 | libevent='/usr/' |
---|
19 | pidfile='/var/run/bitlbee.pid' |
---|
20 | ipcsocket='/var/run/bitlbee.sock' |
---|
21 | pcdir='$prefix/lib/pkgconfig' |
---|
22 | systemlibdirs="/lib /usr/lib /usr/local/lib" |
---|
23 | |
---|
24 | msn=1 |
---|
25 | jabber=1 |
---|
26 | oscar=1 |
---|
27 | yahoo=1 |
---|
28 | purple=0 |
---|
29 | |
---|
30 | debug=0 |
---|
31 | strip=1 |
---|
32 | gcov=0 |
---|
33 | plugins=1 |
---|
34 | |
---|
35 | events=glib |
---|
36 | ldap=0 |
---|
37 | ssl=auto |
---|
38 | |
---|
39 | arch=`uname -s` |
---|
40 | cpu=`uname -m` |
---|
41 | |
---|
42 | GLIB_MIN_VERSION=2.4 |
---|
43 | |
---|
44 | echo BitlBee configure |
---|
45 | |
---|
46 | while [ -n "$1" ]; do |
---|
47 | e="`expr "X$1" : 'X--\(.*=.*\)'`" |
---|
48 | if [ -z "$e" ]; then |
---|
49 | cat<<EOF |
---|
50 | |
---|
51 | Usage: $0 [OPTIONS] |
---|
52 | |
---|
53 | Option Description Default |
---|
54 | |
---|
55 | --prefix=... Directories to put files in $prefix |
---|
56 | --bindir=... $bindir |
---|
57 | --etcdir=... $etcdir |
---|
58 | --mandir=... $mandir |
---|
59 | --datadir=... $datadir |
---|
60 | --plugindir=... $plugindir |
---|
61 | --pidfile=... $pidfile |
---|
62 | --config=... $config |
---|
63 | --ipcsocket=... $ipcsocket |
---|
64 | |
---|
65 | --msn=0/1 Disable/enable MSN part $msn |
---|
66 | --jabber=0/1 Disable/enable Jabber part $jabber |
---|
67 | --oscar=0/1 Disable/enable Oscar part (ICQ, AIM) $oscar |
---|
68 | --yahoo=0/1 Disable/enable Yahoo part $yahoo |
---|
69 | |
---|
70 | --purple=0/1 Disable/enable libpurple support $purple |
---|
71 | |
---|
72 | --debug=0/1 Disable/enable debugging $debug |
---|
73 | --strip=0/1 Disable/enable binary stripping $strip |
---|
74 | --gcov=0/1 Disable/enable test coverage reporting $gcov |
---|
75 | --plugins=0/1 Disable/enable plugins support $plugins |
---|
76 | |
---|
77 | --events=... Event handler (glib, libevent) $events |
---|
78 | --ssl=... SSL library to use (gnutls, nss, openssl, bogus, auto) |
---|
79 | $ssl |
---|
80 | |
---|
81 | --target=... Cross compilation target same as host |
---|
82 | EOF |
---|
83 | exit; |
---|
84 | fi |
---|
85 | eval "$e" |
---|
86 | shift; |
---|
87 | done |
---|
88 | |
---|
89 | # Expand $prefix and get rid of double slashes |
---|
90 | bindir=`eval echo "$bindir/" | sed 's/\/\{1,\}/\//g'` |
---|
91 | etcdir=`eval echo "$etcdir/" | sed 's/\/\{1,\}/\//g'` |
---|
92 | mandir=`eval echo "$mandir/" | sed 's/\/\{1,\}/\//g'` |
---|
93 | datadir=`eval echo "$datadir/" | sed 's/\/\{1,\}/\//g'` |
---|
94 | config=`eval echo "$config/" | sed 's/\/\{1,\}/\//g'` |
---|
95 | plugindir=`eval echo "$plugindir/" | sed 's/\/\{1,\}/\//g'` |
---|
96 | includedir=`eval echo "$includedir"/ | sed 's/\/\{1,\}/\//g'` |
---|
97 | libevent=`eval echo "$libevent"/ | sed 's/\/\{1,\}/\//g'` |
---|
98 | |
---|
99 | pidfile=`eval echo "$pidfile" | sed 's/\/\{1,\}/\//g'` |
---|
100 | ipcsocket=`eval echo "$ipcsocket" | sed 's/\/\{1,\}/\//g'` |
---|
101 | pcdir=`eval echo "$pcdir" | sed 's/\/\{1,\}/\//g'` |
---|
102 | |
---|
103 | cat<<EOF>Makefile.settings |
---|
104 | ## BitlBee settings, generated by configure |
---|
105 | PREFIX=$prefix |
---|
106 | BINDIR=$bindir |
---|
107 | ETCDIR=$etcdir |
---|
108 | MANDIR=$mandir |
---|
109 | DATADIR=$datadir |
---|
110 | PLUGINDIR=$plugindir |
---|
111 | CONFIG=$config |
---|
112 | INCLUDEDIR=$includedir |
---|
113 | PCDIR=$pcdir |
---|
114 | |
---|
115 | TARGET=$target |
---|
116 | ARCH=$arch |
---|
117 | CPU=$cpu |
---|
118 | |
---|
119 | DESTDIR= |
---|
120 | LFLAGS= |
---|
121 | EFLAGS= |
---|
122 | EOF |
---|
123 | |
---|
124 | cat<<EOF>config.h |
---|
125 | /* BitlBee settings, generated by configure |
---|
126 | |
---|
127 | Do *NOT* use any of these defines in your code without thinking twice, most |
---|
128 | of them can/will be overridden at run-time */ |
---|
129 | |
---|
130 | #define CONFIG "$config" |
---|
131 | #define ETCDIR "$etcdir" |
---|
132 | #define VARDIR "$datadir" |
---|
133 | #define PLUGINDIR "$plugindir" |
---|
134 | #define PIDFILE "$pidfile" |
---|
135 | #define IPCSOCKET "$ipcsocket" |
---|
136 | #define ARCH "$arch" |
---|
137 | #define CPU "$cpu" |
---|
138 | EOF |
---|
139 | |
---|
140 | |
---|
141 | |
---|
142 | if [ -n "$target" ]; then |
---|
143 | PKG_CONFIG_LIBDIR=/usr/$target/lib/pkgconfig |
---|
144 | export PKG_CONFIG_LIBDIR |
---|
145 | PATH=/usr/$target/bin:$PATH |
---|
146 | CC=$target-cc |
---|
147 | LD=$target-ld |
---|
148 | systemlibdirs="/usr/$target/lib" |
---|
149 | fi |
---|
150 | |
---|
151 | |
---|
152 | if [ "$debug" = "1" ]; then |
---|
153 | [ -z "$CFLAGS" ] && CFLAGS=-g |
---|
154 | echo 'DEBUG=1' >> Makefile.settings |
---|
155 | CFLAGS="$CFLAGS -DDEBUG" |
---|
156 | else |
---|
157 | [ -z "$CFLAGS" ] && CFLAGS="-O2 -fno-strict-aliasing" |
---|
158 | fi |
---|
159 | |
---|
160 | echo CFLAGS=$CFLAGS >> Makefile.settings |
---|
161 | echo CFLAGS+=-I`pwd` -I`pwd`/lib -I`pwd`/protocols -I. >> Makefile.settings |
---|
162 | |
---|
163 | echo CFLAGS+=-DHAVE_CONFIG_H >> Makefile.settings |
---|
164 | |
---|
165 | if [ -n "$CC" ]; then |
---|
166 | CC=$CC |
---|
167 | elif type gcc > /dev/null 2> /dev/null; then |
---|
168 | CC=gcc |
---|
169 | elif type cc > /dev/null 2> /dev/null; then |
---|
170 | CC=cc |
---|
171 | else |
---|
172 | echo 'Cannot find a C compiler, aborting.' |
---|
173 | exit 1; |
---|
174 | fi |
---|
175 | |
---|
176 | echo "CC=$CC" >> Makefile.settings; |
---|
177 | |
---|
178 | if [ -z "$LD" ]; then |
---|
179 | if type ld > /dev/null 2> /dev/null; then |
---|
180 | LD=ld |
---|
181 | else |
---|
182 | echo 'Cannot find ld, aborting.' |
---|
183 | exit 1; |
---|
184 | fi |
---|
185 | fi |
---|
186 | |
---|
187 | echo "LD=$LD" >> Makefile.settings |
---|
188 | |
---|
189 | if [ -z "$PKG_CONFIG" ]; then |
---|
190 | PKG_CONFIG=pkg-config |
---|
191 | fi |
---|
192 | |
---|
193 | if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG glib-2.0; then |
---|
194 | if $PKG_CONFIG glib-2.0 --atleast-version=$GLIB_MIN_VERSION; then |
---|
195 | cat<<EOF>>Makefile.settings |
---|
196 | EFLAGS+=`$PKG_CONFIG --libs glib-2.0 gmodule-2.0` |
---|
197 | CFLAGS+=`$PKG_CONFIG --cflags glib-2.0 gmodule-2.0` |
---|
198 | EOF |
---|
199 | else |
---|
200 | echo |
---|
201 | echo 'Found glib2 '`$PKG_CONFIG glib-2.0 --modversion`', but version '$GLIB_MIN_VERSION' or newer is required.' |
---|
202 | exit 1 |
---|
203 | fi |
---|
204 | else |
---|
205 | echo |
---|
206 | echo 'Cannot find glib2 development libraries, aborting. (Install libglib2-dev?)' |
---|
207 | exit 1 |
---|
208 | fi |
---|
209 | |
---|
210 | if [ "$events" = "libevent" ]; then |
---|
211 | if ! [ -f "${libevent}include/event.h" ]; then |
---|
212 | echo |
---|
213 | echo 'Warning: Could not find event.h, you might have to install it and/or specify' |
---|
214 | echo 'its location using the --libevent= argument. (Example: If event.h is in' |
---|
215 | echo '/usr/local/include and binaries are in /usr/local/lib: --libevent=/usr/local)' |
---|
216 | fi |
---|
217 | |
---|
218 | echo '#define EVENTS_LIBEVENT' >> config.h |
---|
219 | cat <<EOF>>Makefile.settings |
---|
220 | EFLAGS+=-levent -L${libevent}lib |
---|
221 | CFLAGS+=-I${libevent}include |
---|
222 | EOF |
---|
223 | elif [ "$events" = "glib" ]; then |
---|
224 | ## We already use glib anyway, so this is all we need (and in fact not even this, but just to be sure...): |
---|
225 | echo '#define EVENTS_GLIB' >> config.h |
---|
226 | else |
---|
227 | echo |
---|
228 | echo 'ERROR: Unknown event handler specified.' |
---|
229 | exit 1 |
---|
230 | fi |
---|
231 | echo 'EVENT_HANDLER=events_'$events'.o' >> Makefile.settings |
---|
232 | |
---|
233 | detect_gnutls() |
---|
234 | { |
---|
235 | if $PKG_CONFIG --exists gnutls; then |
---|
236 | cat <<EOF>>Makefile.settings |
---|
237 | EFLAGS+=`$PKG_CONFIG --libs gnutls` |
---|
238 | CFLAGS+=`$PKG_CONFIG --cflags gnutls` |
---|
239 | EOF |
---|
240 | ssl=gnutls |
---|
241 | ret=1 |
---|
242 | elif libgnutls-config --version > /dev/null 2> /dev/null; then |
---|
243 | cat <<EOF>>Makefile.settings |
---|
244 | EFLAGS+=`libgnutls-config --libs` |
---|
245 | CFLAGS+=`libgnutls-config --cflags` |
---|
246 | EOF |
---|
247 | |
---|
248 | ssl=gnutls |
---|
249 | ret=1; |
---|
250 | else |
---|
251 | ret=0; |
---|
252 | fi; |
---|
253 | } |
---|
254 | |
---|
255 | detect_nss() |
---|
256 | { |
---|
257 | if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG mozilla-nss; then |
---|
258 | cat<<EOF>>Makefile.settings |
---|
259 | EFLAGS+=`$PKG_CONFIG --libs mozilla-nss` |
---|
260 | CFLAGS+=`$PKG_CONFIG --cflags mozilla-nss` |
---|
261 | EOF |
---|
262 | |
---|
263 | ssl=nss |
---|
264 | ret=1; |
---|
265 | else |
---|
266 | ret=0; |
---|
267 | fi; |
---|
268 | } |
---|
269 | |
---|
270 | detect_ldap() |
---|
271 | { |
---|
272 | TMPFILE=`mktemp` |
---|
273 | if $CC -o $TMPFILE -shared -lldap 2>/dev/null >/dev/null; then |
---|
274 | cat<<EOF>>Makefile.settings |
---|
275 | EFLAGS+=-lldap |
---|
276 | CFLAGS+= |
---|
277 | EOF |
---|
278 | ldap=1 |
---|
279 | rm -f $TMPFILE |
---|
280 | ret=1 |
---|
281 | else |
---|
282 | ldap=0 |
---|
283 | ret=0 |
---|
284 | fi |
---|
285 | } |
---|
286 | |
---|
287 | if [ "$ssl" = "auto" ]; then |
---|
288 | detect_gnutls |
---|
289 | if [ "$ret" = "0" ]; then |
---|
290 | detect_nss |
---|
291 | fi |
---|
292 | elif [ "$ssl" = "gnutls" ]; then |
---|
293 | detect_gnutls |
---|
294 | elif [ "$ssl" = "nss" ]; then |
---|
295 | detect_nss |
---|
296 | elif [ "$ssl" = "sspi" ]; then |
---|
297 | echo |
---|
298 | elif [ "$ssl" = "openssl" ]; then |
---|
299 | echo |
---|
300 | echo 'No detection code exists for OpenSSL. Make sure that you have a complete' |
---|
301 | echo 'install of OpenSSL (including devel/header files) before reporting' |
---|
302 | echo 'compilation problems.' |
---|
303 | echo |
---|
304 | echo 'Also, keep in mind that the OpenSSL is, according to some people, not' |
---|
305 | echo 'completely GPL-compatible. Using GnuTLS or NSS is recommended and better' |
---|
306 | echo 'supported by us. However, on many BSD machines, OpenSSL can be considered' |
---|
307 | echo 'part of the operating system, which makes it GPL-compatible.' |
---|
308 | echo |
---|
309 | echo 'For more info, see: http://www.openssl.org/support/faq.html#LEGAL2' |
---|
310 | echo ' http://www.gnome.org/~markmc/openssl-and-the-gpl.html' |
---|
311 | echo |
---|
312 | echo 'Please note that distributing a BitlBee binary which links to OpenSSL is' |
---|
313 | echo 'probably illegal. If you want to create and distribute a binary BitlBee' |
---|
314 | echo 'package, you really should use GnuTLS or NSS instead.' |
---|
315 | echo |
---|
316 | echo 'Also, the OpenSSL license requires us to say this:' |
---|
317 | echo ' * "This product includes software developed by the OpenSSL Project' |
---|
318 | echo ' * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"' |
---|
319 | |
---|
320 | echo 'EFLAGS+=-lssl -lcrypto' >> Makefile.settings |
---|
321 | |
---|
322 | ret=1 |
---|
323 | elif [ "$ssl" = "bogus" ]; then |
---|
324 | echo |
---|
325 | echo 'Using bogus SSL code. This means some features will not work properly.' |
---|
326 | |
---|
327 | ## Yes, you, at the console! How can you authenticate if you don't have any SSL!? |
---|
328 | if [ "$msn" = "1" ]; then |
---|
329 | echo |
---|
330 | echo 'Real SSL support is necessary for MSN authentication, will build without' |
---|
331 | echo 'MSN protocol support.' |
---|
332 | msn=0 |
---|
333 | fi |
---|
334 | |
---|
335 | ret=1 |
---|
336 | else |
---|
337 | echo |
---|
338 | echo 'ERROR: Unknown SSL library specified.' |
---|
339 | exit 1 |
---|
340 | fi |
---|
341 | |
---|
342 | if [ "$ret" = "0" ]; then |
---|
343 | echo |
---|
344 | echo 'ERROR: Could not find a suitable SSL library (GnuTLS, libnss or OpenSSL).' |
---|
345 | echo ' Please note that this script doesn'\''t have detection code for OpenSSL,' |
---|
346 | echo ' so if you want to use that, you have to select it by hand. If you don'\''t' |
---|
347 | echo ' need SSL support, you can select the "bogus" SSL library. (--ssl=bogus)' |
---|
348 | |
---|
349 | exit 1 |
---|
350 | fi; |
---|
351 | |
---|
352 | echo 'SSL_CLIENT=ssl_'$ssl'.o' >> Makefile.settings |
---|
353 | |
---|
354 | for i in $systemlibdirs; do |
---|
355 | if [ -f $i/libresolv.a ]; then |
---|
356 | echo '#define HAVE_RESOLV_A' >> config.h |
---|
357 | echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings |
---|
358 | break |
---|
359 | fi |
---|
360 | done |
---|
361 | |
---|
362 | STORAGES="text xml" |
---|
363 | |
---|
364 | if [ "$ldap" = "auto" ]; then |
---|
365 | detect_ldap |
---|
366 | fi |
---|
367 | |
---|
368 | if [ "$ldap" = 0 ]; then |
---|
369 | echo "#undef WITH_LDAP" >> config.h |
---|
370 | elif [ "$ldap" = 1 ]; then |
---|
371 | echo |
---|
372 | echo 'LDAP support is a work in progress and does NOT work AT ALL right now.' |
---|
373 | echo |
---|
374 | exit 1 |
---|
375 | |
---|
376 | echo "#define WITH_LDAP 1" >> config.h |
---|
377 | STORAGES="$STORAGES ldap" |
---|
378 | fi |
---|
379 | |
---|
380 | for i in $STORAGES; do |
---|
381 | STORAGE_OBJS="$STORAGE_OBJS storage_$i.o" |
---|
382 | done |
---|
383 | echo "STORAGE_OBJS="$STORAGE_OBJS >> Makefile.settings |
---|
384 | |
---|
385 | if [ "$strip" = 0 ]; then |
---|
386 | echo "STRIP=\# skip strip" >> Makefile.settings; |
---|
387 | else |
---|
388 | if [ "$debug" = 1 ]; then |
---|
389 | echo |
---|
390 | echo 'Stripping binaries does not make sense when debugging. Stripping disabled.' |
---|
391 | echo 'STRIP=\# skip strip' >> Makefile.settings |
---|
392 | strip=0; |
---|
393 | elif [ -n "$STRIP" ]; then |
---|
394 | echo "STRIP=$STRIP" >> Makefile.settings; |
---|
395 | elif type strip > /dev/null 2> /dev/null; then |
---|
396 | echo "STRIP=strip" >> Makefile.settings; |
---|
397 | else |
---|
398 | echo |
---|
399 | echo 'No strip utility found, cannot remove unnecessary parts from executable.' |
---|
400 | echo 'STRIP=\# skip strip' >> Makefile.settings |
---|
401 | strip=0; |
---|
402 | fi; |
---|
403 | fi |
---|
404 | |
---|
405 | if [ "$gcov" = "1" ]; then |
---|
406 | echo "CFLAGS+=--coverage" >> Makefile.settings |
---|
407 | echo "EFLAGS+=--coverage" >> Makefile.settings |
---|
408 | fi |
---|
409 | |
---|
410 | if [ "$plugins" = 0 ]; then |
---|
411 | echo '#undef WITH_PLUGINS' >> config.h |
---|
412 | else |
---|
413 | echo '#define WITH_PLUGINS' >> config.h |
---|
414 | fi |
---|
415 | |
---|
416 | echo |
---|
417 | if [ -z "$BITLBEE_VERSION" -a -d .bzr ] && type bzr > /dev/null 2> /dev/null; then |
---|
418 | nick=`bzr nick` |
---|
419 | if [ -n "$nick" -a "$nick" != "bitlbee" ]; then |
---|
420 | nick="-$nick" |
---|
421 | else |
---|
422 | nick="" |
---|
423 | fi |
---|
424 | rev=`bzr revno` |
---|
425 | echo 'Using bzr revision #'$rev' as version number' |
---|
426 | BITLBEE_VERSION=\"bzr$nick-$rev\" |
---|
427 | fi |
---|
428 | |
---|
429 | if [ -n "$BITLBEE_VERSION" ]; then |
---|
430 | echo 'Spoofing version number: '$BITLBEE_VERSION |
---|
431 | echo '#undef BITLBEE_VERSION' >> config.h |
---|
432 | echo '#define BITLBEE_VERSION '$BITLBEE_VERSION >> config.h |
---|
433 | echo |
---|
434 | fi |
---|
435 | |
---|
436 | cat <<EOF>bitlbee.pc |
---|
437 | prefix=$prefix |
---|
438 | includedir=$includedir |
---|
439 | |
---|
440 | Name: bitlbee |
---|
441 | Description: IRC to IM gateway |
---|
442 | Requires: glib-2.0 |
---|
443 | Version: $BITLBEE_VERSION |
---|
444 | Libs: |
---|
445 | Cflags: -I\${includedir} |
---|
446 | |
---|
447 | EOF |
---|
448 | |
---|
449 | protocols='' |
---|
450 | protoobjs='' |
---|
451 | |
---|
452 | if [ "$msn" = 0 ]; then |
---|
453 | echo '#undef WITH_MSN' >> config.h |
---|
454 | else |
---|
455 | echo '#define WITH_MSN' >> config.h |
---|
456 | protocols=$protocols'msn ' |
---|
457 | protoobjs=$protoobjs'msn_mod.o ' |
---|
458 | fi |
---|
459 | |
---|
460 | if [ "$jabber" = 0 ]; then |
---|
461 | echo '#undef WITH_JABBER' >> config.h |
---|
462 | else |
---|
463 | echo '#define WITH_JABBER' >> config.h |
---|
464 | protocols=$protocols'jabber ' |
---|
465 | protoobjs=$protoobjs'jabber_mod.o ' |
---|
466 | fi |
---|
467 | |
---|
468 | if [ "$oscar" = 0 ]; then |
---|
469 | echo '#undef WITH_OSCAR' >> config.h |
---|
470 | else |
---|
471 | echo '#define WITH_OSCAR' >> config.h |
---|
472 | protocols=$protocols'oscar ' |
---|
473 | protoobjs=$protoobjs'oscar_mod.o ' |
---|
474 | fi |
---|
475 | |
---|
476 | if [ "$yahoo" = 0 ]; then |
---|
477 | echo '#undef WITH_YAHOO' >> config.h |
---|
478 | else |
---|
479 | echo '#define WITH_YAHOO' >> config.h |
---|
480 | protocols=$protocols'yahoo ' |
---|
481 | protoobjs=$protoobjs'yahoo_mod.o ' |
---|
482 | fi |
---|
483 | |
---|
484 | if [ "$purple" = 0 ]; then |
---|
485 | echo '#undef WITH_PURPLE' >> config.h |
---|
486 | else |
---|
487 | echo '#define WITH_PURPLE' >> config.h |
---|
488 | echo 'EFLAGS += $$(pkg-config purple --libs)' >> Makefile.settings |
---|
489 | protocols=$protocols'purple ' |
---|
490 | protoobjs=$protoobjs'purple_mod.o ' |
---|
491 | fi |
---|
492 | |
---|
493 | if [ "$protocols" = "PROTOCOLS = " ]; then |
---|
494 | echo "Warning: You haven't selected any communication protocol to compile!" |
---|
495 | echo " BitlBee will run, but you will be unable to connect to IM servers!" |
---|
496 | fi |
---|
497 | |
---|
498 | echo "PROTOCOLS = $protocols" >> Makefile.settings |
---|
499 | echo "PROTOOBJS = $protoobjs" >> Makefile.settings |
---|
500 | |
---|
501 | echo Architecture: $arch |
---|
502 | case "$arch" in |
---|
503 | Linux ) |
---|
504 | ;; |
---|
505 | GNU/* ) |
---|
506 | ;; |
---|
507 | *BSD ) |
---|
508 | ;; |
---|
509 | Darwin ) |
---|
510 | ;; |
---|
511 | IRIX ) |
---|
512 | ;; |
---|
513 | SunOS ) |
---|
514 | echo 'EFLAGS+=-lresolv -lnsl -lsocket' >> Makefile.settings |
---|
515 | echo 'STRIP=\# skip strip' >> Makefile.settings |
---|
516 | ;; |
---|
517 | AIX ) |
---|
518 | echo 'EFLAGS+=-Wl,-brtl' >> Makefile.settings |
---|
519 | ;; |
---|
520 | CYGWIN* ) |
---|
521 | echo 'Cygwin is not officially supported.' |
---|
522 | ;; |
---|
523 | Windows ) |
---|
524 | ;; |
---|
525 | * ) |
---|
526 | echo 'We haven'\''t tested BitlBee on many platforms yet, yours is untested. YMMV.' |
---|
527 | echo 'Please report any problems at http://bugs.bitlbee.org/.' |
---|
528 | ;; |
---|
529 | esac |
---|
530 | |
---|
531 | if [ -n "$target" ]; then |
---|
532 | echo "Cross-compiling for: $target" |
---|
533 | fi |
---|
534 | |
---|
535 | echo |
---|
536 | echo 'Configuration done:' |
---|
537 | |
---|
538 | if [ "$debug" = "1" ]; then |
---|
539 | echo ' Debugging enabled.' |
---|
540 | else |
---|
541 | echo ' Debugging disabled.' |
---|
542 | fi |
---|
543 | |
---|
544 | if [ "$strip" = "1" ]; then |
---|
545 | echo ' Binary stripping enabled.' |
---|
546 | else |
---|
547 | echo ' Binary stripping disabled.' |
---|
548 | fi |
---|
549 | |
---|
550 | echo ' Using event handler: '$events |
---|
551 | echo ' Using SSL library: '$ssl |
---|
552 | echo ' Building with these storage backends: '$STORAGES |
---|
553 | |
---|
554 | if [ -n "$protocols" ]; then |
---|
555 | echo ' Building with these protocols:' $protocols |
---|
556 | else |
---|
557 | echo ' Building without IM-protocol support. We wish you a lot of fun...' |
---|
558 | fi |
---|