Changeset 670204f for configure


Ignore:
Timestamp:
2006-10-22T12:43:40Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
28eda86
Parents:
2087159
Message:

Copied 1.0.x changelogs, disabled LDAP support in configure (because the
code just doesn't work yet) and added GLib version detection. (GLib 2.4
and up *should* work.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r2087159 r670204f  
    3131
    3232events=glib
    33 ldap=auto
     33ldap=0
    3434ssl=auto
    3535
    3636arch=`uname -s`
    3737cpu=`uname -m`
     38
     39GLIB_MIN_VERSION=2.4
    3840
    3941echo BitlBee configure
     
    175177
    176178if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG glib-2.0; then
    177         cat<<EOF>>Makefile.settings
     179        if $PKG_CONFIG glib-2.0 --atleast-version=$GLIB_MIN_VERSION; then
     180                cat<<EOF>>Makefile.settings
    178181EFLAGS+=`$PKG_CONFIG --libs glib-2.0 gmodule-2.0`
    179182CFLAGS+=`$PKG_CONFIG --cflags glib-2.0 gmodule-2.0`
    180183EOF
    181 else
     184        else
     185                echo
     186                echo 'Found glib2 '`$PKG_CONFIG glib-2.0 --modversion`', but version '$GLIB_MIN_VERSION' or newer is required.'
     187                exit 1
     188        fi
     189else
     190        echo
    182191        echo 'Cannot find glib2 development libraries, aborting. (Install libglib2-dev?)'
    183         exit 1;
     192        exit 1
    184193fi
    185194
     
    290299elif [ "$ssl" = "bogus" ]; then
    291300        echo
    292         echo 'Using bogus SSL code. This means some features have to be disabled.'
     301        echo 'Using bogus SSL code. This means some features will not work properly.'
    293302       
    294303        ## Yes, you, at the console! How can you authenticate if you don't have any SSL!?
Note: See TracChangeset for help on using the changeset viewer.