Changes in / [fb62f81f:9779c18]


Ignore:
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    rfb62f81f r9779c18  
    1313headers = account.h bitlbee.h commands.h conf.h config.h crypting.h help.h ini.h ipc.h irc.h log.h nick.h query.h set.h sock.h storage.h url.h user.h protocols/http_client.h protocols/md5.h protocols/nogaim.h protocols/proxy.h protocols/sha.h protocols/ssl_client.h
    1414subdirs = protocols
     15
     16objects += $(LDAP_OBJ)
    1517
    1618# Expansion of variables
  • configure

    rfb62f81f r9779c18  
    2828strip=1
    2929ipv6=1
     30ldap=auto
    3031ssl=auto
    3132
     
    6364
    6465--ipv6=0/1      IPv6 socket support                     $ipv6
     66
     67--ldap=0/1/auto LDAP support                            $ldap
    6568
    6669--ssl=...       SSL library to use (gnutls, nss, openssl, bogus, auto)
     
    203206}
    204207
     208detect_ldap()
     209{
     210        if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG ldb; then
     211                cat<<EOF>>Makefile.settings
     212EFLAGS+=`$PKG_CONFIG --libs ldb`
     213CFLAGS+=`$PKG_CONFIG --cflags ldb`
     214EOF
     215                ldap=1
     216                ret=1
     217        else
     218                ret=0
     219        fi
     220}
     221
    205222if [ "$msn" = 1 -o "$jabber" = 1 ]; then
    206223        if [ "$ssl" = "auto" ]; then
     
    263280fi
    264281
     282if [ "$ldap" = "auto" ]; then
     283        detect_ldap
     284fi
     285
     286if [ "$ldap" = 0 ]; then
     287        echo "LDAP_OBJ=\# no ldap" >> Makefile.settings
     288        echo "#undef LDAP" >> config.h
     289elif [ "$ldap" = 1 ]; then
     290        echo "#define LDAP 1" >> config.h
     291        echo "LDAP_OBJ=storage_ldap.o" >> Makefile.settings
     292fi
     293
    265294if [ "$strip" = 0 ]; then
    266295        echo "STRIP=\# skip strip" >> Makefile.settings;
     
    416445        echo '  Building without IM-protocol support. We wish you a lot of fun...';
    417446fi
     447
     448if [ "$ldap" = "0" ]; then
     449        echo "  LDAP storage backend disabled."
     450else
     451        echo "  LDAP storage backend enabled."
     452fi
  • storage.c

    rfb62f81f r9779c18  
    66
    77/* Support for multiple storage backends */
     8
     9/* Copyright (C) 2005 Jelmer Vernooij <jelmer@samba.org> */
    810
    911/*
Note: See TracChangeset for help on using the changeset viewer.