summaryrefslogtreecommitdiff
path: root/ext/ldap
diff options
context:
space:
mode:
authorStig Venaas <venaas@php.net>2000-08-19 14:10:11 +0000
committerStig Venaas <venaas@php.net>2000-08-19 14:10:11 +0000
commit90eac6a390070c62cbd87709b76dd0de257851ac (patch)
tree39c73a5f3181a089d39f8b25ebbbe144f5f5fb4d /ext/ldap
parent0959b16f87f748e8958a3efb3035dda91e79640d (diff)
downloadphp-git-90eac6a390070c62cbd87709b76dd0de257851ac.tar.gz
Adding Oracle LDAP SDK support
Diffstat (limited to 'ext/ldap')
-rw-r--r--ext/ldap/config.m47
-rw-r--r--ext/ldap/php_ldap.h2
2 files changed, 9 insertions, 0 deletions
diff --git a/ext/ldap/config.m4 b/ext/ldap/config.m4
index 4750d82e1c..377c22117d 100644
--- a/ext/ldap/config.m4
+++ b/ext/ldap/config.m4
@@ -15,6 +15,10 @@ if test "$PHP_LDAP" != "no"; then
LDAP_DIR=$i
LDAP_INCDIR=$i/include/umich-ldap
LDAP_LIBDIR=$i/lib
+ elif test -f $i/ldap/public/ldap.h; then
+ LDAP_DIR=$i
+ LDAP_INCDIR=$i/ldap/public
+ LDAP_LIBDIR=$i/lib
fi
done
@@ -56,6 +60,9 @@ if test "$PHP_LDAP" != "no"; then
elif test -f $LDAP_LIBDIR/libumich_ldap.so; then
AC_ADD_LIBRARY_WITH_PATH(umich_lber, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
AC_ADD_LIBRARY_WITH_PATH(umich_ldap, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
+ elif test -f $LDAP_LIBDIR/libclntsh.so; then
+ AC_ADD_LIBRARY_WITH_PATH(clntsh, $LDAP_LIBDIR, LDAP_SHARED_LIBADD)
+ AC_DEFINE(HAVE_ORALDAP,1,[ ])
fi
AC_ADD_INCLUDE($LDAP_INCDIR)
diff --git a/ext/ldap/php_ldap.h b/ext/ldap/php_ldap.h
index 3cf4592fe5..0f18e277e4 100644
--- a/ext/ldap/php_ldap.h
+++ b/ext/ldap/php_ldap.h
@@ -23,7 +23,9 @@
#ifndef PHP_LDAP_H
#define PHP_LDAP_H
+#ifndef HAVE_ORALDAP
#include <lber.h>
+#endif
#include <ldap.h>
extern zend_module_entry ldap_module_entry;