Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    rb5a22e3 r4fe4be2  
    2323debug=0
    2424strip=1
    25 flood=0
    2625ipv6=1
    2726ssl=auto
     
    145144fi
    146145
    147 if type pkg-config > /dev/null 2>/dev/null && pkg-config glib-2.0; then
     146if [ -z "$PKG_CONFIG" ]; then
     147        PKG_CONFIG=pkg-config
     148fi
     149
     150if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG glib-2.0; then
    148151        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`
     152EFLAGS+=`$PKG_CONFIG --libs glib-2.0 gmodule-2.0`
     153CFLAGS+=`$PKG_CONFIG --cflags glib-2.0 gmodule-2.0`
    151154EOF
    152155        echo '#define GLIB2' >> config.h
     
    190193detect_nss()
    191194{
    192         if type pkg-config > /dev/null 2>/dev/null && pkg-config mozilla-nss; then
     195        if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG mozilla-nss; then
    193196                cat<<EOF>>Makefile.settings
    194 EFLAGS+=`pkg-config --libs mozilla-nss`
    195 CFLAGS+=`pkg-config --cflags mozilla-nss`
     197EFLAGS+=`$PKG_CONFIG --libs mozilla-nss`
     198CFLAGS+=`$PKG_CONFIG --cflags mozilla-nss`
    196199EOF
    197200               
     
    285288fi
    286289
    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
     290echo
     291if [ -z "$BITLBEE_VERSION" -a -d .bzr -a -x "`which bzr`" ]; then
     292        rev=`bzr revno`
     293        echo 'Using bzr revision #'$rev' as version number'
     294        BITLBEE_VERSION=\"bzr-$rev\"
    293295fi
    294296
    295297if [ -n "$BITLBEE_VERSION" ]; then
    296         echo
    297298        echo 'Spoofing version number: '$BITLBEE_VERSION
    298299        echo '#undef BITLBEE_VERSION' >> config.h
    299         echo '#define BITLBEE_VERSION '$BITLBEE_VERSION >> config.h;
     300        echo '#define BITLBEE_VERSION '$BITLBEE_VERSION >> config.h
     301        echo
    300302fi
    301303
     
    336338
    337339if [ "$protocols" = "PROTOCOLS = " ]; then
    338         echo
    339340        echo "WARNING: You haven't selected any communication protocol to compile!"
    340341        echo "         Bitlbee will run, but you will be unable to connect to IM servers!"
     
    344345echo "PROTOOBJS = $protoobjs" >> Makefile.settings
    345346
    346 echo
    347347echo Architecture: $arch
    348348case "$arch" in
Note: See TracChangeset for help on using the changeset viewer.