Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    ra7baf40 rad66dcd  
    1515datadir='$prefix/share/bitlbee/'
    1616config='/var/lib/bitlbee/'
     17libdir='$prefix/lib/'
    1718plugindir='$prefix/lib/bitlbee/'
    1819includedir='$prefix/include/bitlbee/'
     
    3940purple=0
    4041
     42verbose=0
    4143doc=1
    4244debug=0
    43 strip=1
     45strip=0
    4446gcov=0
    4547asan=0
     
    125127--pidfile=...                                           $pidfile
    126128--config=...                                            $config
     129
     130--verbose=0/1   Disable/enable verbose build            $verbose
    127131
    128132--msn=0/1       Disable/enable MSN part                 $msn
     
    170174datadir=$(eval echo "$datadir/" | sed 's/\/\{1,\}/\//g')
    171175config=$(eval echo "$config/" | sed 's/\/\{1,\}/\//g')
     176libdir=$(eval echo "$libdir/" | sed 's/\/\{1,\}/\//g')
    172177plugindir=$(eval echo "$plugindir/" | sed 's/\/\{1,\}/\//g')
    173178includedir=$(eval echo "$includedir"/ | sed 's/\/\{1,\}/\//g')
     
    193198PLUGINDIR=$plugindir
    194199CONFIG=$config
     200LIBDIR=$libdir
    195201INCLUDEDIR=$includedir
    196202PCDIR=$pcdir
     
    241247#define VARDIR "$datadir"
    242248#define PLUGINDIR "$plugindir"
     249#define DATADIR "$datadir"
    243250#define PIDFILE "$pidfile"
    244251#define IPCSOCKET "$ipcsocket"
     
    283290fi
    284291
     292if [ "$verbose" = "0" ]; then
     293        echo 'VERBOSE=@' >> Makefile.settings
     294else
     295        echo 'VERBOSE=' >> Makefile.settings
     296fi
     297
     298cat <<EOF >>Makefile.settings
     299
     300# Enable/disable output verbosity
     301ifdef V
     302ifeq (\$(V),1)
     303        VERBOSE=
     304else
     305        VERBOSE=@
     306endif
     307endif
     308
     309EOF
     310
    285311if [ "$debug" = "1" ]; then
    286312        echo 'DEBUG=1' >> Makefile.settings
    287313        CFLAGS="$CFLAGS -g3 -DDEBUG -O0"
    288314else
    289         [ -z "$CFLAGS" ] && CFLAGS="-O2 -fno-strict-aliasing"
     315        [ -z "$CFLAGS" ] && CFLAGS="-g -O2 -fno-strict-aliasing"
    290316fi
    291317
     
    745771if [ "$doc" = "1" ]; then
    746772        # check this here just in case someone tries to install it in python2.4...
    747         if ! $PYTHON -m xml.etree.ElementTree > /dev/null 2>&1; then
     773        if [ ! -e $srcdir/doc/user-guide/help.txt ] && ! $PYTHON -m xml.etree.ElementTree > /dev/null 2>&1; then
    748774                echo
    749775                echo 'ERROR: Python (>=2.5 or 3.x) is required to generate docs'
     
    778804fi
    779805
     806pkgconfiglibs=''
     807case "$arch" in
     808CYGWIN* )
     809        pkgconfiglibs='-L${libdir} -lbitlbee -no-undefined'
     810esac
     811
    780812cat <<EOF >bitlbee.pc
    781813prefix=$prefix
    782814includedir=$includedir
    783815plugindir=$plugindir
     816libdir=$libdir
     817datadir=$datadir
    784818
    785819Name: bitlbee
     
    787821Requires: glib-2.0
    788822Version: $BITLBEE_VERSION
    789 Libs:
     823Libs: $pkgconfiglibs
    790824Cflags: -I\${includedir}
    791825
     
    897931;;
    898932CYGWIN* )
     933        echo 'EFLAGS+=-Wl,--export-all,--out-implib,libbitlbee.dll.a' >> Makefile.settings
     934        echo 'IMPLIB=libbitlbee.dll.a' >> Makefile.settings
    899935;;
    900936Windows )
Note: See TracChangeset for help on using the changeset viewer.