Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r9ae8f82 r2f8e3ca  
    5252ssl=auto
    5353
    54 pam=0
    55 ldap=0
    56 
    5754pie=1
    5855
    5956arch=$(uname -s)
     57cpu=$(uname -m)
    6058
    6159GLIB_MIN_VERSION=2.16
     
    135133--purple=0/1    Disable/enable libpurple support        $purple
    136134                (automatically disables other protocol modules)
    137 
    138 --pam=0/1       Disable/enable PAM authentication       $pam
    139 --ldap=0/1      Disable/enable LDAP authentication      $ldap
    140135
    141136--doc=0/1       Disable/enable help.txt generation      $doc
     
    199194
    200195TARGET=$target
     196ARCH=$arch
     197CPU=$cpu
    201198
    202199INSTALL=install -p
     
    245242#define PIDFILE "$pidfile"
    246243#define IPCSOCKET "$ipcsocket"
     244#define ARCH "$arch"
     245#define CPU "$cpu"
    247246EOF
    248247
     
    336335fi
    337336
    338 if ! $PKG_CONFIG --version > /dev/null 2>/dev/null; then
    339         echo
    340         echo 'Cannot find pkg-config, aborting.'
    341         exit 1
    342 fi
    343 
    344 if $PKG_CONFIG glib-2.0; then
     337if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG glib-2.0; then
    345338        if $PKG_CONFIG glib-2.0 --atleast-version=$GLIB_MIN_VERSION; then
    346339                cat<<EOF >>Makefile.settings
     
    635628done
    636629echo "STORAGE_OBJS="$STORAGE_OBJS >> Makefile.settings
    637 
    638 authobjs=
    639 authlibs=
    640 if [ "$pam" = 0 ]; then
    641         echo '#undef WITH_PAM' >> config.h
    642 else
    643         if ! echo '#include <security/pam_appl.h>' | $CC -E - >/dev/null 2>/dev/null; then
    644                 echo 'Cannot find libpam development libraries, aborting. (Install libpam0g-dev?)'
    645                 exit 1
    646         fi
    647         echo '#define WITH_PAM' >> config.h
    648         authobjs=$authobjs'auth_pam.o '
    649         authlibs=$authlibs'-lpam '
    650 fi
    651 if [ "$ldap" = 0 ]; then
    652         echo '#undef WITH_LDAP' >> config.h
    653 else
    654         if ! echo '#include <ldap.h>' | $CC -E - >/dev/null 2>/dev/null; then
    655                 echo 'Cannot find libldap development libraries, aborting. (Install libldap2-dev?)'
    656                 exit 1
    657         fi
    658         echo '#define WITH_LDAP' >> config.h
    659         authobjs=$authobjs'auth_ldap.o '
    660         authlibs=$authlibs'-lldap '
    661 fi
    662 echo AUTH_OBJS=$authobjs >> Makefile.settings
    663 echo EFLAGS+=$authlibs >> Makefile.settings
    664630
    665631if [ "$strip" = 0 ]; then
Note: See TracChangeset for help on using the changeset viewer.