Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    rb5a22e3 r34b17d9  
    1414datadir='$prefix/share/bitlbee/'
    1515config='/var/lib/bitlbee/'
     16pidfile='/var/run/bitlbee.pid'
    1617plugindir='$prefix/lib/bitlbee'
    1718
     
    2324debug=0
    2425strip=1
    25 flood=0
    2626ipv6=1
    2727ssl=auto
     
    4747--datadir=...                                           $datadir
    4848--plugindir=...                                         $plugindir
     49--pidfile=...                                           $pidfile
    4950--config=...                                            $config
    5051
     
    7576config=`eval echo "$config/" | sed 's/\/\{1,\}/\//g'`
    7677plugindir=`eval echo "$plugindir/" | sed 's/\/\{1,\}/\//g'`
     78pidfile=`eval echo "$pidfile/" | sed 's/\/\{1,\}/\//g'`
    7779
    7880cat<<EOF>Makefile.settings
     
    8486DATADIR=$datadir
    8587PLUGINDIR=$plugindir
     88PIDFILE=$pidfile
    8689CONFIG=$config
    8790
     
    105108#define VARDIR "$datadir"
    106109#define PLUGINDIR "$plugindir"
     110#define PIDFILE "$pidfile"
    107111#define ARCH "$arch"
    108112#define CPU "$cpu"
     
    145149fi
    146150
    147 if type pkg-config > /dev/null 2>/dev/null && pkg-config glib-2.0; then
     151if [ -z "$PKG_CONFIG" ]; then
     152        PKG_CONFIG=pkg-config
     153fi
     154
     155if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG glib-2.0; then
    148156        cat<<EOF>>Makefile.settings
    149 EFLAGS+=`pkg-config --libs glib-2.0 gmodule-2.0`
    150 CFLAGS+=`pkg-config --cflags glib-2.0 gmodule-2.0`
     157EFLAGS+=`$PKG_CONFIG --libs glib-2.0 gmodule-2.0`
     158CFLAGS+=`$PKG_CONFIG --cflags glib-2.0 gmodule-2.0`
    151159EOF
    152160        echo '#define GLIB2' >> config.h
     
    190198detect_nss()
    191199{
    192         if type pkg-config > /dev/null 2>/dev/null && pkg-config mozilla-nss; then
     200        if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG mozilla-nss; then
    193201                cat<<EOF>>Makefile.settings
    194 EFLAGS+=`pkg-config --libs mozilla-nss`
    195 CFLAGS+=`pkg-config --cflags mozilla-nss`
     202EFLAGS+=`$PKG_CONFIG --libs mozilla-nss`
     203CFLAGS+=`$PKG_CONFIG --cflags mozilla-nss`
    196204EOF
    197205               
     
    285293fi
    286294
    287 if [ "$flood" = 1 ]; then
    288         # echo '#define FLOOD_SEND' >> config.h
    289         echo 'Flood protection is disabled in this release because of too many bugs.' 2> /dev/stderr
    290         rm config.h
    291         rm Makefile.settings
    292         exit 1
     295echo
     296if [ -z "$BITLBEE_VERSION" -a -d .bzr -a -x "`which bzr`" ]; then
     297        rev=`bzr revno`
     298        echo 'Using bzr revision #'$rev' as version number'
     299        BITLBEE_VERSION=\"bzr-$rev\"
    293300fi
    294301
    295302if [ -n "$BITLBEE_VERSION" ]; then
    296         echo
    297303        echo 'Spoofing version number: '$BITLBEE_VERSION
    298304        echo '#undef BITLBEE_VERSION' >> config.h
    299         echo '#define BITLBEE_VERSION '$BITLBEE_VERSION >> config.h;
     305        echo '#define BITLBEE_VERSION '$BITLBEE_VERSION >> config.h
     306        echo
    300307fi
    301308
     
    336343
    337344if [ "$protocols" = "PROTOCOLS = " ]; then
    338         echo
    339345        echo "WARNING: You haven't selected any communication protocol to compile!"
    340346        echo "         Bitlbee will run, but you will be unable to connect to IM servers!"
     
    344350echo "PROTOOBJS = $protoobjs" >> Makefile.settings
    345351
    346 echo
    347352echo Architecture: $arch
    348353case "$arch" in
Note: See TracChangeset for help on using the changeset viewer.