[buildout]
parts =
  openldap
extends =
  ../openssl/buildout.cfg
  ../cyrus-sasl/buildout.cfg

[openldap]
recipe = hexagonit.recipe.cmmi
url = ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.4.25.tgz
md5sum = ec63f9c2add59f323a0459128846905b
configure-options =
  --disable-static
  --disable-slapd
  --enable-backends=no
  --enable-overlays=no
  --with-cyrus-sasl
  --without-fetch
  --disable-rewrite
  --disable-odbc
  --with-threads
  --with-tls=openssl

environment =
  CPPFLAGS=-I${openssl:location}/include -I${cyrus-sasl:location}/include
  LDFLAGS=-L${openssl:location}/lib -Wl,-rpath -Wl,${openssl:location}/lib -L${cyrus-sasl:location}/lib -Wl,-rpath -Wl,${cyrus-sasl:location}/lib