Commit ea1f981b authored by Stefan Fritsch's avatar Stefan Fritsch
Browse files

Several fixes for the ap_ldap build logic. This should fix compilation

without --with-ldap.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1131393 13f79535-47bb-0310-9956-ffa450edef68
parent 2c24bd41
Loading
Loading
Loading
Loading
+1 −0
Changes for build/find_ldap.m4: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ AC_DEFUN([AP_FIND_LDAPLIB], [
        AC_CHECK_LIB(${ldaplib}, ldapssl_init, ap_has_ldapssl_init="1", , ${extralib})
        AC_CHECK_LIB(${ldaplib}, ldapssl_install_routines, ap_has_ldapssl_install_routines="1", , ${extralib})
        ap_has_ldap="1";
        AC_DEFINE(AP_HAS_LDAP, 1, [Defined if httpd is compiled with ldap support])
      ], , ${extralib})
  fi
])
+3 −0
Changes for configure.in: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -446,6 +446,9 @@ fopen64
dnl confirm that a void pointer is large enough to store a long integer
APACHE_CHECK_VOID_PTR_LEN

dnl check for LDAP support, needed by modules/aaa and modules/ldap
AP_FIND_LDAP

dnl ## Check for the tm_gmtoff field in struct tm to get the timezone diffs
AC_CACHE_CHECK([for tm_gmtoff in struct tm], ac_cv_struct_tm_gmtoff,
[AC_TRY_COMPILE([#include <sys/types.h>
+0 −3
Changes for include/ap_ldap.h.in: 0 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -51,9 +51,6 @@
#define LDAP_DECLARE_DATA             __declspec(dllimport)
#endif

/* this will be defined if LDAP support was compiled into apr-util */
#define AP_HAS_LDAP		  @ap_has_ldap@

/* identify the LDAP toolkit used */
#define AP_HAS_NETSCAPE_LDAPSDK  @ap_has_ldap_netscape@
#define AP_HAS_SOLARIS_LDAPSDK   @ap_has_ldap_solaris@
+2 −2
Changes for include/ap_ldap_init.h: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -26,10 +26,10 @@
 * @{
 */

#include "ap_ldap.h"

#if AP_HAS_LDAP

#include "ap_ldap.h"

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
+2 −2
Changes for include/ap_ldap_option.h: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -26,10 +26,10 @@
 * @{
 */

#include "ap_ldap.h"

#if AP_HAS_LDAP

#include "ap_ldap.h"

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
Loading