Changeset 764c7d1 for configure


Ignore:
Timestamp:
2008-02-03T21:30:03Z (17 years ago)
Author:
Sven Moritz Hallberg <sm@…>
Branches:
master
Children:
3c80a9d
Parents:
b5c8a34
Message:

OTR support, first checkin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    rb5c8a34 r764c7d1  
    3030gcov=0
    3131plugins=1
     32otr=auto
    3233
    3334events=glib
     
    7071--gcov=0/1      Disable/enable test coverage reporting  $gcov
    7172--plugins=0/1   Disable/enable plugins support          $plugins
     73--otr=0/1/auto  Disable/enable OTR encryption support   $otr
    7274
    7375--events=...    Event handler (glib, libevent)          $events
     
    174176        if $PKG_CONFIG glib-2.0 --atleast-version=$GLIB_MIN_VERSION; then
    175177                cat<<EOF>>Makefile.settings
    176 EFLAGS+=`$PKG_CONFIG --libs glib-2.0 gmodule-2.0`
    177 CFLAGS+=`$PKG_CONFIG --cflags glib-2.0 gmodule-2.0`
     178EFLAGS+=`$PKG_CONFIG --libs glib-2.0 gmodule-2.0 gthread-2.0`
     179CFLAGS+=`$PKG_CONFIG --cflags glib-2.0 gmodule-2.0 gthread-2.0`
    178180EOF
    179181        else
     
    385387fi
    386388
     389if [ "$otr" = "auto" ]; then
     390        for i in /lib /usr/lib /usr/local/lib; do
     391                if [ -f $i/libotr.a ]; then
     392                        otr=1
     393                        break
     394                fi
     395        done
     396fi
     397if [ "$otr" = 0 ]; then
     398        echo '#undef WITH_OTR' >> config.h
     399else
     400        echo '#define WITH_OTR' >> config.h
     401        echo "EFLAGS+=-lotr" >> Makefile.settings
     402fi
     403
    387404echo
    388405if [ -z "$BITLBEE_VERSION" -a -d .bzr ] && type bzr > /dev/null 2> /dev/null; then
     
    504521fi
    505522
     523if [ "$otr" = "1" ]; then
     524        echo '  Off-the-Record (OTR) Messaging enabled.'
     525else
     526        echo '  Off-the-Record (OTR) Messaging disabled.'
     527fi
     528
    506529echo '  Using event handler: '$events
    507530echo '  Using SSL library: '$ssl
Note: See TracChangeset for help on using the changeset viewer.