aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure23
1 files changed, 12 insertions, 11 deletions
diff --git a/configure b/configure
index d5ad1c56..2731d5b1 100755
--- a/configure
+++ b/configure
@@ -13,6 +13,7 @@ etcdir='$prefix/etc/bitlbee/'
mandir='$prefix/share/man/'
datadir='$prefix/share/bitlbee/'
config='/var/lib/bitlbee/'
+pidfile='/var/run/bitlbee.pid'
plugindir='$prefix/lib/bitlbee'
msn=1
@@ -22,7 +23,6 @@ yahoo=1
debug=0
strip=1
-flood=0
ipv6=1
ssl=auto
@@ -46,6 +46,7 @@ Option Description Default
--mandir=... $mandir
--datadir=... $datadir
--plugindir=... $plugindir
+--pidfile=... $pidfile
--config=... $config
--msn=0/1 Disable/enable MSN part $msn
@@ -74,6 +75,7 @@ mandir=`eval echo "$mandir/" | sed 's/\/\{1,\}/\//g'`
datadir=`eval echo "$datadir/" | sed 's/\/\{1,\}/\//g'`
config=`eval echo "$config/" | sed 's/\/\{1,\}/\//g'`
plugindir=`eval echo "$plugindir/" | sed 's/\/\{1,\}/\//g'`
+pidfile=`eval echo "$pidfile/" | sed 's/\/\{1,\}/\//g'`
cat<<EOF>Makefile.settings
## BitlBee settings, generated by configure
@@ -83,6 +85,7 @@ ETCDIR=$etcdir
MANDIR=$mandir
DATADIR=$datadir
PLUGINDIR=$plugindir
+PIDFILE=$pidfile
CONFIG=$config
ARCH=$arch
@@ -104,6 +107,7 @@ cat<<EOF>config.h
#define ETCDIR "$etcdir"
#define VARDIR "$datadir"
#define PLUGINDIR "$plugindir"
+#define PIDFILE "$pidfile"
#define ARCH "$arch"
#define CPU "$cpu"
EOF
@@ -288,19 +292,18 @@ else
fi;
fi
-if [ "$flood" = 1 ]; then
- # echo '#define FLOOD_SEND' >> config.h
- echo 'Flood protection is disabled in this release because of too many bugs.' 2> /dev/stderr
- rm config.h
- rm Makefile.settings
- exit 1
+echo
+if [ -z "$BITLBEE_VERSION" -a -d .bzr -a -x "`which bzr`" ]; then
+ rev=`bzr revno`
+ echo 'Using bzr revision #'$rev' as version number'
+ BITLBEE_VERSION=\"bzr-$rev\"
fi
if [ -n "$BITLBEE_VERSION" ]; then
- echo
echo 'Spoofing version number: '$BITLBEE_VERSION
echo '#undef BITLBEE_VERSION' >> config.h
- echo '#define BITLBEE_VERSION '$BITLBEE_VERSION >> config.h;
+ echo '#define BITLBEE_VERSION '$BITLBEE_VERSION >> config.h
+ echo
fi
protocols=''
@@ -339,7 +342,6 @@ else
fi
if [ "$protocols" = "PROTOCOLS = " ]; then
- echo
echo "WARNING: You haven't selected any communication protocol to compile!"
echo " Bitlbee will run, but you will be unable to connect to IM servers!"
fi
@@ -347,7 +349,6 @@ fi
echo "PROTOCOLS = $protocols" >> Makefile.settings
echo "PROTOOBJS = $protoobjs" >> Makefile.settings
-echo
echo Architecture: $arch
case "$arch" in
Linux )