summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2011-08-30 18:47:39 +0000
committerArthur de Jong <arthur@arthurdejong.org>2011-08-30 18:47:39 +0000
commit7da6b32e51313c3b6de45c1507a69ff297e3d332 (patch)
tree89bd7d3fdef5b00b59bd9bcf031c49569bec8ed8
parentef4080e37a8827ba611246465c448b2324bada41 (diff)
move LDAP_DEPRECATED and LDAP_REFERRALS to configure.ac to ensure that tests from configure see the same API
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1529 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r--configure.ac5
-rw-r--r--nslcd/myldap.c6
2 files changed, 5 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index 2f123e5..315f5c3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -606,6 +606,11 @@ then
CFLAGS="$pthread_save_CFLAGS"
LIBS="$pthread_save_LIBS"
+ # also use deprecated LDAP functions
+ AC_DEFINE(LDAP_DEPRECATED, 1, Define to activate deprecated features in OpenLDAP)
+ # for compatibility on Solaris
+ AC_DEFINE(LDAP_REFERRALS, 1, Define to get some functions on Solaris)
+
# search for an LDAP library (only OpenLDAP is tested)
AC_ARG_WITH(ldap-lib,
AS_HELP_STRING([--with-ldap-lib=TYPE],
diff --git a/nslcd/myldap.c b/nslcd/myldap.c
index 2d73c39..c5d898e 100644
--- a/nslcd/myldap.c
+++ b/nslcd/myldap.c
@@ -35,12 +35,6 @@
#include "config.h"
-/* also include deprecated LDAP functions for now */
-#define LDAP_DEPRECATED 1
-
-/* for compatibility on Solaris */
-#define LDAP_REFERRALS 1
-
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>