~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_have_libldap.m4

  • Committer: Eric Day
  • Date: 2010-05-03 19:17:37 UTC
  • mto: This revision was merged to the branch mainline in revision 1519.
  • Revision ID: eday@drizzle-os-20100503191737-qjr6ezndi6iytokn
Fixed libldap detection for Solaris/Netscape headers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
  AC_LIB_HAVE_LINKFLAGS(ldap,,
15
15
  [#include <ldap.h>],
16
16
  [
17
 
    LDAP *l= ldap_init("localhost", 389);
 
17
    LDAP *ldap;
 
18
    ldap_initialize(&ldap, "ldap://localhost/");
18
19
  ])
19
20
  AS_IF([test "x$ac_cv_libldap" = "xno"],
20
21
  [
26
27
    AC_LIB_HAVE_LINKFLAGS(ldap,,
27
28
    [#include <ldap/ldap.h>],
28
29
    [
29
 
      LDAP *l= ldap_init("localhost", 389);
 
30
      LDAP *ldap;
 
31
      ldap_initialize(&ldap, "ldap://localhost/");
30
32
    ])
31
33
    AS_IF([test "x$ac_cv_libldap" = "xyes"], [
32
34
      ac_cv_ldap_location="<ldap/ldap.h>"