components/php/php56/patches/openldap.patch
branchs11u3-sru
changeset 7784 531789214c7c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/php/php56/patches/openldap.patch	Tue Mar 21 13:15:18 2017 -0700
@@ -0,0 +1,19 @@
+In house patch to tell php where the openldap headers live.
+Will offer to upstream.
+
+
+--- php-5.6.22/ext/ldap/config.m4-orig	2017-03-09 09:59:23.066024806 -0800
++++ php-5.6.22/ext/ldap/config.m4	2017-03-09 10:05:20.982432123 -0800
+@@ -3,7 +3,11 @@
+ dnl
+ 
+ AC_DEFUN([PHP_LDAP_CHECKS], [
+-  if test -f $1/include/ldap.h; then
++  if test -f /usr/include/openldap/ldap.h; then
++    LDAP_DIR=/usr
++    LDAP_INCDIR=/usr/include/openldap
++    LDAP_LIBDIR=/usr/$PHP_LIBDIR
++  elif test -f $1/include/ldap.h; then
+     LDAP_DIR=$1
+     LDAP_INCDIR=$1/include
+     LDAP_LIBDIR=$1/$PHP_LIBDIR