Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r34b17d9 rb5a22e3  
    1414datadir='$prefix/share/bitlbee/'
    1515config='/var/lib/bitlbee/'
    16 pidfile='/var/run/bitlbee.pid'
    1716plugindir='$prefix/lib/bitlbee'
    1817
     
    2423debug=0
    2524strip=1
     25flood=0
    2626ipv6=1
    2727ssl=auto
     
    4747--datadir=...                                           $datadir
    4848--plugindir=...                                         $plugindir
    49 --pidfile=...                                           $pidfile
    5049--config=...                                            $config
    5150
     
    7675config=`eval echo "$config/" | sed 's/\/\{1,\}/\//g'`
    7776plugindir=`eval echo "$plugindir/" | sed 's/\/\{1,\}/\//g'`
    78 pidfile=`eval echo "$pidfile/" | sed 's/\/\{1,\}/\//g'`
    7977
    8078cat<<EOF>Makefile.settings
     
    8684DATADIR=$datadir
    8785PLUGINDIR=$plugindir
    88 PIDFILE=$pidfile
    8986CONFIG=$config
    9087
     
    108105#define VARDIR "$datadir"
    109106#define PLUGINDIR "$plugindir"
    110 #define PIDFILE "$pidfile"
    111107#define ARCH "$arch"
    112108#define CPU "$cpu"
     
    149145fi
    150146
    151 if [ -z "$PKG_CONFIG" ]; then
    152         PKG_CONFIG=pkg-config
    153 fi
    154 
    155 if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG glib-2.0; then
     147if type pkg-config > /dev/null 2>/dev/null && pkg-config glib-2.0; then
    156148        cat<<EOF>>Makefile.settings
    157 EFLAGS+=`$PKG_CONFIG --libs glib-2.0 gmodule-2.0`
    158 CFLAGS+=`$PKG_CONFIG --cflags glib-2.0 gmodule-2.0`
     149EFLAGS+=`pkg-config --libs glib-2.0 gmodule-2.0`
     150CFLAGS+=`pkg-config --cflags glib-2.0 gmodule-2.0`
    159151EOF
    160152        echo '#define GLIB2' >> config.h
     
    198190detect_nss()
    199191{
    200         if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG mozilla-nss; then
     192        if type pkg-config > /dev/null 2>/dev/null && pkg-config mozilla-nss; then
    201193                cat<<EOF>>Makefile.settings
    202 EFLAGS+=`$PKG_CONFIG --libs mozilla-nss`
    203 CFLAGS+=`$PKG_CONFIG --cflags mozilla-nss`
     194EFLAGS+=`pkg-config --libs mozilla-nss`
     195CFLAGS+=`pkg-config --cflags mozilla-nss`
    204196EOF
    205197               
     
    293285fi
    294286
    295 echo
    296 if [ -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\"
     287if [ "$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
    300293fi
    301294
    302295if [ -n "$BITLBEE_VERSION" ]; then
     296        echo
    303297        echo 'Spoofing version number: '$BITLBEE_VERSION
    304298        echo '#undef BITLBEE_VERSION' >> config.h
    305         echo '#define BITLBEE_VERSION '$BITLBEE_VERSION >> config.h
    306         echo
     299        echo '#define BITLBEE_VERSION '$BITLBEE_VERSION >> config.h;
    307300fi
    308301
     
    343336
    344337if [ "$protocols" = "PROTOCOLS = " ]; then
     338        echo
    345339        echo "WARNING: You haven't selected any communication protocol to compile!"
    346340        echo "         Bitlbee will run, but you will be unable to connect to IM servers!"
     
    350344echo "PROTOOBJS = $protoobjs" >> Makefile.settings
    351345
     346echo
    352347echo Architecture: $arch
    353348case "$arch" in
Note: See TracChangeset for help on using the changeset viewer.