Changeset 6e9ae72 for configure


Ignore:
Timestamp:
2011-12-17T13:50:01Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
18c6d36
Parents:
87dddee (diff), 17f057d (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:

Mainline merge.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r87dddee r6e9ae72  
    99
    1010prefix='/usr/local/'
    11 bindir='$prefix/sbin/'
     11bindir='$prefix/bin/'
     12sbindir='$prefix/sbin/'
    1213etcdir='$prefix/etc/bitlbee/'
    1314mandir='$prefix/share/man/'
     
    1920libevent='/usr/'
    2021pidfile='/var/run/bitlbee.pid'
    21 ipcsocket='/var/run/bitlbee.sock'
     22ipcsocket=''
    2223pcdir='$prefix/lib/pkgconfig'
    2324systemlibdirs="/lib /lib64 /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64"
     
    2829yahoo=1
    2930twitter=1
    30 twitter=1
    3131purple=0
    3232
     
    3636plugins=1
    3737otr=0
     38skype=0
    3839
    3940events=glib
     
    5960--prefix=...    Directories to put files in             $prefix
    6061--bindir=...                                            $bindir
     62--sbindir=...                                           $sbindir
    6163--etcdir=...                                            $etcdir
    6264--mandir=...                                            $mandir
     
    6668--pidfile=...                                           $pidfile
    6769--config=...                                            $config
    68 --ipcsocket=...                                         $ipcsocket
    6970
    7071--msn=0/1       Disable/enable MSN part                 $msn
     
    8384--otr=0/1/auto/plugin
    8485                Disable/enable OTR encryption support   $otr
     86--skype=0/1/plugin
     87                Disable/enable Skype support            $skype
    8588
    8689--events=...    Event handler (glib, libevent)          $events
     
    98101# Expand $prefix and get rid of double slashes
    99102bindir=`eval echo "$bindir/" | sed 's/\/\{1,\}/\//g'`
     103sbindir=`eval echo "$sbindir/" | sed 's/\/\{1,\}/\//g'`
    100104etcdir=`eval echo "$etcdir/" | sed 's/\/\{1,\}/\//g'`
    101105mandir=`eval echo "$mandir/" | sed 's/\/\{1,\}/\//g'`
     
    110114pcdir=`eval echo "$pcdir" | sed 's/\/\{1,\}/\//g'`
    111115
     116protocols_mods=""
     117
    112118cat<<EOF>Makefile.settings
    113119## BitlBee settings, generated by configure
    114120PREFIX=$prefix
    115121BINDIR=$bindir
     122SBINDIR=$sbindir
    116123ETCDIR=$etcdir
    117124MANDIR=$mandir
     
    323330
    324331RESOLV_TESTCODE='
     332#include <sys/types.h>
     333#include <netinet/in.h>
    325334#include <arpa/nameser.h>
    326335#include <resolv.h>
     
    335344detect_resolv_dynamic()
    336345{
     346        case "$arch" in
     347        FreeBSD )
     348                # In FreeBSD res_* routines are present in libc.so
     349                LIBRESOLV=;;
     350        * )
     351                LIBRESOLV=-lresolv;;
     352        esac
    337353        TMPFILE=$(mktemp /tmp/bitlbee-configure.XXXXXX)
    338354        ret=1
    339         echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - -lresolv >/dev/null 2>/dev/null
     355        echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - $LIBRESOLV >/dev/null 2>/dev/null
    340356        if [ "$?" = "0" ]; then
    341                 echo 'EFLAGS+=-lresolv' >> Makefile.settings
     357                echo "EFLAGS+=$LIBRESOLV" >> Makefile.settings
    342358                ret=0
    343359        fi
     
    538554fi
    539555
     556if [ "$skype" = "1" -o "$skype" = "plugin" ]; then
     557        echo 'SKYPE_PI=skype.so' >> Makefile.settings
     558        protocols_mods="$protocol_mods skype(plugin)"
     559fi
     560
    540561if [ ! -e doc/user-guide/help.txt ] && ! type xmlto > /dev/null 2> /dev/null; then
    541562        echo
     
    751772
    752773if [ -n "$protocols" ]; then
    753         echo '  Building with these protocols:' $protocols
     774        echo '  Building with these protocols:' $protocols$protocols_mods
    754775        case "$protocols" in
    755776        *purple*)
Note: See TracChangeset for help on using the changeset viewer.