Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r1b221e0 r8462239  
    2020ipcsocket='/var/run/bitlbee.sock'
    2121pcdir='$prefix/lib/pkgconfig'
    22 systemlibdirs="/lib /usr/lib /usr/local/lib"
     22systemlibdirs="/lib /lib64 /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64"
    2323
    2424msn=1
     
    2626oscar=1
    2727yahoo=1
    28 twitter=1
    2928
    3029debug=0
     
    6766--oscar=0/1     Disable/enable Oscar part (ICQ, AIM)    $oscar
    6867--yahoo=0/1     Disable/enable Yahoo part               $yahoo
    69 --twitter=0/1 Disable/enable Twitter part               $twitter
    7068
    7169--debug=0/1     Disable/enable debugging                $debug
     
    297295detect_resolv_dynamic()
    298296{
    299         echo "$RESOLV_TESTCODE" | $CC -o /dev/null -x c - -lresolv >/dev/null 2>/dev/null
     297        TMPFILE=$(mktemp)
     298        ret=1
     299        echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - -lresolv >/dev/null 2>/dev/null
    300300        if [ "$?" = "0" ]; then
    301301                echo 'EFLAGS+=-lresolv' >> Makefile.settings
    302                 return 0
    303         fi
    304 
    305         return 1
     302                ret=0
     303        fi
     304
     305        rm -f $TMPFILE
     306        return $ret
    306307}
    307308
    308309detect_resolv_static()
    309310{
     311        TMPFILE=$(mktemp)
     312        ret=1
    310313        for i in $systemlibdirs; do
    311314                if [ -f $i/libresolv.a ]; then
    312                         echo "$RESOLV_TESTCODE" | $CC -o /dev/null -x c - -Wl,$i/libresolv.a >/dev/null 2>/dev/null
     315                        echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - -Wl,$i/libresolv.a >/dev/null 2>/dev/null
    313316                        if [ "$?" = "0" ]; then
    314317                                echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings
    315                                 return 0
     318                                ret=0
    316319                        fi
    317320                fi
    318321        done
    319322
    320         return 1
     323        rm -f $TMPFILE
     324        return $ret
    321325}
    322326
     
    362366       
    363367        ## Yes, you, at the console! How can you authenticate if you don't have any SSL!?
    364         if [ "$msn" = "1" ]; then
     368        if [ "$msn" = "1" -o "$yahoo" = "1" ]; then
    365369                echo
    366                 echo 'Real SSL support is necessary for MSN authentication, will build without'
    367                 echo 'MSN protocol support.'
     370                echo 'WARNING: The MSN and Yahoo! modules will not work without SSL. Disabling.'
    368371                msn=0
     372                yahoo=0
    369373        fi
    370374       
     
    446450fi
    447451
     452if [ ! -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.'
     456fi
     457
    448458echo
    449459if [ -z "$BITLBEE_VERSION" -a -d .bzr ] && type bzr > /dev/null 2> /dev/null; then
     
    514524fi
    515525
    516 if [ "$twitter" = 0 ]; then
    517         echo '#undef WITH_TWITTER' >> config.h
    518 else
    519         echo '#define WITH_TWITTER' >> config.h
    520         protocols=$protocols'twitter '
    521         protoobjs=$protoobjs'twitter_mod.o '
    522 fi
    523 
    524526if [ "$protocols" = "PROTOCOLS = " ]; then
    525527        echo "Warning: You haven't selected any communication protocol to compile!"
     
    539541;;
    540542Darwin )
     543        echo 'STRIP=\# skip strip' >> Makefile.settings
    541544;;
    542545IRIX )
Note: See TracChangeset for help on using the changeset viewer.