144 - AC_DEFINE(LDAP_VENDOR_OPENLDAP) |
144 - AC_DEFINE(LDAP_VENDOR_OPENLDAP) |
145 - ldap_vendor="OPENLDAP" |
145 - ldap_vendor="OPENLDAP" |
146 - library_ldflags=[-L$_prefix/lib] |
146 - library_ldflags=[-L$_prefix/lib] |
147 - library_ldadd=[-lldap_r] |
147 - library_ldadd=[-lldap_r] |
148 + dnl A directory path where ldap.h exists. |
148 + dnl A directory path where ldap.h exists. |
149 + dnl The deafult is $_prefix/include, but it can be different depending on |
149 + dnl The default is $_prefix/include, but it can be different depending |
150 + dnl operating systems and versions. |
150 + dnl on operating systems and versions. |
151 + ldap_include_dir=$_prefix/include |
151 + ldap_include_dir=$_prefix/include |
152 + |
152 + |
153 + if [[ "$myarch" = "solaris" ]] ; then |
153 + if [[ "$myarch" = "solaris" ]] ; then |
154 + if [[ "$DIST_VERSION" = "5.12" ]] ; then |
154 + if [[ $EGREP -s "OpenLDAP" "$_prefix/include/ldap.h" ]] ; then |
155 + dnl On Solaris 12, we force to build with OpenLDAP. |
155 + dnl On Solaris 12, we force to build with OpenLDAP. |
156 + AC_DEFINE(LDAP_VENDOR_OPENLDAP) |
156 + AC_DEFINE(LDAP_VENDOR_OPENLDAP) |
157 + AC_MSG_RESULT([yes]) |
157 + AC_MSG_RESULT([yes]) |
158 + ldap_include_dir=$ldap_include_dir/openldap |
158 + ldap_include_dir=$ldap_include_dir/openldap |
159 + ldap_vendor="OPENLDAP" |
159 + ldap_vendor="OPENLDAP" |