Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r4fca1db rca0981a  
    2727yahoo=1
    2828twitter=1
     29purple=1
    2930
    3031debug=0
     
    6869--yahoo=0/1     Disable/enable Yahoo part               $yahoo
    6970--twitter=0/1 Disable/enable Twitter part               $twitter
     71
     72--purple=0/1    Disable/enable libpurple support        $purple
    7073
    7174--debug=0/1     Disable/enable debugging                $debug
     
    508511protoobjs=''
    509512
     513if [ "$purple" = 0 ]; then
     514        echo '#undef WITH_PURPLE' >> config.h
     515else
     516        if ! $PKG_CONFIG purple; then
     517                echo
     518                echo 'Cannot find libpurple development libraries, aborting. (Install libpurple-dev?)'
     519                exit 1
     520        fi
     521        echo '#define WITH_PURPLE' >> config.h
     522        cat<<EOF>>Makefile.settings
     523EFLAGS += $($PKG_CONFIG purple --libs)
     524PURPLE_CFLAGS += $($PKG_CONFIG purple --cflags)
     525EOF
     526        protocols=$protocols'purple '
     527        protoobjs=$protoobjs'purple_mod.o '
     528
     529        # Having both libpurple and native IM modules in one binary may
     530        # do strange things. Let's not do that.
     531        msn=0
     532        jabber=0
     533        oscar=0
     534        yahoo=0
     535        twitter=0
     536       
     537        if [ "$events" = "libevent" ]; then
     538                echo
     539                echo 'Warning: Some libpurple modules (including msn-pecan) do their event handling'
     540                echo 'outside libpurple, talking to GLib directly. At least for now the combination'
     541                echo 'libpurple + libevent is *not* recommended!'
     542        fi
     543fi
     544
    510545if [ "$msn" = 0 ]; then
    511546        echo '#undef WITH_MSN' >> config.h
Note: See TracChangeset for help on using the changeset viewer.