diff options
| author | Wez Furlong <wez@php.net> | 2003-12-19 15:04:31 +0000 |
|---|---|---|
| committer | Wez Furlong <wez@php.net> | 2003-12-19 15:04:31 +0000 |
| commit | 0c126e1233ee35c92d0f58f20fc4b40478f0b55f (patch) | |
| tree | 274de44354175d4c8a0455b3182058c0b15f8c84 /ext/ldap | |
| parent | da4a9eea92e0a43895ba10419ac3d1b1a2ed8586 (diff) | |
| download | php-git-0c126e1233ee35c92d0f58f20fc4b40478f0b55f.tar.gz | |
make these build with new win32 build system.
mcve untested (I don't have those libs/headers)
Diffstat (limited to 'ext/ldap')
| -rw-r--r-- | ext/ldap/config.w32 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/ldap/config.w32 b/ext/ldap/config.w32 new file mode 100644 index 0000000000..4cbfbcae62 --- /dev/null +++ b/ext/ldap/config.w32 @@ -0,0 +1,22 @@ +// $Id$ +// vim:ft=javascript + +ARG_WITH("ldap", "LDAP support", "no"); + +if (PHP_LDAP != "no") { + + if (CHECK_HEADER_ADD_INCLUDE("ldap.h", "CFLAGS_LDAP", PHP_PHP_BUILD + "\\openldap\\include;" + PHP_LDAP) && + CHECK_LIB("ssleay32.lib", "ldap", PHP_LDAP) && + CHECK_LIB("libeay32.lib", "ldap", PHP_LDAP) && + CHECK_LIB("oldap32.lib", "ldap", PHP_LDAP) && + CHECK_LIB("olber32.lib", "ldap", PHP_LDAP)) { + EXTENSION('ldap', 'ldap.c'); + + AC_DEFINE('HAVE_LDAP_START_TLS_S', 1); + AC_DEFINE('HAVE_LDAP', 1); + + } else { + WARNING("ldap not enabled; libraries and headers not found"); + } +} + |
