Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    re506d6c rf665dab  
    1515config='/var/lib/bitlbee/'
    1616pidfile='/var/run/bitlbee.pid'
    17 ipcsocket='/var/run/bitlbee'
    1817plugindir='$prefix/lib/bitlbee'
    19 pcdir='$prefix/lib/pkgconfig'
    20 includedir='$prefix/include/bitlbee'
    2118
    2219msn=1
     
    2825strip=1
    2926ipv6=1
     27ldb=auto
    3028ssl=auto
    3129
     
    5250--pidfile=...                                           $pidfile
    5351--config=...                                            $config
    54 --ipcsocket=...                                         $ipcsocket
    5552
    5653--msn=0/1       Disable/enable MSN part                 $msn
     
    6360
    6461--ipv6=0/1      IPv6 socket support                     $ipv6
     62
     63--ldb=0/1/auto  LDB support                             $ldb
    6564
    6665--ssl=...       SSL library to use (gnutls, nss, openssl, bogus, auto)
     
    8079config=`eval echo "$config/" | sed 's/\/\{1,\}/\//g'`
    8180plugindir=`eval echo "$plugindir/" | sed 's/\/\{1,\}/\//g'`
    82 pidfile=`eval echo "$pidfile" | sed 's/\/\{1,\}/\//g'`
    83 ipcsocket=`eval echo "$ipcsocket" | sed 's/\/\{1,\}/\//g'`
    84 includedir=`eval echo "$includedir" | sed 's/\/\{1,\}/\//g'`
    85 pcdir=`eval echo "$pcdir" | sed 's/\/\{1,\}/\//g'`
     81pidfile=`eval echo "$pidfile/" | sed 's/\/\{1,\}/\//g'`
    8682
    8783cat<<EOF>Makefile.settings
     
    9389DATADIR=$datadir
    9490PLUGINDIR=$plugindir
     91PIDFILE=$pidfile
    9592CONFIG=$config
    96 IPCSOCKET=$ipcsocket
    97 INCLUDEDIR=$includedir
    98 PCDIR=$pcdir
    9993
    10094ARCH=$arch
     
    118112#define PLUGINDIR "$plugindir"
    119113#define PIDFILE "$pidfile"
    120 #define IPCSOCKET "$ipcsocket"
    121114#define ARCH "$arch"
    122115#define CPU "$cpu"
     
    219212                ret=0;
    220213        fi;
     214}
     215
     216detect_ldb()
     217{
     218        if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG ldb; then
     219                cat<<EOF>>Makefile.settings
     220EFLAGS+=`$PKG_CONFIG --libs ldb`
     221CFLAGS+=`$PKG_CONFIG --cflags ldb`
     222EOF
     223                ldb=1
     224                ret=1
     225        else
     226                ret=0
     227        fi
    221228}
    222229
     
    281288fi
    282289
     290if [ "$ldb" = "auto" ]; then
     291        detect_ldb
     292fi
     293
     294if [ "$ldb" = 0 ]; then
     295        echo "LDB_OBJ=\# no ldb" >> Makefile.settings
     296        echo "#undef LDB" >> config.h
     297elif [ "$ldb" = 1 ]; then
     298        echo "#define LDB 1" >> config.h
     299        echo "LDB_OBJ=storage_ldb.o" >> Makefile.settings
     300fi
     301
    283302if [ "$strip" = 0 ]; then
    284303        echo "STRIP=\# skip strip" >> Makefile.settings;
     
    317336fi
    318337
    319 cat <<EOF>bitlbee.pc
    320 prefix=$prefix
    321 includedir=$includedir
    322 
    323 Name: bitlbee
    324 Description: IRC to IM gateway
    325 Requires: glib-2.0
    326 Version: $BITLBEE_VERSION
    327 Libs:
    328 Cflags: -I\${includedir}
    329 
    330 EOF
    331 
    332338protocols=''
    333339protoobjs=''
     
    431437        echo '  Building without IM-protocol support. We wish you a lot of fun...';
    432438fi
     439
     440if [ "$ldb" = "0" ]; then
     441        echo "  LDB storage backend disabled."
     442else
     443        echo "  LDB storage backend enabled."
     444fi
Note: See TracChangeset for help on using the changeset viewer.