Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r8462239 r1b221e0  
    2020ipcsocket='/var/run/bitlbee.sock'
    2121pcdir='$prefix/lib/pkgconfig'
    22 systemlibdirs="/lib /lib64 /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64"
     22systemlibdirs="/lib /usr/lib /usr/local/lib"
    2323
    2424msn=1
     
    2626oscar=1
    2727yahoo=1
     28twitter=1
    2829
    2930debug=0
     
    6667--oscar=0/1     Disable/enable Oscar part (ICQ, AIM)    $oscar
    6768--yahoo=0/1     Disable/enable Yahoo part               $yahoo
     69--twitter=0/1 Disable/enable Twitter part               $twitter
    6870
    6971--debug=0/1     Disable/enable debugging                $debug
     
    295297detect_resolv_dynamic()
    296298{
    297         TMPFILE=$(mktemp)
    298         ret=1
    299         echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - -lresolv >/dev/null 2>/dev/null
     299        echo "$RESOLV_TESTCODE" | $CC -o /dev/null -x c - -lresolv >/dev/null 2>/dev/null
    300300        if [ "$?" = "0" ]; then
    301301                echo 'EFLAGS+=-lresolv' >> Makefile.settings
    302                 ret=0
    303         fi
    304 
    305         rm -f $TMPFILE
    306         return $ret
     302                return 0
     303        fi
     304
     305        return 1
    307306}
    308307
    309308detect_resolv_static()
    310309{
    311         TMPFILE=$(mktemp)
    312         ret=1
    313310        for i in $systemlibdirs; do
    314311                if [ -f $i/libresolv.a ]; then
    315                         echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - -Wl,$i/libresolv.a >/dev/null 2>/dev/null
     312                        echo "$RESOLV_TESTCODE" | $CC -o /dev/null -x c - -Wl,$i/libresolv.a >/dev/null 2>/dev/null
    316313                        if [ "$?" = "0" ]; then
    317314                                echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings
    318                                 ret=0
     315                                return 0
    319316                        fi
    320317                fi
    321318        done
    322319
    323         rm -f $TMPFILE
    324         return $ret
     320        return 1
    325321}
    326322
     
    366362       
    367363        ## Yes, you, at the console! How can you authenticate if you don't have any SSL!?
    368         if [ "$msn" = "1" -o "$yahoo" = "1" ]; then
     364        if [ "$msn" = "1" ]; then
    369365                echo
    370                 echo 'WARNING: The MSN and Yahoo! modules will not work without SSL. Disabling.'
     366                echo 'Real SSL support is necessary for MSN authentication, will build without'
     367                echo 'MSN protocol support.'
    371368                msn=0
    372                 yahoo=0
    373369        fi
    374370       
     
    450446fi
    451447
    452 if [ ! -e doc/user-guide/help.txt ] && ! type xmlto > /dev/null 2> /dev/null; then
    453         echo
    454         echo 'WARNING: Building from an unreleased source tree without prebuilt helpfile.'
    455         echo 'Install xmlto if you want online help to work.'
    456 fi
    457 
    458448echo
    459449if [ -z "$BITLBEE_VERSION" -a -d .bzr ] && type bzr > /dev/null 2> /dev/null; then
     
    524514fi
    525515
     516if [ "$twitter" = 0 ]; then
     517        echo '#undef WITH_TWITTER' >> config.h
     518else
     519        echo '#define WITH_TWITTER' >> config.h
     520        protocols=$protocols'twitter '
     521        protoobjs=$protoobjs'twitter_mod.o '
     522fi
     523
    526524if [ "$protocols" = "PROTOCOLS = " ]; then
    527525        echo "Warning: You haven't selected any communication protocol to compile!"
     
    541539;;
    542540Darwin )
    543         echo 'STRIP=\# skip strip' >> Makefile.settings
    544541;;
    545542IRIX )
Note: See TracChangeset for help on using the changeset viewer.