diff options
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 29 | 
1 files changed, 27 insertions, 2 deletions
| @@ -16,6 +16,8 @@ config='/var/lib/bitlbee/'  pidfile='/var/run/bitlbee.pid'  ipcsocket='/var/run/bitlbee'  plugindir='$prefix/lib/bitlbee' +pcdir='$prefix/lib/pkgconfig' +includedir='$prefix/include/bitlbee'  msn=1  jabber=1 @@ -79,6 +81,8 @@ config=`eval echo "$config/" | sed 's/\/\{1,\}/\//g'`  plugindir=`eval echo "$plugindir/" | sed 's/\/\{1,\}/\//g'`  pidfile=`eval echo "$pidfile" | sed 's/\/\{1,\}/\//g'`  ipcsocket=`eval echo "$ipcsocket" | sed 's/\/\{1,\}/\//g'` +includedir=`eval echo "$includedir" | sed 's/\/\{1,\}/\//g'` +pcdir=`eval echo "$pcdir" | sed 's/\/\{1,\}/\//g'`  cat<<EOF>Makefile.settings  ## BitlBee settings, generated by configure @@ -90,6 +94,8 @@ DATADIR=$datadir  PLUGINDIR=$plugindir  CONFIG=$config  IPCSOCKET=$ipcsocket +INCLUDEDIR=$includedir +PCDIR=$pcdir  ARCH=$arch  CPU=$cpu @@ -299,10 +305,16 @@ else  fi  echo -if [ -z "$BITLBEE_VERSION" -a -d .bzr -a -x "`which bzr`" ]; then +if [ -z "$BITLBEE_VERSION" -a -d .bzr ] && type bzr > /dev/null 2> /dev/null; then +	nick=`bzr nick` +	if [ -n "$nick" -a "$nick" != "bitlbee" ]; then +		nick="-$nick" +	else +		nick="" +	fi  	rev=`bzr revno`  	echo 'Using bzr revision #'$rev' as version number' -	BITLBEE_VERSION=\"bzr-$rev\" +	BITLBEE_VERSION=\"bzr$nick-$rev\"  fi  if [ -n "$BITLBEE_VERSION" ]; then @@ -312,6 +324,19 @@ if [ -n "$BITLBEE_VERSION" ]; then  	echo  fi +cat <<EOF>bitlbee.pc +prefix=$prefix +includedir=$includedir + +Name: bitlbee +Description: IRC to IM gateway +Requires: glib-2.0 +Version: $BITLBEE_VERSION +Libs: +Cflags: -I\${includedir} + +EOF +  protocols=''  protoobjs='' | 
