aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2009-10-12 23:23:49 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2009-10-12 23:23:49 +0100
commite248c7ff061e1582ed4c2919de6d615c1813e87a (patch)
tree357edc410a3c959b47b97f8abefca48365810011 /configure
parentdd0d57b10a8c2d07001ca2d4228232962ed8b95d (diff)
Automatically try prpl-$proto if $proto doesn't exist, and disable native
protocol modules if purple is enabled; they don't go together very well.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure25
1 files changed, 16 insertions, 9 deletions
diff --git a/configure b/configure
index 65eb9e89..a87b3697 100755
--- a/configure
+++ b/configure
@@ -449,6 +449,22 @@ EOF
protocols=''
protoobjs=''
+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 '
+
+ # Having both libpurple and native IM modules in one binary may
+ # do strange things. Let's not do that.
+ msn=0
+ jabber=0
+ oscar=0
+ yahoo=0
+fi
+
if [ "$msn" = 0 ]; then
echo '#undef WITH_MSN' >> config.h
else
@@ -481,15 +497,6 @@ 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!"