https://bugs.openldap.org/show_bug.cgi?id=9235
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- Since we still allow non-threaded libldap as long as slapd is disabled, then we need to disable librewerite for that scenario.
The files added to the libldap/ dir from the old libldap_r need to be entirely wrapped in #ifdef LDAP_R_COMPILE
and we need to conditionally set LDAP_R_COMPILE