Changeset fb020ac for configure


Ignore:
Timestamp:
2010-03-07T18:43:23Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
279607e
Parents:
e08e53c (diff), c32f492 (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 in mainline, including improved away/status stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    re08e53c rfb020ac  
    270270detect_ldap()
    271271{
    272         TMPFILE=`mktemp`
     272        TMPFILE=$(mktemp)
    273273        if $CC -o $TMPFILE -shared -lldap 2>/dev/null >/dev/null; then
    274274                cat<<EOF>>Makefile.settings
     
    283283                ret=0
    284284        fi
     285}
     286
     287RESOLV_TESTCODE='
     288#include <arpa/nameser.h>
     289#include <resolv.h>
     290
     291int main()
     292{
     293        ns_initparse( NULL, 0, NULL );
     294        ns_parserr( NULL, ns_s_an, 0, NULL );
     295}
     296'
     297
     298detect_resolv_dynamic()
     299{
     300        echo "$RESOLV_TESTCODE" | $CC -o /dev/null -x c - -lresolv >/dev/null 2>/dev/null
     301        if [ "$?" = "0" ]; then
     302                echo 'EFLAGS+=-lresolv' >> Makefile.settings
     303                return 0
     304        fi
     305
     306        return 1
     307}
     308
     309detect_resolv_static()
     310{
     311        for i in $systemlibdirs; do
     312                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
     314                        if [ "$?" = "0" ]; then
     315                                echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings
     316                                return 0
     317                        fi
     318                fi
     319        done
     320
     321        return 1
    285322}
    286323
     
    326363       
    327364        ## Yes, you, at the console! How can you authenticate if you don't have any SSL!?
    328         if [ "$msn" = "1" ]; then
     365        if [ "$msn" = "1" -o "$yahoo" = "1" ]; then
    329366                echo
    330                 echo 'Real SSL support is necessary for MSN authentication, will build without'
    331                 echo 'MSN protocol support.'
     367                echo 'WARNING: The MSN and Yahoo! modules will not work without SSL. Disabling.'
    332368                msn=0
     369                yahoo=0
    333370        fi
    334371       
     
    352389echo 'SSL_CLIENT=ssl_'$ssl'.o' >> Makefile.settings
    353390
    354 for i in $systemlibdirs; do
    355         if [ -f $i/libresolv.a ]; then
    356                 echo '#define HAVE_RESOLV_A' >> config.h
    357                 echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings
    358                 break
    359         fi
    360 done
     391if detect_resolv_dynamic || detect_resolv_static; then
     392        echo '#define HAVE_RESOLV_A' >> config.h
     393fi
    361394
    362395STORAGES="text xml"
Note: See TracChangeset for help on using the changeset viewer.