Changeset be999a5 for configure


Ignore:
Timestamp:
2010-08-23T23:12:24Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
ad2d8bc
Parents:
237eadd (diff), eb6df6a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

First step in this merge. Mostly a bzr merge and then a cleanup of conflicts
and parts I want to/have to redo (because of ui-fix).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r237eadd rbe999a5  
    3434gcov=0
    3535plugins=1
     36otr=auto
    3637
    3738events=glib
     
    7778--gcov=0/1      Disable/enable test coverage reporting  $gcov
    7879--plugins=0/1   Disable/enable plugins support          $plugins
     80--otr=0/1       Disable/enable OTR encryption support   $otr
    7981
    8082--events=...    Event handler (glib, libevent)          $events
     
    483485fi
    484486
     487otrprefix=""
     488for i in / /usr /usr/local; do
     489        if [ -f ${i}/lib/libotr.a ]; then
     490                otrprefix=${i}
     491                break
     492        fi
     493done
     494if [ "$otr" = "auto" ]; then
     495        if [ -n "$otrprefix" ]; then
     496                otr=1
     497        else
     498                otr=0
     499        fi
     500fi
     501if [ "$otr" = 1 ]; then
     502        echo '#define WITH_OTR' >> config.h
     503        echo "EFLAGS+=-L${otrprefix}/lib -lotr" >> Makefile.settings
     504        echo "CFLAGS+=-I${otrprefix}/include" >> Makefile.settings
     505else
     506        echo '#undef WITH_OTR' >> config.h
     507fi
     508
    485509if [ ! -e doc/user-guide/help.txt ] && ! type xmlto > /dev/null 2> /dev/null; then
    486510        echo
     
    669693fi
    670694
     695if [ "$otr" = "1" ]; then
     696        echo '  Off-the-Record (OTR) Messaging enabled.'
     697else
     698        echo '  Off-the-Record (OTR) Messaging disabled.'
     699fi
     700
    671701echo '  Using event handler: '$events
    672702echo '  Using SSL library: '$ssl
Note: See TracChangeset for help on using the changeset viewer.