diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -46,6 +46,7 @@ asan=0 plugins=1 otr=0 skype=0 +devel=0 events=glib ssl=auto @@ -147,6 +148,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) @@ -289,6 +291,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 @@ -611,6 +617,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 @@ -815,8 +825,8 @@ EOF [ "$jabber" = "default-on" ] && jabber=0 [ "$oscar" = "default-on" ] && oscar=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' @@ -871,6 +881,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 |