diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 24 |
1 files changed, 18 insertions, 6 deletions
@@ -47,6 +47,7 @@ asan=0 plugins=1 otr=0 skype=0 +devel=0 events=glib ssl=auto @@ -149,6 +150,7 @@ Option Description Default Disable/enable OTR encryption support $otr --skype=0/1/plugin Disable/enable Skype support $skype +--devel=0/1 Disable/enable header install $devel --events=... Event handler (glib, libevent) $events --ssl=... SSL library to use (gnutls, nss, openssl, auto) @@ -291,6 +293,10 @@ else [ -z "$CFLAGS" ] && CFLAGS="-O2 -fno-strict-aliasing" fi +if [ "$devel" = "1" ]; then + echo 'DEVEL=1' >> Makefile.settings +fi + if [ "$pie" = "1" ]; then echo 'CFLAGS_BITLBEE=-fPIE' >> Makefile.settings echo 'LDFLAGS_BITLBEE=-pie' >> Makefile.settings @@ -613,6 +619,10 @@ if [ "$ret" = "0" ]; then exit 1 fi; +if [ "$ssl" = "gnutls" ]; then + echo '#define WITH_GNUTLS' >> config.h +fi + echo 'SSL_CLIENT=ssl_'$ssl'.o' >> Makefile.settings if detect_nameser_has_ns_types; then @@ -813,13 +823,13 @@ EOF protoobjs=$protoobjs'purple_mod.o ' # only disable these if the user didn't enable them explicitly - [ "$msn" = "default-on" ] && msn=0 - [ "$jabber" = "default-on" ] && jabber=0 - [ "$oscar" = "default-on" ] && oscar=0 - [ "$yahoo" = "default-on" ] && yahoo=0 + #[ "$msn" = "default-on" ] && msn=0 + #[ "$jabber" = "default-on" ] && jabber=0 + #[ "$oscar" = "default-on" ] && oscar=0 + #[ "$yahoo" = "default-on" ] && yahoo=0 - echo '#undef PACKAGE' >> config.h - echo '#define PACKAGE "BitlBee-LIBPURPLE"' >> config.h + #echo '#undef PACKAGE' >> config.h + #echo '#define PACKAGE "BitlBee-LIBPURPLE"' >> config.h if [ "$events" = "libevent" ]; then echo 'Warning: Some libpurple modules (including msn-pecan) do their event handling' @@ -882,6 +892,8 @@ if [ "$protocols" = "PROTOCOLS = " ]; then echo " BitlBee will run, but you will be unable to connect to IM servers!" fi +echo "EFLAGS+=$(pkg-config libidn --libs)" >> Makefile.settings + echo "PROTOCOLS = $protocols" >> Makefile.settings echo "PROTOOBJS = $protoobjs" >> Makefile.settings |