]>
Commit | Line | Data |
---|---|---|
b423cd4c | 1 | dnl |
bc44d920 | 2 | dnl "$Id: cups-ldap.m4 6649 2007-07-11 21:46:42Z mike $" |
b423cd4c | 3 | dnl |
4 | dnl LDAP configuration stuff for the Common UNIX Printing System (CUPS). | |
5 | dnl | |
bc44d920 | 6 | dnl Copyright 2007 by Apple Inc. |
b423cd4c | 7 | dnl Copyright 2003-2006 by Easy Software Products, all rights reserved. |
8 | dnl | |
9 | dnl These coded instructions, statements, and computer programs are the | |
bc44d920 | 10 | dnl property of Apple Inc. and are protected by Federal copyright |
11 | dnl law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
12 | dnl which should have been included with this file. If this file is | |
13 | dnl file is missing or damaged, see the license at "http://www.cups.org/". | |
b423cd4c | 14 | dnl |
15 | ||
16 | AC_ARG_ENABLE(ldap, [ --enable-ldap turn on LDAP support, default=yes]) | |
17 | AC_ARG_WITH(openldap-libs, [ --with-openldap-libs set directory for OpenLDAP library], | |
18 | LDFLAGS="-L$withval $LDFLAGS" | |
19 | DSOFLAGS="-L$withval $DSOFLAGS",) | |
20 | AC_ARG_WITH(openldap-includes, [ --with-openldap-includes | |
21 | set directory for OpenLDAP includes], | |
22 | CFLAGS="-I$withval $CFLAGS" | |
23 | CXXFLAGS="-I$withval $CXXFLAGS" | |
24 | CPPFLAGS="-I$withval $CPPFLAGS",) | |
25 | ||
26 | LIBLDAP="" | |
27 | ||
28 | if test x$enable_ldap != xno; then | |
29 | AC_CHECK_HEADER(ldap.h, | |
f301802f | 30 | AC_CHECK_LIB(ldap, ldap_initialize, |
b423cd4c | 31 | AC_DEFINE(HAVE_LDAP) |
32 | AC_DEFINE(HAVE_OPENLDAP) | |
33 | LIBLDAP="-lldap")) | |
34 | fi | |
35 | ||
36 | AC_SUBST(LIBLDAP) | |
37 | ||
38 | ||
39 | dnl | |
bc44d920 | 40 | dnl End of "$Id: cups-ldap.m4 6649 2007-07-11 21:46:42Z mike $". |
b423cd4c | 41 | dnl |