Changeset 5ebe625 for configure


Ignore:
Timestamp:
2006-02-12T07:26:20Z (19 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
f665dab
Parents:
a323a22 (diff), 58bc4e6 (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:

Merge

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    ra323a22 r5ebe625  
    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"
     
    289293fi
    290294
    291 if [ "$flood" = 1 ]; then
    292         # echo '#define FLOOD_SEND' >> config.h
    293         echo 'Flood protection is disabled in this release because of too many bugs.' 2> /dev/stderr
    294         rm config.h
    295         rm Makefile.settings
    296         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\"
    297300fi
    298301
    299302if [ -n "$BITLBEE_VERSION" ]; then
    300         echo
    301303        echo 'Spoofing version number: '$BITLBEE_VERSION
    302304        echo '#undef BITLBEE_VERSION' >> config.h
    303         echo '#define BITLBEE_VERSION '$BITLBEE_VERSION >> config.h;
     305        echo '#define BITLBEE_VERSION '$BITLBEE_VERSION >> config.h
     306        echo
    304307fi
    305308
     
    340343
    341344if [ "$protocols" = "PROTOCOLS = " ]; then
    342         echo
    343345        echo "WARNING: You haven't selected any communication protocol to compile!"
    344346        echo "         Bitlbee will run, but you will be unable to connect to IM servers!"
     
    348350echo "PROTOOBJS = $protoobjs" >> Makefile.settings
    349351
    350 echo
    351352echo Architecture: $arch
    352353case "$arch" in
Note: See TracChangeset for help on using the changeset viewer.