Changes in / [96ace1b:27ac72d]


Ignore:
Files:
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r96ace1b r27ac72d  
    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 
    16 objects += $(LDB_OBJ)
    1715
    1816# Expansion of variables
  • configure

    r96ace1b r27ac72d  
    2828strip=1
    2929ipv6=1
    30 ldb=auto
    3130ssl=auto
    3231
     
    6463
    6564--ipv6=0/1      IPv6 socket support                     $ipv6
    66 
    67 --ldb=0/1/auto  LDB support                             $ldb
    6865
    6966--ssl=...       SSL library to use (gnutls, nss, openssl, bogus, auto)
     
    224221}
    225222
    226 detect_ldb()
    227 {
    228         if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG ldb; then
    229                 cat<<EOF>>Makefile.settings
    230 EFLAGS+=`$PKG_CONFIG --libs ldb`
    231 CFLAGS+=`$PKG_CONFIG --cflags ldb`
    232 EOF
    233                 ldb=1
    234                 ret=1
    235         else
    236                 ret=0
    237         fi
    238 }
    239 
    240223if [ "$msn" = 1 -o "$jabber" = 1 ]; then
    241224        if [ "$ssl" = "auto" ]; then
     
    298281fi
    299282
    300 if [ "$ldb" = "auto" ]; then
    301         detect_ldb
    302 fi
    303 
    304 if [ "$ldb" = 0 ]; then
    305         echo "LDB_OBJ=\# no ldb" >> Makefile.settings
    306         echo "#undef LDB" >> config.h
    307 elif [ "$ldb" = 1 ]; then
    308         echo "#define LDB 1" >> config.h
    309         echo "LDB_OBJ=storage_ldb.o" >> Makefile.settings
    310 fi
    311 
    312283if [ "$strip" = 0 ]; then
    313284        echo "STRIP=\# skip strip" >> Makefile.settings;
     
    460431        echo '  Building without IM-protocol support. We wish you a lot of fun...';
    461432fi
    462 
    463 if [ "$ldb" = "0" ]; then
    464         echo "  LDB storage backend disabled."
    465 else
    466         echo "  LDB storage backend enabled."
    467 fi
  • storage.c

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