Changeset 5f8ab6a9 for configure


Ignore:
Timestamp:
2010-06-03T10:41:03Z (14 years ago)
Author:
Sven Moritz Hallberg <pesco@…>
Branches:
master
Children:
814aa52
Parents:
3f81999 (diff), f9928cb (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.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r3f81999 r5f8ab6a9  
    158158
    159159echo CFLAGS=$CFLAGS >> Makefile.settings
    160 echo CFLAGS+=-I`pwd` -I`pwd`/lib -I`pwd`/protocols -I. >> Makefile.settings
     160echo CFLAGS+=-I`pwd` -iquote`pwd`/lib -iquote`pwd`/protocols -I. >> Makefile.settings
    161161
    162162echo CFLAGS+=-DHAVE_CONFIG_H >> Makefile.settings
     
    269269detect_ldap()
    270270{
    271         TMPFILE=`mktemp`
     271        TMPFILE=$(mktemp)
    272272        if $CC -o $TMPFILE -shared -lldap 2>/dev/null >/dev/null; then
    273273                cat<<EOF>>Makefile.settings
     
    282282                ret=0
    283283        fi
     284}
     285
     286RESOLV_TESTCODE='
     287#include <arpa/nameser.h>
     288#include <resolv.h>
     289
     290int main()
     291{
     292        ns_initparse( NULL, 0, NULL );
     293        ns_parserr( NULL, ns_s_an, 0, NULL );
     294}
     295'
     296
     297detect_resolv_dynamic()
     298{
     299        echo "$RESOLV_TESTCODE" | $CC -o /dev/null -x c - -lresolv >/dev/null 2>/dev/null
     300        if [ "$?" = "0" ]; then
     301                echo 'EFLAGS+=-lresolv' >> Makefile.settings
     302                return 0
     303        fi
     304
     305        return 1
     306}
     307
     308detect_resolv_static()
     309{
     310        for i in $systemlibdirs; do
     311                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
     313                        if [ "$?" = "0" ]; then
     314                                echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings
     315                                return 0
     316                        fi
     317                fi
     318        done
     319
     320        return 1
    284321}
    285322
     
    325362       
    326363        ## Yes, you, at the console! How can you authenticate if you don't have any SSL!?
    327         if [ "$msn" = "1" ]; then
     364        if [ "$msn" = "1" -o "$yahoo" = "1" ]; then
    328365                echo
    329                 echo 'Real SSL support is necessary for MSN authentication, will build without'
    330                 echo 'MSN protocol support.'
     366                echo 'WARNING: The MSN and Yahoo! modules will not work without SSL. Disabling.'
    331367                msn=0
     368                yahoo=0
    332369        fi
    333370       
     
    351388echo 'SSL_CLIENT=ssl_'$ssl'.o' >> Makefile.settings
    352389
    353 for i in $systemlibdirs; do
    354         if [ -f $i/libresolv.a ]; then
    355                 echo '#define HAVE_RESOLV_A' >> config.h
    356                 echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings
    357                 break
    358         fi
    359 done
     390if detect_resolv_dynamic || detect_resolv_static; then
     391        echo '#define HAVE_RESOLV_A' >> config.h
     392fi
    360393
    361394STORAGES="text xml"
     
    435468fi
    436469
     470if [ ! -e doc/user-guide/help.txt ] && ! type xmlto > /dev/null 2> /dev/null; then
     471        echo
     472        echo 'WARNING: Building from an unreleased source tree without prebuilt helpfile.'
     473        echo 'Install xmlto if you want online help to work.'
     474fi
     475
    437476echo
    438477if [ -z "$BITLBEE_VERSION" -a -d .bzr ] && type bzr > /dev/null 2> /dev/null; then
     
    520559;;
    521560Darwin )
     561        echo 'STRIP=\# skip strip' >> Makefile.settings
    522562;;
    523563IRIX )
Note: See TracChangeset for help on using the changeset viewer.