[b7d3cc34] | 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/' |
---|
[85cf37f] | 16 | plugindir='$prefix/lib/bitlbee/' |
---|
| 17 | includedir='$prefix/include/bitlbee/' |
---|
| 18 | libevent='/usr/' |
---|
[34b17d9] | 19 | pidfile='/var/run/bitlbee.pid' |
---|
[6dff9d4] | 20 | ipcsocket='/var/run/bitlbee' |
---|
[e506d6c] | 21 | pcdir='$prefix/lib/pkgconfig' |
---|
[b7d3cc34] | 22 | |
---|
| 23 | msn=1 |
---|
| 24 | jabber=1 |
---|
| 25 | oscar=1 |
---|
| 26 | yahoo=1 |
---|
| 27 | |
---|
| 28 | debug=0 |
---|
| 29 | strip=1 |
---|
| 30 | ipv6=1 |
---|
[85cf37f] | 31 | |
---|
| 32 | events=glib |
---|
[b7d3cc34] | 33 | ssl=auto |
---|
| 34 | |
---|
| 35 | arch=`uname -s` |
---|
| 36 | cpu=`uname -m` |
---|
| 37 | |
---|
| 38 | echo BitlBee configure |
---|
| 39 | |
---|
| 40 | while [ -n "$1" ]; do |
---|
| 41 | e="`expr "X$1" : 'X--\(.*=.*\)'`" |
---|
| 42 | if [ -z "$e" ]; then |
---|
| 43 | cat<<EOF |
---|
| 44 | |
---|
| 45 | Usage: $0 [OPTIONS] |
---|
| 46 | |
---|
| 47 | Option Description Default |
---|
| 48 | |
---|
| 49 | --prefix=... Directories to put files in $prefix |
---|
| 50 | --bindir=... $bindir |
---|
| 51 | --etcdir=... $etcdir |
---|
| 52 | --mandir=... $mandir |
---|
| 53 | --datadir=... $datadir |
---|
[7b23afd] | 54 | --plugindir=... $plugindir |
---|
[34b17d9] | 55 | --pidfile=... $pidfile |
---|
[b7d3cc34] | 56 | --config=... $config |
---|
[6dff9d4] | 57 | --ipcsocket=... $ipcsocket |
---|
[b7d3cc34] | 58 | |
---|
| 59 | --msn=0/1 Disable/enable MSN part $msn |
---|
| 60 | --jabber=0/1 Disable/enable Jabber part $jabber |
---|
| 61 | --oscar=0/1 Disable/enable Oscar part (ICQ, AIM) $oscar |
---|
| 62 | --yahoo=0/1 Disable/enable Yahoo part $yahoo |
---|
| 63 | |
---|
| 64 | --debug=0/1 Disable/enable debugging $debug |
---|
| 65 | --strip=0/1 Disable/enable binary stripping $strip |
---|
| 66 | |
---|
| 67 | --ipv6=0/1 IPv6 socket support $ipv6 |
---|
| 68 | |
---|
[85cf37f] | 69 | --events=... Event handler (glib, libevent) $events |
---|
[b7d3cc34] | 70 | --ssl=... SSL library to use (gnutls, nss, openssl, bogus, auto) |
---|
| 71 | $ssl |
---|
| 72 | EOF |
---|
| 73 | exit; |
---|
| 74 | fi |
---|
| 75 | eval "$e" |
---|
| 76 | shift; |
---|
| 77 | done |
---|
| 78 | |
---|
| 79 | # Expand $prefix and get rid of double slashes |
---|
| 80 | bindir=`eval echo "$bindir/" | sed 's/\/\{1,\}/\//g'` |
---|
| 81 | etcdir=`eval echo "$etcdir/" | sed 's/\/\{1,\}/\//g'` |
---|
| 82 | mandir=`eval echo "$mandir/" | sed 's/\/\{1,\}/\//g'` |
---|
| 83 | datadir=`eval echo "$datadir/" | sed 's/\/\{1,\}/\//g'` |
---|
| 84 | config=`eval echo "$config/" | sed 's/\/\{1,\}/\//g'` |
---|
[7b23afd] | 85 | plugindir=`eval echo "$plugindir/" | sed 's/\/\{1,\}/\//g'` |
---|
[85cf37f] | 86 | includedir=`eval echo "$includedir"/ | sed 's/\/\{1,\}/\//g'` |
---|
| 87 | libevent=`eval echo "$libevent"/ | sed 's/\/\{1,\}/\//g'` |
---|
| 88 | |
---|
[6dff9d4] | 89 | pidfile=`eval echo "$pidfile" | sed 's/\/\{1,\}/\//g'` |
---|
| 90 | ipcsocket=`eval echo "$ipcsocket" | sed 's/\/\{1,\}/\//g'` |
---|
[e506d6c] | 91 | pcdir=`eval echo "$pcdir" | sed 's/\/\{1,\}/\//g'` |
---|
[b7d3cc34] | 92 | |
---|
| 93 | cat<<EOF>Makefile.settings |
---|
| 94 | ## BitlBee settings, generated by configure |
---|
| 95 | PREFIX=$prefix |
---|
| 96 | BINDIR=$bindir |
---|
| 97 | ETCDIR=$etcdir |
---|
| 98 | MANDIR=$mandir |
---|
| 99 | DATADIR=$datadir |
---|
[7b23afd] | 100 | PLUGINDIR=$plugindir |
---|
[b7d3cc34] | 101 | CONFIG=$config |
---|
[6dff9d4] | 102 | IPCSOCKET=$ipcsocket |
---|
[e506d6c] | 103 | INCLUDEDIR=$includedir |
---|
| 104 | PCDIR=$pcdir |
---|
[b7d3cc34] | 105 | |
---|
| 106 | ARCH=$arch |
---|
| 107 | CPU=$cpu |
---|
| 108 | OUTFILE=bitlbee |
---|
| 109 | |
---|
| 110 | DESTDIR= |
---|
| 111 | LFLAGS= |
---|
| 112 | EFLAGS= |
---|
| 113 | EOF |
---|
| 114 | |
---|
| 115 | cat<<EOF>config.h |
---|
| 116 | /* BitlBee settings, generated by configure |
---|
| 117 | |
---|
| 118 | Do *NOT* use any of these defines in your code without thinking twice, most |
---|
| 119 | of them can/will be overridden at run-time */ |
---|
| 120 | |
---|
| 121 | #define CONFIG "$config" |
---|
| 122 | #define ETCDIR "$etcdir" |
---|
| 123 | #define VARDIR "$datadir" |
---|
[7b23afd] | 124 | #define PLUGINDIR "$plugindir" |
---|
[34b17d9] | 125 | #define PIDFILE "$pidfile" |
---|
[6dff9d4] | 126 | #define IPCSOCKET "$ipcsocket" |
---|
[b7d3cc34] | 127 | #define ARCH "$arch" |
---|
| 128 | #define CPU "$cpu" |
---|
| 129 | EOF |
---|
| 130 | |
---|
| 131 | if [ "$ipv6" = "1" ]; then |
---|
| 132 | echo '#define IPV6' >> config.h |
---|
| 133 | fi |
---|
| 134 | |
---|
| 135 | if [ "$debug" = "1" ]; then |
---|
| 136 | echo 'CFLAGS=-g' >> Makefile.settings |
---|
| 137 | echo 'DEBUG=1' >> Makefile.settings |
---|
| 138 | echo '#define DEBUG' >> config.h |
---|
| 139 | else |
---|
| 140 | echo 'CFLAGS=-O3' >> Makefile.settings |
---|
| 141 | fi |
---|
| 142 | |
---|
| 143 | echo CFLAGS+=-I`pwd` -I`pwd`/protocols -I. >> Makefile.settings |
---|
| 144 | |
---|
[f712188] | 145 | echo CFLAGS+=-DHAVE_CONFIG_H >> Makefile.settings |
---|
| 146 | |
---|
[b7d3cc34] | 147 | if [ -n "$CC" ]; then |
---|
| 148 | echo "CC=$CC" >> Makefile.settings; |
---|
| 149 | elif type gcc > /dev/null 2> /dev/null; then |
---|
| 150 | echo "CC=gcc" >> Makefile.settings; |
---|
| 151 | elif type cc > /dev/null 2> /dev/null; then |
---|
| 152 | echo "CC=cc" >> Makefile.settings; |
---|
| 153 | else |
---|
| 154 | echo 'Cannot find a C compiler, aborting.' |
---|
| 155 | exit 1; |
---|
| 156 | fi |
---|
| 157 | |
---|
| 158 | if [ -n "$LD" ]; then |
---|
| 159 | echo "LD=$LD" >> Makefile.settings; |
---|
| 160 | elif type ld > /dev/null 2> /dev/null; then |
---|
| 161 | echo "LD=ld" >> Makefile.settings; |
---|
| 162 | else |
---|
| 163 | echo 'Cannot find ld, aborting.' |
---|
| 164 | exit 1; |
---|
| 165 | fi |
---|
| 166 | |
---|
[32c632f] | 167 | if [ -z "$PKG_CONFIG" ]; then |
---|
| 168 | PKG_CONFIG=pkg-config |
---|
| 169 | fi |
---|
| 170 | |
---|
| 171 | if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG glib-2.0; then |
---|
[b7d3cc34] | 172 | cat<<EOF>>Makefile.settings |
---|
[32c632f] | 173 | EFLAGS+=`$PKG_CONFIG --libs glib-2.0 gmodule-2.0` |
---|
| 174 | CFLAGS+=`$PKG_CONFIG --cflags glib-2.0 gmodule-2.0` |
---|
[b7d3cc34] | 175 | EOF |
---|
| 176 | echo '#define GLIB2' >> config.h |
---|
| 177 | elif type glib-config > /dev/null 2> /dev/null; then |
---|
| 178 | cat<<EOF>>Makefile.settings |
---|
| 179 | EFLAGS+=`glib-config --libs` |
---|
| 180 | CFLAGS+=`glib-config --cflags` |
---|
| 181 | EOF |
---|
| 182 | echo '#define GLIB1' >> config.h |
---|
| 183 | else |
---|
| 184 | echo 'Cannot find glib development libraries, aborting. (Install libglib-dev?)' |
---|
| 185 | exit 1; |
---|
| 186 | fi |
---|
| 187 | |
---|
| 188 | if [ -r /usr/include/iconv.h ]; then |
---|
| 189 | :; |
---|
| 190 | elif [ -r /usr/local/include/iconv.h ]; then |
---|
[85cf37f] | 191 | echo CFLAGS+=-I/usr/local/include >> Makefile.settings |
---|
[b7d3cc34] | 192 | else |
---|
| 193 | echo |
---|
| 194 | echo 'Warning: Could not find iconv.h, you might have to install it and/or modify' |
---|
[85cf37f] | 195 | echo 'Makefile.settings to tell where this file is.' |
---|
| 196 | fi |
---|
| 197 | |
---|
| 198 | |
---|
| 199 | if [ "$events" = "libevent" ]; then |
---|
| 200 | if ! [ -e "${libevent}include/event.h" ]; then |
---|
| 201 | echo |
---|
| 202 | echo 'Warning: Could not find event.h, you might have to install it and/or specify' |
---|
| 203 | echo 'its location using the --libevent= argument. (Example: If event.h is in' |
---|
| 204 | echo '/usr/local/include and binaries are in /usr/local/lib: --libevent=/usr/local)' |
---|
| 205 | fi |
---|
| 206 | |
---|
| 207 | echo '#define EVENTS_LIBEVENT' >> config.h |
---|
| 208 | cat <<EOF>>Makefile.settings |
---|
| 209 | EFLAGS+=-levent -L${libevent}lib |
---|
| 210 | CFLAGS+=-I${libevent}include |
---|
| 211 | EOF |
---|
| 212 | elif [ "$events" = "glib" ]; then |
---|
| 213 | ## We already use glib anyway, so this is all we need (and in fact not even this, but just to be sure...): |
---|
| 214 | echo '#define EVENTS_GLIB' >> config.h |
---|
| 215 | else |
---|
| 216 | echo |
---|
| 217 | echo 'ERROR: Unknown event handler specified.' |
---|
| 218 | exit 1 |
---|
[b7d3cc34] | 219 | fi |
---|
[85cf37f] | 220 | echo 'EVENT_HANDLER=events_'$events'.o' >> Makefile.settings |
---|
[b7d3cc34] | 221 | |
---|
| 222 | |
---|
| 223 | detect_gnutls() |
---|
| 224 | { |
---|
| 225 | if libgnutls-config --version > /dev/null 2> /dev/null; then |
---|
| 226 | cat <<EOF>>Makefile.settings |
---|
| 227 | EFLAGS+=`libgnutls-config --libs` |
---|
| 228 | CFLAGS+=`libgnutls-config --cflags` |
---|
| 229 | EOF |
---|
| 230 | |
---|
| 231 | ssl=gnutls |
---|
| 232 | ret=1; |
---|
| 233 | else |
---|
| 234 | ret=0; |
---|
| 235 | fi; |
---|
| 236 | } |
---|
| 237 | |
---|
| 238 | detect_nss() |
---|
| 239 | { |
---|
[32c632f] | 240 | if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG mozilla-nss; then |
---|
[b7d3cc34] | 241 | cat<<EOF>>Makefile.settings |
---|
[32c632f] | 242 | EFLAGS+=`$PKG_CONFIG --libs mozilla-nss` |
---|
| 243 | CFLAGS+=`$PKG_CONFIG --cflags mozilla-nss` |
---|
[b7d3cc34] | 244 | EOF |
---|
| 245 | |
---|
| 246 | ssl=nss |
---|
| 247 | ret=1; |
---|
| 248 | else |
---|
| 249 | ret=0; |
---|
| 250 | fi; |
---|
| 251 | } |
---|
| 252 | |
---|
| 253 | if [ "$msn" = 1 -o "$jabber" = 1 ]; then |
---|
| 254 | if [ "$ssl" = "auto" ]; then |
---|
| 255 | detect_gnutls |
---|
| 256 | if [ "$ret" = "0" ]; then |
---|
| 257 | detect_nss |
---|
| 258 | fi; |
---|
| 259 | elif [ "$ssl" = "gnutls" ]; then |
---|
| 260 | detect_gnutls; |
---|
| 261 | elif [ "$ssl" = "nss" ]; then |
---|
| 262 | detect_nss; |
---|
| 263 | elif [ "$ssl" = "openssl" ]; then |
---|
| 264 | echo |
---|
| 265 | echo 'No detection code exists for OpenSSL. Make sure that you have a complete' |
---|
| 266 | echo 'install of OpenSSL (including devel/header files) before reporting' |
---|
| 267 | echo 'compilation problems.' |
---|
| 268 | echo |
---|
| 269 | echo 'Also, keep in mind that the OpenSSL is, according to some people, not' |
---|
| 270 | echo 'completely GPL-compatible. Using GnuTLS or NSS is recommended and better' |
---|
| 271 | echo 'supported by us. However, on many BSD machines, OpenSSL can be considered' |
---|
| 272 | echo 'part of the operating system, which makes it GPL-compatible.' |
---|
| 273 | echo |
---|
| 274 | echo 'For more info, see: http://www.openssl.org/support/faq.html#LEGAL2' |
---|
| 275 | echo ' http://www.gnome.org/~markmc/openssl-and-the-gpl.html' |
---|
| 276 | echo |
---|
| 277 | echo 'Please note that distributing a BitlBee binary which links to OpenSSL is' |
---|
| 278 | echo 'probably illegal. If you want to create and distribute a binary BitlBee' |
---|
| 279 | echo 'package, you really should use GnuTLS or NSS instead.' |
---|
| 280 | echo |
---|
| 281 | echo 'Also, the OpenSSL license requires us to say this:' |
---|
| 282 | echo ' * "This product includes software developed by the OpenSSL Project' |
---|
| 283 | echo ' * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"' |
---|
| 284 | |
---|
| 285 | echo 'EFLAGS+=-lssl -lcrypto' >> Makefile.settings |
---|
| 286 | |
---|
| 287 | ret=1; |
---|
| 288 | elif [ "$ssl" = "bogus" ]; then |
---|
| 289 | echo |
---|
| 290 | echo 'Using bogus SSL code. This will not make the MSN module work, but it will' |
---|
| 291 | echo 'allow you to use the Jabber module - although without working SSL support.' |
---|
| 292 | |
---|
| 293 | ret=1; |
---|
| 294 | else |
---|
| 295 | echo |
---|
| 296 | echo 'ERROR: Unknown SSL library specified.' |
---|
| 297 | exit 1; |
---|
| 298 | fi |
---|
| 299 | |
---|
| 300 | if [ "$ret" = "0" ]; then |
---|
| 301 | echo |
---|
[54c5ca1] | 302 | echo 'ERROR: Could not find a suitable SSL library (GnuTLS, libnss or OpenSSL).' |
---|
| 303 | echo ' This is necessary for MSN and full Jabber support. To continue,' |
---|
| 304 | echo ' install a suitable SSL library or disable MSN support (--msn=0).' |
---|
| 305 | echo ' If you want Jabber without SSL support you can try --ssl=bogus.' |
---|
[b7d3cc34] | 306 | |
---|
| 307 | exit 1; |
---|
| 308 | fi; |
---|
| 309 | |
---|
| 310 | echo 'SSL_CLIENT=ssl_'$ssl'.o' >> Makefile.settings |
---|
| 311 | fi |
---|
| 312 | |
---|
| 313 | if [ "$strip" = 0 ]; then |
---|
| 314 | echo "STRIP=\# skip strip" >> Makefile.settings; |
---|
| 315 | else |
---|
| 316 | if [ "$debug" = 1 ]; then |
---|
| 317 | echo |
---|
| 318 | echo 'Stripping binaries does not make sense when debugging. Stripping disabled.' |
---|
| 319 | echo 'STRIP=\# skip strip' >> Makefile.settings |
---|
| 320 | strip=0; |
---|
| 321 | elif [ -n "$STRIP" ]; then |
---|
| 322 | echo "STRIP=$STRIP" >> Makefile.settings; |
---|
| 323 | elif type strip > /dev/null 2> /dev/null; then |
---|
| 324 | echo "STRIP=strip" >> Makefile.settings; |
---|
| 325 | elif /bin/test -x /usr/ccs/bin/strip; then |
---|
| 326 | echo "STRIP=/usr/ccs/bin/strip" >> Makefile.settings; |
---|
| 327 | else |
---|
| 328 | echo |
---|
| 329 | echo 'No strip utility found, cannot remove unnecessary parts from executable.' |
---|
| 330 | echo 'STRIP=\# skip strip' >> Makefile.settings |
---|
| 331 | strip=0; |
---|
| 332 | fi; |
---|
| 333 | fi |
---|
| 334 | |
---|
[ffea9b9] | 335 | echo |
---|
[a014331] | 336 | if [ -z "$BITLBEE_VERSION" -a -d .bzr ] && type bzr > /dev/null 2> /dev/null; then |
---|
| 337 | nick=`bzr nick` |
---|
| 338 | if [ -n "$nick" -a "$nick" != "bitlbee" ]; then |
---|
| 339 | nick="-$nick" |
---|
| 340 | else |
---|
| 341 | nick="" |
---|
| 342 | fi |
---|
[ffea9b9] | 343 | rev=`bzr revno` |
---|
| 344 | echo 'Using bzr revision #'$rev' as version number' |
---|
[a014331] | 345 | BITLBEE_VERSION=\"bzr$nick-$rev\" |
---|
[ffea9b9] | 346 | fi |
---|
| 347 | |
---|
[b7d3cc34] | 348 | if [ -n "$BITLBEE_VERSION" ]; then |
---|
| 349 | echo 'Spoofing version number: '$BITLBEE_VERSION |
---|
| 350 | echo '#undef BITLBEE_VERSION' >> config.h |
---|
[ffea9b9] | 351 | echo '#define BITLBEE_VERSION '$BITLBEE_VERSION >> config.h |
---|
| 352 | echo |
---|
[b7d3cc34] | 353 | fi |
---|
| 354 | |
---|
[e506d6c] | 355 | cat <<EOF>bitlbee.pc |
---|
| 356 | prefix=$prefix |
---|
| 357 | includedir=$includedir |
---|
| 358 | |
---|
| 359 | Name: bitlbee |
---|
| 360 | Description: IRC to IM gateway |
---|
| 361 | Requires: glib-2.0 |
---|
| 362 | Version: $BITLBEE_VERSION |
---|
| 363 | Libs: |
---|
| 364 | Cflags: -I\${includedir} |
---|
| 365 | |
---|
| 366 | EOF |
---|
| 367 | |
---|
[b7d3cc34] | 368 | protocols='' |
---|
| 369 | protoobjs='' |
---|
| 370 | |
---|
| 371 | if [ "$msn" = 0 ]; then |
---|
| 372 | echo '#undef WITH_MSN' >> config.h |
---|
| 373 | else |
---|
| 374 | echo '#define WITH_MSN' >> config.h |
---|
| 375 | protocols=$protocols'msn ' |
---|
[b5a22e3] | 376 | protoobjs=$protoobjs'msn_mod.o ' |
---|
[b7d3cc34] | 377 | fi |
---|
| 378 | |
---|
| 379 | if [ "$jabber" = 0 ]; then |
---|
| 380 | echo '#undef WITH_JABBER' >> config.h |
---|
| 381 | else |
---|
| 382 | echo '#define WITH_JABBER' >> config.h |
---|
| 383 | protocols=$protocols'jabber ' |
---|
[b5a22e3] | 384 | protoobjs=$protoobjs'jabber_mod.o ' |
---|
[b7d3cc34] | 385 | fi |
---|
| 386 | |
---|
| 387 | if [ "$oscar" = 0 ]; then |
---|
| 388 | echo '#undef WITH_OSCAR' >> config.h |
---|
| 389 | else |
---|
| 390 | echo '#define WITH_OSCAR' >> config.h |
---|
| 391 | protocols=$protocols'oscar ' |
---|
[b5a22e3] | 392 | protoobjs=$protoobjs'oscar_mod.o ' |
---|
[b7d3cc34] | 393 | fi |
---|
| 394 | |
---|
| 395 | if [ "$yahoo" = 0 ]; then |
---|
| 396 | echo '#undef WITH_YAHOO' >> config.h |
---|
| 397 | else |
---|
| 398 | echo '#define WITH_YAHOO' >> config.h |
---|
| 399 | protocols=$protocols'yahoo ' |
---|
[b5a22e3] | 400 | protoobjs=$protoobjs'yahoo_mod.o ' |
---|
[b7d3cc34] | 401 | fi |
---|
| 402 | |
---|
| 403 | if [ "$protocols" = "PROTOCOLS = " ]; then |
---|
| 404 | echo "WARNING: You haven't selected any communication protocol to compile!" |
---|
| 405 | echo " Bitlbee will run, but you will be unable to connect to IM servers!" |
---|
| 406 | fi |
---|
| 407 | |
---|
| 408 | echo "PROTOCOLS = $protocols" >> Makefile.settings |
---|
| 409 | echo "PROTOOBJS = $protoobjs" >> Makefile.settings |
---|
| 410 | |
---|
| 411 | echo Architecture: $arch |
---|
| 412 | case "$arch" in |
---|
| 413 | Linux ) |
---|
| 414 | ;; |
---|
| 415 | GNU/* ) |
---|
| 416 | ;; |
---|
| 417 | *BSD ) |
---|
| 418 | echo 'EFLAGS+=-liconv' >> Makefile.settings; |
---|
| 419 | ;; |
---|
| 420 | SunOS ) |
---|
| 421 | echo 'EFLAGS+=-lresolv -lnsl -lsocket' >> Makefile.settings |
---|
| 422 | echo 'STRIP=\# skip strip' >> Makefile.settings |
---|
| 423 | echo 'EFLAGS+=-liconv' >> Makefile.settings; |
---|
| 424 | ;; |
---|
| 425 | Darwin ) |
---|
| 426 | echo 'EFLAGS+=-liconv' >> Makefile.settings; |
---|
| 427 | ;; |
---|
| 428 | IRIX ) |
---|
| 429 | ;; |
---|
| 430 | CYGWIN* ) |
---|
| 431 | echo 'Cygwin is not officially supported.' |
---|
| 432 | ;; |
---|
| 433 | * ) |
---|
[8d6c4b1] | 434 | echo 'We haven'\''t tested BitlBee on many platforms yet, yours is untested. YMMV.' |
---|
| 435 | echo 'Please report any problems at http://bugs.bitlbee.org/.' |
---|
[b7d3cc34] | 436 | ;; |
---|
| 437 | esac |
---|
| 438 | |
---|
| 439 | echo |
---|
| 440 | echo 'Configuration done:' |
---|
| 441 | |
---|
| 442 | if [ "$debug" = "1" ]; then |
---|
| 443 | echo ' Debugging enabled.'; |
---|
| 444 | else |
---|
| 445 | echo ' Debugging disabled.'; |
---|
| 446 | fi |
---|
| 447 | |
---|
| 448 | if [ "$strip" = "1" ]; then |
---|
| 449 | echo ' Binary stripping enabled.'; |
---|
| 450 | else |
---|
| 451 | echo ' Binary stripping disabled.'; |
---|
| 452 | fi |
---|
| 453 | |
---|
[85cf37f] | 454 | echo ' Using event handler: '$events; |
---|
| 455 | echo ' Using SSL library: '$ssl; |
---|
[b7d3cc34] | 456 | |
---|
[e5663e0] | 457 | #if [ "$flood" = "0" ]; then |
---|
| 458 | # echo ' Flood protection disabled.'; |
---|
| 459 | #else |
---|
| 460 | # echo ' Flood protection enabled.'; |
---|
| 461 | #fi |
---|
[b7d3cc34] | 462 | |
---|
| 463 | if [ -n "$protocols" ]; then |
---|
| 464 | echo ' Building with these protocols:' $protocols; |
---|
| 465 | else |
---|
| 466 | echo ' Building without IM-protocol support. We wish you a lot of fun...'; |
---|
| 467 | fi |
---|