diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-09-29 22:50:43 -0700 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-09-29 22:50:43 -0700 |
commit | 858ea0166108e9cfab3cc9290fc976f041411cce (patch) | |
tree | 4e47f7090478b29af0d88241745ba1d97da60ae6 /configure | |
parent | 2dcaf9a0fabdb92a191e64759d116f316de7dfc2 (diff) |
Allow building OTR support as a plugin. Fairly simple, let's hope I can get
away with doing this without libtool (eep).
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -499,11 +499,16 @@ if [ "$otr" = "auto" ]; then fi fi if [ "$otr" = 1 ]; then - echo '#define WITH_OTR' >> config.h + # BI == built-in + echo '#define OTR_BI' >> config.h echo "EFLAGS+=-L${otrprefix}/lib -lotr" >> Makefile.settings echo "CFLAGS+=-I${otrprefix}/include" >> Makefile.settings -else - echo '#undef WITH_OTR' >> config.h + echo 'OTR_BI=otr.o' >> Makefile.settings +elif [ "$otr" = "plugin" ]; then + echo '#define OTR_PI' >> config.h + echo "OTRFLAGS=-L${otrprefix}/lib -lotr" >> Makefile.settings + echo "CFLAGS+=-I${otrprefix}/include" >> Makefile.settings + echo 'OTR_PI=otr.so' >> Makefile.settings fi if [ ! -e doc/user-guide/help.txt ] && ! type xmlto > /dev/null 2> /dev/null; then @@ -702,6 +707,8 @@ fi if [ "$otr" = "1" ]; then echo ' Off-the-Record (OTR) Messaging enabled.' +elif [ "$otr" = "plugin" ]; then + echo ' Off-the-Record (OTR) Messaging enabled (as a plugin).' else echo ' Off-the-Record (OTR) Messaging disabled.' fi |