On 30/06/2011 7:43 AM, William A. Rowe Jr. wrote:
On 6/29/2011 4:35 PM, NormW wrote:

One point of query is the inclusion of:

/* this will be defined if LDAP support was ..... */
#define AP_HAS_LDAP           1

in both ap_ldap.hw and ap_ldap.hnw since (to my logic) AP_HAS_LDAP is a 
compile-time
option that ought to omit all LDAP pieces from the build if set 0, so having it 
in these
files and then a few lines later have #if AP_HAS_LDAP makes no sense.

It must be correctly represented in the resulting .h files installed
for the given binaries.  It can't be conditional at that point.

Compile time decisions shouldn't come from -D flags at all, but should
touch the respective lines of the template .hw/.hnw files on their way
to becoming actual .h's.
Hmmm My limited experience has seen this in headers elsewhere that have @@....@@ or similar around header options, but that isn't a method used in NetWare builds (to date anyway).

In the win32 case, we'll always link ASF binaries to msldap32.dll, so
it's a fair statement that AP_HAS_LDAP is 1 on that platform.  The
question is, would typically all netware installs similarly link to
the ldap sdk?
Obviously don't speak for the official NetWare devs but for my mind LDAP on a web server ought to be an optional component if the builder has no need of it. If it was 'obligatory' there hardly seems any need for a AP_HAS_LDAP flag at all. (Much like httpd has no FTP support at present. :-) )

Norm

Reply via email to