Changeset 81ee561 for configure


Ignore:
Timestamp:
2010-03-20T18:03:18Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
85693e6
Parents:
3330468 (diff), 0baed0d (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:

Merging head. Most changes are not so relevant because they're to IM
modules.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r3330468 r81ee561  
    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
     
    159159
    160160echo CFLAGS=$CFLAGS >> Makefile.settings
    161 echo CFLAGS+=-I`pwd` -iquote`pwd`/lib -iquote`pwd`/protocols -I. >> Makefile.settings
     161echo CFLAGS+=-I`pwd` -I`pwd`/lib -I`pwd`/protocols -I. >> Makefile.settings
    162162
    163163echo CFLAGS+=-DHAVE_CONFIG_H >> Makefile.settings
     
    298298detect_resolv_dynamic()
    299299{
    300         echo "$RESOLV_TESTCODE" | $CC -o /dev/null -x c - -lresolv >/dev/null 2>/dev/null
     300        TMPFILE=$(mktemp)
     301        ret=1
     302        echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - -lresolv >/dev/null 2>/dev/null
    301303        if [ "$?" = "0" ]; then
    302304                echo 'EFLAGS+=-lresolv' >> Makefile.settings
    303                 return 0
    304         fi
    305 
    306         return 1
     305                ret=0
     306        fi
     307
     308        rm -f $TMPFILE
     309        return $ret
    307310}
    308311
    309312detect_resolv_static()
    310313{
     314        TMPFILE=$(mktemp)
     315        ret=1
    311316        for i in $systemlibdirs; do
    312317                if [ -f $i/libresolv.a ]; then
    313                         echo "$RESOLV_TESTCODE" | $CC -o /dev/null -x c - -Wl,$i/libresolv.a >/dev/null 2>/dev/null
     318                        echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - -Wl,$i/libresolv.a >/dev/null 2>/dev/null
    314319                        if [ "$?" = "0" ]; then
    315320                                echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings
    316                                 return 0
     321                                ret=0
    317322                        fi
    318323                fi
    319324        done
    320325
    321         return 1
     326        rm -f $TMPFILE
     327        return $ret
    322328}
    323329
Note: See TracChangeset for help on using the changeset viewer.