aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2009-10-05 00:28:11 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2009-10-05 00:28:11 +0100
commit796da03f9f54f8fb193529288592571b371bf0cd (patch)
treeb54c97a088dea67c271bfa4f070f207e8aa02f64 /configure
parente59b4f65183a7bee638312a0c96e3d0607cb181f (diff)
Something that compiles and runs, but otherwise utterly useless. Added a
protocols/purple/ module and included it in the build system. Already picks up all the supported protocols and adds them individually.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure b/configure
index b3a98086..65eb9e89 100755
--- a/configure
+++ b/configure
@@ -25,6 +25,7 @@ msn=1
jabber=1
oscar=1
yahoo=1
+purple=0
debug=0
strip=1
@@ -66,6 +67,8 @@ Option Description Default
--oscar=0/1 Disable/enable Oscar part (ICQ, AIM) $oscar
--yahoo=0/1 Disable/enable Yahoo part $yahoo
+--purple=0/1 Disable/enable libpurple support $purple
+
--debug=0/1 Disable/enable debugging $debug
--strip=0/1 Disable/enable binary stripping $strip
--gcov=0/1 Disable/enable test coverage reporting $gcov
@@ -478,6 +481,15 @@ else
protoobjs=$protoobjs'yahoo_mod.o '
fi
+if [ "$purple" = 0 ]; then
+ echo '#undef WITH_PURPLE' >> config.h
+else
+ echo '#define WITH_PURPLE' >> config.h
+ echo 'EFLAGS += $$(pkg-config purple --libs)' >> Makefile.settings
+ protocols=$protocols'purple '
+ protoobjs=$protoobjs'purple_mod.o '
+fi
+
if [ "$protocols" = "PROTOCOLS = " ]; then
echo "Warning: You haven't selected any communication protocol to compile!"
echo " BitlBee will run, but you will be unable to connect to IM servers!"