Changeset a6005da for configure


Ignore:
Timestamp:
2016-03-25T18:07:53Z (9 years ago)
Author:
Dennis Kaarsemaker <dennis@…>
Branches:
master
Children:
50bb490
Parents:
8e6ecfe
git-author:
Dennis Kaarsemaker <dennis@…> (23-02-16 18:52:32)
git-committer:
Dennis Kaarsemaker <dennis@…> (25-03-16 18:07:53)
Message:

Linux pam authentication backend

This backend authenticates users against pam.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r8e6ecfe ra6005da  
    5252ssl=auto
    5353
     54pam=0
     55
    5456pie=1
    5557
     
    133135--purple=0/1    Disable/enable libpurple support        $purple
    134136                (automatically disables other protocol modules)
     137
     138--pam=0/1       Disable/enable PAM authentication       $pam
    135139
    136140--doc=0/1       Disable/enable help.txt generation      $doc
     
    631635authobjs=
    632636authlibs=
     637if [ "$pam" = 0 ]; then
     638        echo '#undef WITH_PAM' >> config.h
     639else
     640        if ! echo '#include <security/pam_appl.h>' | $CC -E - >/dev/null 2>/dev/null; then
     641                echo 'Cannot find libpam development libraries, aborting. (Install libpam0g-dev?)'
     642                exit 1
     643        fi
     644        echo '#define WITH_PAM' >> config.h
     645        authobjs=$authobjs'auth_pam.o '
     646        authlibs=$authlibs'-lpam '
     647fi
    633648echo AUTH_OBJS=$authobjs >> Makefile.settings
    634649echo EFLAGS+=$authlibs >> Makefile.settings
Note: See TracChangeset for help on using the changeset viewer.