Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r6a72a57 r823de9d  
    3131gcov=0
    3232plugins=1
     33otr=auto
    3334
    3435events=glib
     
    7172--gcov=0/1      Disable/enable test coverage reporting  $gcov
    7273--plugins=0/1   Disable/enable plugins support          $plugins
     74--otr=0/1       Disable/enable OTR encryption support   $otr
    7375
    7476--events=...    Event handler (glib, libevent)          $events
     
    411413fi
    412414
     415otrprefix=""
     416for i in / /usr /usr/local; do
     417        if [ -f ${i}/lib/libotr.a ]; then
     418                otrprefix=${i}
     419                break
     420        fi
     421done
     422if [ "$otr" = "auto" ]; then
     423        if [ -n "$otrprefix" ]; then
     424                otr=1
     425        else
     426                otr=0
     427        fi
     428fi
     429if [ "$otr" = 1 ]; then
     430        echo '#define WITH_OTR' >> config.h
     431        echo "EFLAGS+=-L${otrprefix}/lib -lotr" >> Makefile.settings
     432        echo "CFLAGS+=-I${otrprefix}/include" >> Makefile.settings
     433else
     434        echo '#undef WITH_OTR' >> config.h
     435fi
     436
    413437echo
    414438if [ -z "$BITLBEE_VERSION" -a -d .bzr ] && type bzr > /dev/null 2> /dev/null; then
     
    536560fi
    537561
     562if [ "$otr" = "1" ]; then
     563        echo '  Off-the-Record (OTR) Messaging enabled.'
     564else
     565        echo '  Off-the-Record (OTR) Messaging disabled.'
     566fi
     567
    538568echo '  Using event handler: '$events
    539569echo '  Using SSL library: '$ssl
Note: See TracChangeset for help on using the changeset viewer.