Changeset 814aa52 for configure


Ignore:
Timestamp:
2010-06-03T11:00:45Z (14 years ago)
Author:
Sven Moritz Hallberg <pesco@…>
Branches:
master
Children:
a6b2f13
Parents:
5f8ab6a9 (diff), f4bcc22 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge in bitlbee 1.2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r5f8ab6a9 r814aa52  
    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
     28twitter=1
    2829
    2930debug=0
     
    6768--oscar=0/1     Disable/enable Oscar part (ICQ, AIM)    $oscar
    6869--yahoo=0/1     Disable/enable Yahoo part               $yahoo
     70--twitter=0/1 Disable/enable Twitter part               $twitter
    6971
    7072--debug=0/1     Disable/enable debugging                $debug
     
    158160
    159161echo CFLAGS=$CFLAGS >> Makefile.settings
    160 echo CFLAGS+=-I`pwd` -iquote`pwd`/lib -iquote`pwd`/protocols -I. >> Makefile.settings
     162echo CFLAGS+=-I`pwd` -I`pwd`/lib -I`pwd`/protocols -I. >> Makefile.settings
    161163
    162164echo CFLAGS+=-DHAVE_CONFIG_H >> Makefile.settings
     
    269271detect_ldap()
    270272{
    271         TMPFILE=$(mktemp)
     273        TMPFILE=$(mktemp /tmp/bitlbee-configure.XXXXXX)
    272274        if $CC -o $TMPFILE -shared -lldap 2>/dev/null >/dev/null; then
    273275                cat<<EOF>>Makefile.settings
     
    297299detect_resolv_dynamic()
    298300{
    299         echo "$RESOLV_TESTCODE" | $CC -o /dev/null -x c - -lresolv >/dev/null 2>/dev/null
     301        TMPFILE=$(mktemp /tmp/bitlbee-configure.XXXXXX)
     302        ret=1
     303        echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - -lresolv >/dev/null 2>/dev/null
    300304        if [ "$?" = "0" ]; then
    301305                echo 'EFLAGS+=-lresolv' >> Makefile.settings
    302                 return 0
    303         fi
    304 
    305         return 1
     306                ret=0
     307        fi
     308
     309        rm -f $TMPFILE
     310        return $ret
    306311}
    307312
    308313detect_resolv_static()
    309314{
     315        TMPFILE=$(mktemp /tmp/bitlbee-configure.XXXXXX)
     316        ret=1
    310317        for i in $systemlibdirs; do
    311318                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
     319                        echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - -Wl,$i/libresolv.a >/dev/null 2>/dev/null
    313320                        if [ "$?" = "0" ]; then
    314321                                echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings
    315                                 return 0
     322                                ret=0
    316323                        fi
    317324                fi
    318325        done
    319326
    320         return 1
     327        rm -f $TMPFILE
     328        return $ret
    321329}
    322330
     
    494502fi
    495503
     504if ! make helloworld > /dev/null 2>&1; then
     505        echo "WARNING: Your version of make (BSD make?) does not support BitlBee's makefiles."
     506        echo "BitlBee needs GNU make to build properly. On most systems GNU make is available"
     507        echo "under the name 'gmake'."
     508        echo
     509        if gmake helloworld > /dev/null 2>&1; then
     510                echo "gmake seems to be available on your machine, great."
     511                echo
     512        else
     513                echo "gmake is not installed (or not working). Please try to install it."
     514                echo
     515        fi
     516fi
     517
    496518cat <<EOF>bitlbee.pc
    497519prefix=$prefix
     
    542564fi
    543565
     566if [ "$twitter" = 0 ]; then
     567        echo '#undef WITH_TWITTER' >> config.h
     568else
     569        echo '#define WITH_TWITTER' >> config.h
     570        protocols=$protocols'twitter '
     571        protoobjs=$protoobjs'twitter_mod.o '
     572fi
     573
    544574if [ "$protocols" = "PROTOCOLS = " ]; then
    545575        echo "Warning: You haven't selected any communication protocol to compile!"
Note: See TracChangeset for help on using the changeset viewer.